//Handy Andy Scripts for Nashua Product Applications
var xmlHttp;
function GetXmlHttpObject(){ 
	var objXMLHttp=null;
	if (window.XMLHttpRequest){
		objXMLHttp=new XMLHttpRequest();
	}else if (window.ActiveXObject){
		objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	return objXMLHttp;
} 
function dispatchXmlHttpObject( functionName, url ){
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null){
		alert ("Browser does not support HTTP Request")
		return
	} 	
	url=url+";sid="+Math.random();
	//alert(url);
	xmlHttp.onreadystatechange=functionName;	
	xmlHttp.open("GET",url,true);
	//xmlHttp.setRequestHeader("Content-Type","text/html; iso-8859-1");
	xmlHttp.send(null);
	handyAndyWorking();
}
function handyAndyWorking (){
	document.getElementById('waitingBox').style.left = (startPos)+ 'px';
	document.getElementById('waitingBox').style.display = "block";
}
function handyAndyDone (){
	document.getElementById('waitingBox').style.display = "";
}
