function getXmlHttp()
{
  var xmlhttp;
  try {
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
  }
  catch (e) {
    try {
      xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    catch (E) {
      xmlhttp = false;
    }
  }
  if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
    xmlhttp = new XMLHttpRequest();
  }
  return xmlhttp;
}

function sendRequest(url, callback)
{
	var req = getXmlHttp();
	req.open('GET', url, true);
	req.onreadystatechange = function()
	{
	  if (req.readyState == 4) {
	    if (req.status == 200) {
	      callback(req.responseText);
			}
	  }
	};
	req.send(null);
}

function reloadWindow()
{
  self.location.reload();
  return true;
}