	function GetHTTP(){
		var ajax=false;
		try {
				ajax = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				ajax = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (E) {
				ajax = false;
			}
		}
		if (!ajax && typeof XMLHttpRequest!='undefined') {
		ajax = new XMLHttpRequest();
	    }
		return ajax;
	};
	function getMyTextHTTP(serverPage) {
		var ajaxHTTP = GetHTTP();
   		ajaxHTTP.open("GET", serverPage, true);
    	ajaxHTTP.onreadystatechange = function() {			
        	if (ajaxHTTP.readyState == 4) {        		
        		document.getElementById("msg1").innerHTML=ajaxHTTP.responseText;        				
        	}
    	}
    	ajaxHTTP.send(null);
	};
	function num(method,productid,divid){ 
  		document.getElementById(divid).innerHTML="正在请求,请稍后..";
		getnum2("/oftenquestion.html?method="+method+"&oftenquestion.productid="+productid+"&r="+rands(),divid);
  	};
	function pro_count(){
  		getpro_count("/productstatus.html?method=searchcount&r="+rands());
  	};
	function getpro_count(serverPage) {
    	var ajaxHTTP = GetHTTP();
   		ajaxHTTP.open("GET", serverPage, true);
    	ajaxHTTP.onreadystatechange = function() {
        	if (ajaxHTTP.readyState == 4) {
        		/*document.getElementById(divid).innerHTML=ajaxHTTP.responseText; */
        	}
    	}
    	ajaxHTTP.send(null);
	};
 	function num1(method,productid,divid){
  		/*document.getElementById(divid).innerHTML="正在请求,请稍后..";*/
  		document.getElementById("aaaaa_1").innerText="正在请求,请稍后..";
		getnum2("/productcomment.html?method="+method+"&productcomment.productid="+productid+"&brandid="+brandid+"&pro_catalogid="+pro_catalogid+"&r="+rands(),divid);
  	};
	function getnum1(serverPage,divid) {
    	var ajaxHTTP = GetHTTP();
   		ajaxHTTP.open("GET", serverPage, true);
    	ajaxHTTP.onreadystatechange = function() {
        	if (ajaxHTTP.readyState == 4) {
        		document.getElementById(divid).innerHTML=ajaxHTTP.responseText;
        		document.getElementById("aaaaa_1").innerHTML="<span class='red'>"+document.getElementById("ajax_num").value+"</span>分   "+"(共有：<span class='red f10'>"+document.getElementById("comment_num").value+"</span>条网友评论)";
        	}
    	}
    	ajaxHTTP.send(null);
	};
	function num2(method,productid,divid){
  		document.getElementById(divid).innerHTML="正在请求,请稍后..";
		getnum2("/productstatus.html?method="+method+"&productstatus.id="+productid+"&r="+rands(),divid);
  	};  	
	function getnum2(serverPage,divid) {
    	var ajaxHTTP = GetHTTP();
   		ajaxHTTP.open("GET", serverPage, true);
    	ajaxHTTP.onreadystatechange = function() {
        	if (ajaxHTTP.readyState == 4) {
        		document.getElementById(divid).innerHTML=ajaxHTTP.responseText;
        	}
    	}
    	ajaxHTTP.send(null);
	};
    function num3(method,productid,divid){  		
  		document.getElementById(divid).innerHTML="正在请求,请稍后..";
		getnum2("/ybcomment.html?method="+method+"&ybcomment.productid="+productid+"&r="+rands(),divid);
  	};
	function getnum3(serverPage,divid) {			
    	getnum2(serverPage,divid);
	};
	/**产品报价**/
	function price(method,productid,divid){
  		document.getElementById(divid).innerHTML="正在请求,请稍后..";
		getnum2("/productprice.html?method="+method+"&productprice.productid="+productid+"&r="+rands(),divid);
  	};
	/**会员评论**/
	function comment(method,productid,divid){
  		document.getElementById(divid).innerHTML="正在请求,请稍后..";
		getnum2("/productcomment.html?method="+method+"&productcomment.productid="+productid+"&r="+rands(),divid);
  	};  	
	/**会员评论+条件**/
	function commenttow(method,productid,divid,str){ 
  		document.getElementById(divid).innerHTML="正在请求,请稍后..";
		getnum2("/productcomment.html?method="+method+"&productcomment.productid="+productid+str+"&r="+rands(),divid);
  	};
	/**商家问答**/
	function mondo(method,productid,divid){
  		document.getElementById(divid).innerHTML="正在请求,请稍后..";
		getnum2("/productmondo.html?method="+method+"&productmondo.productid="+productid+"&r="+rands(),divid);
  	}; 
	function getmondo(serverPage,divid) {
    	getnum2(serverPage,divid);
	};
   /*取得随机数*/
   function rands(){
    	var a=new Date(); 
　　	var sec = a.getTime() ;
		return sec;
   	};
   /**商家问答**/ 	
   function updatnew(serverPage) {			
    	var ajaxHTTP = GetHTTP();
   		ajaxHTTP.open("GET", serverPage, true);
    	ajaxHTTP.onreadystatechange = function() {
        	if (ajaxHTTP.readyState == 4) {
        		return null;
        	}
    	}
    	ajaxHTTP.send(null);
	};
	/*获取平均评论数*/
	/**获取酒店价格*/
	function numprice(method,productid,divid){  		
  		document.getElementById(divid).innerHTML="正在请求,请稍后..";
		getnum2("/paramhotel.html?method="+method+"&id="+productid+"&r="+rands(),divid);
  	};
  	/**获取网站的参数**/
  function getweb_p(method,productid,divid){  		
  		document.getElementById(divid).innerHTML="正在请求,请稍后..";
		getnum2("/ybcomment.html?method="+method+"&ybcomment.productid="+productid+"&r="+rands(),divid);
  	};	
  	/*网站投票*/
  	
  	var modperson=null;
   	var modcount=null;
	function toupiao_web(method,productid){  
		alert("投票己经结束，谢谢参与!");		
		return null;
  		modperson=document.getElementById(productid);
  		modcount=document.getElementById(productid).innerHTML;
		getweb_xx("/paramweb.html?method="+method+"&touping_id="+productid+"&r="+rands());
  	};
  	function getweb_xx(serverPage) {
    	var ajaxHTTP = GetHTTP();
   		ajaxHTTP.open("GET", serverPage, true);
    	ajaxHTTP.onreadystatechange = function() {
        	if (ajaxHTTP.readyState == 4) {
        		if(ajaxHTTP.responseText!="您今天已投满5票，欢迎明天再来或给其它网站投票。"){
        			modperson.innerHTML=parseInt(modcount)+1+"票";
        		}
        		alert(ajaxHTTP.responseText);
        	}
    	}
    	ajaxHTTP.send(null);
	};