var xmlhttp,alerted
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
  try {
  xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")
 } catch (e) {
  try {
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
  } catch (E) {
   alert("You must have Microsofts XML parsers available")
  }
 }
@else
 alert("You must have JScript version 5 or above.")
 xmlhttp=false
 alerted=true
@end @*/
if (!xmlhttp && !alerted) {
 // Non ECMAScript Ed. 3 will error here (IE<5 ok), nothing I can 
 // realistically do about it, blame the w3c or ECMA for not
 // having a working versioning capability in  <SCRIPT> or
 // ECMAScript.
 try {
  xmlhttp = new XMLHttpRequest();
 } catch (e) {
  alert("You need a browser which supports an XMLHttpRequest Object.\nMozilla build 0.9.5 has this Object and IE5 and above.")
 }
}

function getAXAH(url,elementContainer) {
if (xmlhttp) { 
  d=document
  xmlhttp.open("GET", url, true);
  xmlhttp.onreadystatechange=function() {
  if (xmlhttp.readyState==4) {
   document.getElementById(elementContainer).innerHTML=xmlhttp.responseText
  }
 }

  xmlhttp.send(null)
 }
}

function getAXAH2(url,elementContainer, rep, rep2) {
if (xmlhttp) { 
  d=document
  xmlhttp.open("GET", url, true);
  xmlhttp.onreadystatechange=function() {
  if (xmlhttp.readyState==4) {
   elementContainer.value=xmlhttp.responseText.replace('[JAVASCRIPT]', rep);
   elementContainer.value=elementContainer.value.replace('[CATNAME]', rep2);
  }
 }

  xmlhttp.send(null)
 }
}

function Txt2Frame() {
top.previewFrame.document.open();
top.previewFrame.document.write('<html><head><title>Preview</title></head><body>');
top.previewFrame.document.write(Txt2Frame.arguments[0]);
top.previewFrame.document.write('</body></html>');
top.previewFrame.document.close();
}
