function New_AJAX(){
try{return new ActiveXObject("Msxml2.XMLHTTP");}catch(e){}
try{return new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}
try {return new XMLHttpRequest();}catch(e){}return null;
};
function Ajax_resp(A,B,C,D){var R = New_AJAX();
if (B!=''){document.getElementById(C).innerHTML=B;}
R.onreadystatechange=function (){
	if (R.readyState==4){
		if (R.status==200){
			document.getElementById(C).innerHTML=(navigator.appName=="Microsoft Internet Explorer")?BinToStr(R.responseBody):R.responseText;
			}
		}
	};
if (D.length>0){
R.open("POST", A);
R.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=utf-8");
R.send(D);
}else{
R.open("GET", A);
R.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=utf-8");
R.send(null);}
};
