function loadReq(){
	var xmlReq;
	if (window.ActiveXObject){
	 xmlReq = new ActiveXObject("Microsoft.XMLHTTP");
	}
	else if (window.XMLHttpRequest){
	 xmlReq = new XMLHttpRequest();
	}
	return xmlReq;
}

var httpReq;
httpReq=loadReq();
function addFav(xh){
	httpReq.open("GET",("/favAdd.aspx?xh="+xh),false);
	httpReq.onreadystatechange=pc;
	httpReq.send(null);
}
function pc(){
	if(httpReq.readyState==4){
		if(httpReq.status==200){
			//alert('h2');
			var msg=httpReq.responseText;
			alert(msg);
		}
		else{}
	}
}