var xmlHttp,Browse;
if(document.all){
	Browse="IE"
}else{
	Browse="FF"	
}
function createXmlHttp() 
{
	if(Browse=="IE"){
		xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
	}else if(Browse=="FF"){
		xmlHttp=new XMLHttpRequest();	
	}else{
		alert("创建XMLHttp失败,部分内容无法显示!/n/n请使用IE6.0或更高版本浏览器浏本站!")	
	}
}



function LoadContent(cType,PageNum){
	document.getElementById("Content").innerHTML="<center><img src=\"images/loading.gif\" width=\"16\" height=\"16\" />正在加载,请稍后...</center>"
	createXmlHttp();
    xmlHttp.open("get", "Inc/Ajax.asp?Action=LoadContent&cType="+cType+"&PageNum="+PageNum, true);
    xmlHttp.send(null);
	xmlHttp.onreadystatechange=function(){
		if(xmlHttp.readyState == 4) {
			if(xmlHttp.status == 200) {
				document.getElementById("Content").innerHTML=xmlHttp.responseText;
			}
   		}
	}
}



function LoadArtList(divObj,TableName,ArtType,PageNum,Page_Size,ReadPage){ 
    document.getElementById(divObj).innerHTML="<center><img src=\"images/loading.gif\" width=\"16\" height=\"16\" />正在加载,请稍后...</center>"
	createXmlHttp();
    xmlHttp.open("get", "Inc/Ajax.asp?Action=LoadArtList&divObj="+divObj+"&TableName="+TableName+"&ArtType="+ArtType+"&PageNum="+PageNum+"&Page_Size="+Page_Size+"&ReadPage="+ReadPage, true);
    xmlHttp.send(null);
	xmlHttp.onreadystatechange=function(){
		if(xmlHttp.readyState == 4) {
			if(xmlHttp.status == 200) {
				document.getElementById(divObj).innerHTML=xmlHttp.responseText
				//alert(xmlHttp.responseText)
			}
   		}
	}
}

function LoadProList(divObj,TableName,ArtType,PageNum,Page_Size,ReadPage){ 
    document.getElementById(divObj).innerHTML="<center><img src=\"images/loading.gif\" width=\"16\" height=\"16\" />正在加载,请稍后...</center>"
	createXmlHttp();
    xmlHttp.open("get", "Inc/Ajax.asp?Action=LoadProList&divObj="+divObj+"&TableName="+TableName+"&ArtType="+ArtType+"&PageNum="+PageNum+"&Page_Size="+Page_Size+"&ReadPage="+ReadPage, true);
    xmlHttp.send(null);
	xmlHttp.onreadystatechange=function(){
		if(xmlHttp.readyState == 4) {
			if(xmlHttp.status == 200) {
				document.getElementById(divObj).innerHTML=xmlHttp.responseText
				//alert(xmlHttp.responseText)
			}
   		}
	}
}

function LoadArt(Table,tid,PageNum){
	document.getElementById("Content").innerHTML="<center><img src=\"images/loading.gif\" width=\"16\" height=\"16\" />正在加载,请稍后...</center>"
	createXmlHttp();
    xmlHttp.open("get", "Inc/Ajax.asp?Action=LoadArt&Table="+Table+"&tid="+tid+"&PageNum="+PageNum, true);
    xmlHttp.send(null);
	xmlHttp.onreadystatechange=function(){
		if(xmlHttp.readyState == 4) {
			if(xmlHttp.status == 200) {
				document.getElementById("Content").innerHTML=xmlHttp.responseText
			}
   		}
	}
}