var xmlhttp
var processingxml = false;

function loadXMLDoc(url)
{
  xmlhttp=null
  // code for Mozilla, etc.
  if (window.XMLHttpRequest)
  {
    xmlhttp=new XMLHttpRequest()
  }
  // code for IE
  else if (window.ActiveXObject)
    {
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
    }
  if (xmlhttp!=null)
  {
    xmlhttp.onreadystatechange=state_Change
    xmlhttp.open("GET",url,true)
    xmlhttp.send(null)
  }
  else
  {
    //~ alert("Your browser does not support XMLHTTP.")
  }
}

var js_regexp = /<!-+ *javascript *-+>/i

function state_Change()
{
  if (xmlhttp.readyState==4) // if xmlhttp shows "loaded"
  {
    if (xmlhttp.status==200) // if "OK"
    {
      if (xmlhttp.responseText.match(js_regexp))
      {
        processingxml = true
        var javatext = xmlhttp.responseText.replace(js_regexp, '')
        //~ alert(javatext)
        eval(javatext);
        //~ alert(processingxmltagcount);
        processingxml = false
      }
    }
    else
    {
    }
  }
}