// JavaScript Document
var req = null;

function xmlSubrequest(url) {
	xmlSubrequestCallback(url, ignoreResult);
}
function xmlSubrequestCallback(url, func) {
	nocache = "&nocache="+ Math.round(Math.random()*100000);
	if (url.indexOf("?") < 0)
		url = url + "?";
	url = url + nocache;
   // Internet Explorer
   try { req = new ActiveXObject("Msxml2.XMLHTTP"); }
   catch(e) {
      try { req = new ActiveXObject("Microsoft.XMLHTTP"); }
      catch(oc) { req = null; }
   }
   // Mozailla/Safari
   if (req == null && typeof (XMLHttpRequest) != "undefined") {
      req = new XMLHttpRequest();
   }
   
   if (req != null) {
      req.onReadystateChange = func;
      req.open("GET", url, true);
      req.send(null);
   }
}
var laststatus =0;
function ignoreResult(evt) {

   if (req.readyState == 4) {
    laststatus = req.status;
   // The page has loaded and the HTTP status code is 200 OK
	if (req.status == 200) {
	
     }
   }else{
   }
}


