function getXMLHTTPRequest() {
	try {
		req = new XMLHttpRequest();
	} catch(err1) {
		try {
  			req = new ActiveXObject("Msxml2.XMLHTTP");
  		} catch (err2) {
    		try {
    			req = new ActiveXObject("Microsoft.XMLHTTP");
    		} catch (err3) {
      			req = false;
    		}
		}
	}
	return req;
}

var http = getXMLHTTPRequest();

function logoffPage() {
  var myurl = './OrderRpts/logoff.php?';
  myRand = parseInt(Math.random()*999999999999999);
  myRand = (new Date()).valueOf();
  var modurl = myurl+"&rand="+myRand;
  http.open("GET", modurl, true);
  http.onreadystatechange = processLogoff;
  http.send(null);
}

function processLogoff() {
  history.go(0);
}



