
function get_bbs_rec(mnid,prono){
	var url = "http://www.zhao1718.com/test/Contact.asp";
	var method = "GET";
	var vars = "mnid="+mnid+"&prono="+prono;
	var cb = function(xhq) {
	//alert( xhq.responseText);
    try{
	document.getElementById("get_contact").innerHTML = xhq.responseText;
	//alert(document.getElementById("get_contact").innerHTML);
	}
	catch(e){
			
		}
		}
	
	var xhconn = new XHConn();
	xhconn.connectAsync(url, method, vars, cb);
}
//检查用户名是否可用
function get_CheckName_rec(name){
	var url = "/UserReg/CheckName.asp";
	var method = "GET";
	var name=name;
	var vars = "name="+name;
	var cb = function(xhq) {
    try{
		if (xhq.responseText=='no')
		{
	        document.getElementById("CheckName").innerHTML = "<font color=red>该用户存在,请更换用户名!</font>";
		    document.getElementById("CheckForm").value='false';
		}
		else
		{
		    document.getElementById("CheckName").innerHTML = "<font color=red>恭喜您!可以注册!</font>";	
		    document.getElementById("CheckForm").value='true';
		}
	}
	catch(e){
			
		}
		}
	
	var xhconn = new XHConn();
	xhconn.connectAsync(url, method, vars, cb);
}
//检查用户名是否可用
function get_CheckComName_rec(comname){
	var url = "/UserReg/CheckComName.asp";
	var method = "GET";
	var name=name;
	var vars = "comname="+comname;
	var cb = function(xhq) {
   
   try{
			if (xhq.responseText=='no')
			{
				document.getElementById("CheckComName").innerHTML = "<font color=red>该公司存在,请和我们的工作人员联系!</font>";
				document.getElementById("CheckForm").value='false';
			}
			else
			{
				document.getElementById("CheckComName").innerHTML = "<font color=red>恭喜您!该公司可以注册!</font>";	
				document.getElementById("CheckForm").value='true';
			}
		}
		catch(e)
			{
					
			}
		}
	
	var xhconn = new XHConn();
	xhconn.connectAsync(url, method, vars, cb);
}
//加载导航栏
function get_LoadDaoHang_rec(){
	var url = "http://www.zhao1718.com/include/LoadDaoHang.asp";
	var method = "GET";
	var vars = "d=1";
	var cb = function(xhq) {
    try{
	        document.getElementById("LoadDaoHang").innerHTML = xhq.responseText;
		
	}
	catch(e){
			
		}
		}
	
	var xhconn = new XHConn();
	xhconn.connectAsync(url, method, vars, cb);
}
//加载分类菜单栏
function get_LoadDaoMenu_rec(){
	var url = "http://www.zhao1718.com/include/LoadDaoMenu.asp";
	var method = "GET";
	var vars = "d=1";
	var cb = function(xhq) {
    try{
	        document.getElementById("LoadDaoMenu").innerHTML = xhq.responseText;
		
	}
	catch(e){
			
		}
		}
	
	var xhconn = new XHConn();
	xhconn.connectAsync(url, method, vars, cb);
}
//显示产品厂家详情
function get_Contact_rec(mnid){
	var url = "http://www.zhao1718.com/Admin_Manager/product/productShow/contact.asp";
	var method = "GET";
	var vars ="mnid="+mnid;
	var cb = function(xhq) {
    try{
	        document.getElementById("contact"+mnid).innerHTML = xhq.responseText;
		    document.getElementById("contact"+mnid).style.display=""
	}
	catch(e){
			
		}
		}
	
	var xhconn = new XHConn();
	xhconn.connectAsync(url, method, vars, cb);
}
//显示产品订单详情
function get_loadMailContent_rec(id){
	var url = "http://www.zhao1718.com/test/shoppingMsg.asp";
	var method = "GET";
	var vars ="id="+id;
	var cb = function(xhq) {
    try{
	        document.getElementById("MSGcontent"+id).innerHTML = xhq.responseText;
		    //document.getElementById("contact"+mnid).style.display=""
	}
	catch(e){
			
		}
		}
	
	var xhconn = new XHConn();
	xhconn.connectAsync(url, method, vars, cb);
}
//显示产品详情
function get_loadProductShow_rec(prono){
	var url = "http://www.zhao1718.com/test/productShow.asp";
	var method = "GET";
	var vars ="prono="+prono;
	var cb = function(xhq) {
    try{
	        document.getElementById("MSGcontent"+prono).innerHTML = xhq.responseText;
		    //document.getElementById("contact"+mnid).style.display=""
	}
	catch(e){
			
		}
		}
	
	var xhconn = new XHConn();
	xhconn.connectAsync(url, method, vars, cb);
}
//生成产品静态页面
function get_makeHTML_rec(HTMLPath,id,SaveName){
	var url = "http://www.zhao1718.com/UserCenter/makehtml/makeHTML.asp";
	var method = "GET";
	var vars ="HTMLPath="+HTMLPath+"&id="+id+"&SaveName="+SaveName;
	var cb = function(xhq) {
    try{
	        document.getElementById("makeHTML"+id).innerHTML = xhq.responseText;
		    //document.getElementById("contact"+mnid).style.display=""
	}
	catch(e){
			
		}
		}
	
	var xhconn = new XHConn();
	xhconn.connectAsync(url, method, vars, cb);
}
//加载不同分类下的友情链接
function get_Show_FreeLink_Type_Website_rec(freelinkType){
	var url = "/include/loadfreelink.asp";
	var method = "GET";
	var vars ="freelinkType="+freelinkType;
	var cb = function(xhq) {
    try{
	        document.getElementById("Show_freelink").innerHTML = xhq.responseText;
		
	}
	catch(e){
			
		}
		}
	
	var xhconn = new XHConn();
	xhconn.connectAsync(url, method, vars, cb);
}
//加载地区
function get_load_Area(){
document.getElementById("CateContentUl").innerHTML ="<CENTER><li><a href='#' onClick=document.getElementById('txtArea').value='北京市';document.getElementById('CateWrapDiv').style.display='none';>北京市</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='天津市';document.getElementById('CateWrapDiv').style.display='none';>天津市</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='河北省';document.getElementById('CateWrapDiv').style.display='none';>河北省</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='山西省';document.getElementById('CateWrapDiv').style.display='none';>山西省</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='内蒙古区';document.getElementById('CateWrapDiv').style.display='none';>内蒙古区</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='辽宁省';document.getElementById('CateWrapDiv').style.display='none';>辽宁省</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='吉林省';document.getElementById('CateWrapDiv').style.display='none';>吉林省</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='黑龙江省';document.getElementById('CateWrapDiv').style.display='none';>黑龙江省</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='上海市';document.getElementById('CateWrapDiv').style.display='none';>上海市</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='江苏省';document.getElementById('CateWrapDiv').style.display='none';>江苏省</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='浙江省';document.getElementById('CateWrapDiv').style.display='none';>浙江省</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='安徽省';document.getElementById('CateWrapDiv').style.display='none';>安徽省</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='福建省';document.getElementById('CateWrapDiv').style.display='none';>福建省</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='江西省';document.getElementById('CateWrapDiv').style.display='none';>江西省</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='山东省';document.getElementById('CateWrapDiv').style.display='none';>山东省</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='河南省';document.getElementById('CateWrapDiv').style.display='none';>河南省</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='湖北省';document.getElementById('CateWrapDiv').style.display='none';>湖北省</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='湖南省';document.getElementById('CateWrapDiv').style.display='none';>湖南省</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='广东省';document.getElementById('CateWrapDiv').style.display='none';>广东省</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='广西区';document.getElementById('CateWrapDiv').style.display='none';>广西区</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='海南省';document.getElementById('CateWrapDiv').style.display='none';>海南省</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='重庆市';document.getElementById('CateWrapDiv').style.display='none';>重庆市</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='四川省';document.getElementById('CateWrapDiv').style.display='none';>四川省</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='贵州省';document.getElementById('CateWrapDiv').style.display='none';>贵州省</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='西藏区';document.getElementById('CateWrapDiv').style.display='none';>西藏区</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='陕西省';document.getElementById('CateWrapDiv').style.display='none';>陕西省</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='甘肃省';document.getElementById('CateWrapDiv').style.display='none';>甘肃省</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='青海省';document.getElementById('CateWrapDiv').style.display='none';>青海省</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='宁夏区';document.getElementById('CateWrapDiv').style.display='none';>宁夏区</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='新疆区';document.getElementById('CateWrapDiv').style.display='none';>新疆区</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='台湾省';document.getElementById('CateWrapDiv').style.display='none';>台湾省</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='香港特区';document.getElementById('CateWrapDiv').style.display='none';>香港特区</a></li><li><a href='#' onClick=document.getElementById('txtArea').value='澳门特区';document.getElementById('CateWrapDiv').style.display='none';>澳门特区</a></li></CENTER>";
	document.getElementById('CateWrapDiv').style.display='block';
}
//加载大类
function get_load_Procate(){
document.getElementById("CateContentUl").innerHTML ="<CENTER><li><a href='#' onClick=document.getElementById('txtprocate').value='分析仪器';document.getElementById('txtprocate1').value='8';get_load_Prokind(8)>分析仪器</a></li><li><a href='#' onClick=document.getElementById('txtprocate').value='光学仪器';document.getElementById('txtprocate1').value='7';get_load_Prokind(7)>光学仪器</a></li><li><a href='#' onClick=document.getElementById('txtprocate').value='进口仪表';document.getElementById('txtprocate1').value='17';get_load_Prokind(17)>进口仪表</a></li><li><a href='#' onClick=document.getElementById('txtprocate').value='其它仪表';document.getElementById('txtprocate1').value='13';get_load_Prokind(13)>其它仪表</a></li><li><a href='#' onClick=document.getElementById('txtprocate').value='实验仪器';document.getElementById('txtprocate1').value='9';get_load_Prokind(9)>实验仪器</a></li><li><a href='#' onClick=document.getElementById('txtprocate').value='电热器材';document.getElementById('txtprocate1').value='11';get_load_Prokind(11)>电热器材</a></li><li><a href='#' onClick=document.getElementById('txtprocate').value='温度仪表';document.getElementById('txtprocate1').value='2';get_load_Prokind(2)>温度仪表</a></li><li><a href='#' onClick=document.getElementById('txtprocate').value='物位仪表';document.getElementById('txtprocate1').value='5';get_load_Prokind(5)>物位仪表</a></li><li><a href='#' onClick=document.getElementById('txtprocate').value='压力仪表';document.getElementById('txtprocate1').value='3';get_load_Prokind(3)>压力仪表</a></li><li><a href='#' onClick=document.getElementById('txtprocate').value='电工仪表';document.getElementById('txtprocate1').value='6';get_load_Prokind(6)>电工仪表</a></li><li><a href='#' onClick=document.getElementById('txtprocate').value='流量仪表';document.getElementById('txtprocate1').value='4';get_load_Prokind(4)>流量仪表</a></li><li><a href='#' onClick=document.getElementById('txtprocate').value='阀门仪表';document.getElementById('txtprocate1').value='10';get_load_Prokind(10)>阀门仪表</a></li><li><a href='#' onClick=document.getElementById('txtprocate').value='医疗仪器';document.getElementById('txtprocate1').value='15';get_load_Prokind(15)>医疗仪器</a></li><li><a href='#' onClick=document.getElementById('txtprocate').value='仪器仪表零配件';document.getElementById('txtprocate1').value='14';get_load_Prokind(14)>仪器仪表零配件</a></li><li><a href='#' onClick=document.getElementById('txtprocate').value='网络测试';document.getElementById('txtprocate1').value='16';get_load_Prokind(16)>网络测试</a></li></CENTER>";
document.getElementById('CateWrapDiv').style.display='block';
}
//加载小类
function get_load_Prokind(prokind){
	var url = "http://www.zhao1718.com/test/loadprokind.asp";
	var method = "GET";
	var vars ="prokind="+prokind;
	var cb = function(xhq) {
    try{
	        document.getElementById("CateContentUl").innerHTML = xhq.responseText;
			document.getElementById('CateWrapDiv').style.display='none';
		    
	}
	catch(e){
			
		}
		}
	
	var xhconn = new XHConn();
	xhconn.connectAsync(url, method, vars, cb);
}
function get_load_Prokind1(){
	document.getElementById('CateWrapDiv').style.display='block';
	
}
function drawWaitArea()
        { 
        	document.getElementById('tip').innerHTML="";
			var waitarea = "<img src='http://www.zhao1718.com/images/loading.gif'>&nbsp;&nbsp;&nbsp;&nbsp;加载中,请稍侯......";
    		var Div = document.createElement("DIV");
    		Div.className = "loading";
    		Div.innerHTML = waitarea;
        	document.getElementById('tip').appendChild(Div);
        }
