var createxmlhttp=function(){
	try {return new ActiveXObject("Msxml5.XMLHTTP");}catch(e){}
	try {return new ActiveXObject("Msxml4.XMLHTTP");}catch(e){}
	try {return new ActiveXObject("Msxml3.XMLHTTP");}catch(e){}
	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 getcp(cpid,cplb){
	if(cpid==""){
		document.getElementById("cplist").innerHTML="错误的参数";
		return;
	};
	document.getElementById("cplb").innerHTML=cplb;
	var xmlhttpobj = new createxmlhttp();
	if(xmlhttpobj){
		xmlhttpobj.open('get',"getcp_en.asp?cpid="+cpid+"&number="+Math.random(),true);
		xmlhttpobj.send(null);
		xmlhttpobj.onreadystatechange=function(){
			if(xmlhttpobj.readystate==4){
				if(xmlhttpobj.status==200){
					var html = xmlhttpobj.responseText;
					document.getElementById("cplist").innerHTML=html;
				}else{
					document.getElementById("cplist").innerHTML="对不起，请求的页面有问题......";
				}
			}else{
				document.getElementById("cplist").innerHTML="加载中，请稍候...";
			}
		}	
	}
}

