function sendData(url,sScript) {
	var ohttpObj;
	if (window.XMLHttpRequest) {
		ohttpObj=new XMLHttpRequest()
	} else if (window.ActiveXObject) {
	 	//IE code
	 	ohttpObj=new ActiveXObject("Microsoft.XMLHTTP")
	}
	ohttpObj.onreadystatechange=function() { state_Change(ohttpObj,sScript); }
   	ohttpObj.open("GET",url+"&"+Math.random(),true)
   	ohttpObj.send(null)
}

function state_Change(oHttp,sScript) {
    if (oHttp.readyState == 4) {
		result=oHttp.responseText
		if (result.indexOf("ERROR")>0) {
			alert(result);
		} else {
			if (sScript!=null) {
	            eval(sScript+"(\""+escape(result)+"\")");
			}
		}
	}
	oHttp=false;
}