function getPage(page){
   var method = "GET";
   var search=document.form1.search.value;
   var vars ="search="+escape(search)+"&page="+page+"&t="+new Date().getTime();
   var url="http://www.zhao1718.com/search/isearch.asp";
   tip.style.display="inline";
   drawWaitArea();
   var cb = function(xhq) {
    try
	{
	        document.getElementById("tip").innerHTML=xhq.responseText;
	}
	catch(e){
			
		}
		}
	
	var xhconn = new XHConn();
	xhconn.connectAsync(url, method, vars, cb);
}
function advGetPage(page){
   var method = "GET";
   var vars ="page="+page+"&t="+new Date().getTime();
   var url="http://www.zhao1718.com/search/dosearch.asp";
   tip.style.display="inline";
   drawWaitArea();
   var cb = function(xhq) {
    try
	{
	        document.getElementById("tip").innerHTML=xhq.responseText;
	}
	catch(e){
			
		}
		}
	
	var xhconn = new XHConn();
	xhconn.connectAsync(url, method, vars, cb);
}
function get_CountNum_rec(prono){
   var method = "GET";
   var vars ="prono="+prono+"&t="+new Date().getTime();
   var url="http://www.zhao1718.com/test/count.asp";
   var cb = function(xhq) {
    try
	{
	        document.getElementById("CountNum").innerHTML=xhq.responseText;
	}
	catch(e){
			
		}
		}
	
	var xhconn = new XHConn();
	xhconn.connectAsync(url, method, vars, cb);
}
function get_PageStats_rec(FromPage){
   var method = "GET";
   var vars ="FromPage="+FromPage+"&t="+new Date().getTime();
   var url="http://www.zhao1718.com/test/PageStats.asp";
   var cb = function(xhq) {
    try
	{
	        
	}
	catch(e){
			
		}
		}
	
	var xhconn = new XHConn();
	xhconn.connectAsync(url, method, vars, cb);
}
//发邮件
function get_SendMail_rec(tname,email,mnid){
	var url = "http://www.zhao1718.com/Admin_Manager/product/productShow/SendMail.asp";
	var method = "GET";
	var vars ="tname="+tname+"&email="+email+"&mnid="+mnid;
	var cb = function(xhq) {
    try{
	        document.getElementById("mail"+mnid).innerHTML = xhq.responseText;
		    document.getElementById("mail"+mnid).style.display=""
	}
	catch(e){
			
		}
		}
	
	var xhconn = new XHConn();
	xhconn.connectAsync(url, method, vars, cb);
}
function get_SendMailOK_rec(){
	var url = "http://www.zhao1718.com/Admin_Manager/product/productShow/SendMailOK.asp";
	var method = "GET";
	var MailtoAddress = escape(document.getElementById('MailtoAddress').value);
	var MailtoName = escape(document.getElementById('MailtoName').value);
	var Subject = escape(document.getElementById('Subject').value);
	var FromName = escape(document.getElementById('FromName').value);
	var MailBody = escape(document.getElementById('MailBody').value);
	var vars = "MailtoAddress="+MailtoAddress+"&MailtoName="+MailtoName+"&Subject="+Subject+"&FromName="+FromName+"&MailBody="+MailBody+"&action=SendMail";
	if(!CheckEmpty(document.getElementById('MailtoAddress'), "收件人地址")) return false;
	if(!CheckEmpty(document.getElementById('MailtoName'), "收件人名称")) return false;
	if(!CheckEmpty(document.getElementById('Subject'), "标题")) return false;	
	if(!CheckEmpty(document.getElementById('FromName'), "发件人名称")) return false;	
	if(!CheckEmpty(document.getElementById('MailBody'), "邮件内容")) return false;
	var waitarea = "<img src='http://www.zhao1718.com/images/loading.gif'>&nbsp;&nbsp;&nbsp;&nbsp;邮件发送中,请稍侯......";
	document.getElementById('SendMailWait').innerHTML=waitarea;
	var cb = function(xhq) {
    try{
	         setTimeout("document.getElementById('SendMailWait').innerHTML='<font color=red>邮件发送成功</font>';",1000)
			 document.getElementById('MailtoAddress').value="";
			 document.getElementById('MailtoName').value="";
			 document.getElementById('Subject').value="";
			 document.getElementById('FromName').valu="";
			 document.getElementById('MailBody').value="";
		
	}
	catch(e){
			
		}
		}
	
	var xhconn = new XHConn();
	xhconn.connectAsync(url, method, vars, cb);
}
//显示统计分页
function get_TongJi_rec(selValues){
	var url = "http://www.zhao1718.com/test/tongji.asp";
	var method = "GET";
	var vars =selValues+"&t="+new Date().getTime();
	var waitarea = "<img src='http://www.zhao1718.com/images/loading.gif'>&nbsp;&nbsp;&nbsp;&nbsp;数据加载中,请稍侯......";
	document.getElementById('pageststs').innerHTML=waitarea;
	var cb = function(xhq) {
    try{
	        document.getElementById("pageststs").innerHTML = xhq.responseText;
	}
	catch(e){
			
		}
		}
	
	var xhconn = new XHConn();
	xhconn.connectAsync(url, method, vars, cb);
}
//显示产品分页
function get_PorList_rec(selValues){
	var url = "http://www.zhao1718.com/test/productlist.asp";
	var method = "GET";
	var vars =selValues+"&t="+new Date().getTime();
	var waitarea = "<img src='http://www.zhao1718.com/images/loading.gif'>&nbsp;&nbsp;&nbsp;&nbsp;数据加载中,请稍侯......";
	document.getElementById('productlist').innerHTML=waitarea;
	var cb = function(xhq) {
    try{
	        document.getElementById("productlist").innerHTML = xhq.responseText;
	}
	catch(e){
			
		}
		}
	
	var xhconn = new XHConn();
	xhconn.connectAsync(url, method, vars, cb);
}
//删除产品
function get_DelPor_rec(selValues,prono){
	var url = "http://www.zhao1718.com/test/delpro.asp";
	var method = "GET";
	var vars =selValues+prono+"&t="+new Date().getTime();
	var cb = function(xhq) {
    try{
		   document.getElementById("delprostauts"+prono).innerHTML ='<font color=red>[管理员审核中][修改]</font>';
	}
	catch(e){
			
		}
		}
	
	var xhconn = new XHConn();
	xhconn.connectAsync(url, method, vars, cb);
}
//jsondata = xhq.responseText;返回的是下面类型的数据
//[
//{
//　name:"Michael",
//　email:"17bity@gmail.com",
//　homepage:"http://www.jialing.net"
//},
//{
//　name:"John",
//　email:"john@gmail.com",
//　homepage:"http://www.jobn.com"
//},
//{
//　name:"Peggy",
//　email:"peggy@gmail.com",
//　homepage:"http://www.peggy.com"
//}
//]
