// JavaScript Document
function AjaxMYLoadPHP(qz,id,url,flid)
{
	var xmlhttp=null;
	//var url = "/Action/Hf.php?id="+id+"&a="+Math.floor(Math.random()*99999999);
	if (window.XMLHttpRequest){xmlhttp = new XMLHttpRequest();} 
	if (!xmlhttp&&window.ActiveXObject){
	try{xmlhttp = new ActiveXObject("Msxml2.XMLHTTP.5.0")} 
	catch(e){try{xmlhttp = new ActiveXObject("Msxml2.XMLHTTP.4.0")} 
	catch(e){ 
	try{new ActiveXObject("Msxml2.XMLHTTP")} 
	catch(e){try{new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}}}} 
	if(xmlhttp){
		xmlhttp.open("GET",url,true);
		//xmlhttp.setRequestHeader("Content-Type", "text/html;charset=UTF-8");
		xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=utf-8");
		xmlhttp.send(null);
		xmlhttp.onreadystatechange=function(){
			if(xmlhttp.readyState==4){
				if(xmlhttp.status==200){
					su="";
switch(qz){
	case "HF":
		//if(su!=0)document.getElementById("HF_"+id).innerHTML="[<a href=\"/Survey?l="+id+"\" target=\"_blank\" class=\"B\">("+su+")条</a>]";
		su=xmlhttp.responseText;
		if(su!='' && su!='none' && su!='undefined') document.getElementById("HF_"+id+"_"+flid).innerHTML=su;
		else document.getElementById("HF_"+id+"_"+flid).innerHTML="&nbsp;";
		break;
	case "DH":
		su=parseInt(xmlhttp.responseText);
		if(su!=0)document.getElementById("DH_"+id+"_"+flid).innerHTML=su;
		else document.getElementById("DH_"+id+"_"+flid).innerHTML="&nbsp;";
		break;
}
				}
			}
		}
	}
}
function AjaxHuiFang(id,flid){
	var url = "/Action/Hf.php?id="+id+"&cz=s&a="+Math.floor(Math.random()*99999999);
	AjaxMYLoadPHP("HF",id,url,flid);
	url="";
}
function AjaxDingDan(id,flid){
	var url = "/Action/Hf.php?id="+id+"&cz=o&a="+Math.floor(Math.random()*99999999);
	AjaxMYLoadPHP("DH",id,url,flid);
	url="";
}
function tese(id){
	if(document.getElementById(id).style.display=='none'){
		document.getElementById(id).style.display='block';
	}else{
		document.getElementById(id).style.display='none';
	}
}
