    function check_key()
    {
	
         var SEL=document.getElementById("key").value;
		 
		if(SEL=="")
		{
		//alert("88");
		  	document.getElementById("key").focus();
   			return (false);
		}
    }
    function issel_brand()
    {
     	var pclass_B=document.getElementById("sel_pclass_B").value;
     	var pclass_M=document.getElementById("sel_pclass_M").value;
     	var brandDegree=document.getElementById("sel_brandDegree").value;
     	var brand_name=document.getElementById("sel_brand_name").value;
		if(pclass_B=="" && pclass_M=="" && brandDegree=="" && brand_name=="")
		{
		  	document.getElementById("sel_pclass_B").focus();
   			return (false);
		}
    }
     function issel_emarket()
    {
     	var pclass_B=document.getElementById("sel_emarket_pclass_B").value;
     	var pro=document.getElementById("sel_emarket_pro").value;
     	var city=document.getElementById("sel_emarket_city").value;
     	//var name=document.getElementById("sel_emarket_name").value;
		if(pclass_B=="" && pro=="" && city=="" && name=="")
		{
		  	document.getElementById("sel_emarket_pclass_B").focus();
   			return (false);
		}
    }
      function issel_mfitinc()
    {
     	var mfitinc_pro=document.getElementById("sel_mfitinc_pro").value;
     	var mfitinc_city=document.getElementById("sel_mfitinc_city").value;
     	var mfitinc_type=document.getElementById("sel_mfitinc_type").value;
		if(mfitinc_city=="")
		{
		  	//document.getElementById("sel_mfitinc_city").focus();
   			//return (false);
		}
    }
      function issel_designinc()
    {
     	var designinc_pro=document.getElementById("sel_designinc_pro").value;
     	var designinc_city=document.getElementById("sel_designinc_city").value;
     	var designinc_class=document.getElementById("sel_designinc_class").value;
     	var designinc_type=document.getElementById("sel_designinc_type").value;
		if(designinc_city=="" || designinc_class=="")
		{
		  	//document.getElementById("sel_designinc_city").focus();
   			//return (false);
		}	
	}	
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->  
//XMLHttpRequest 
    var xmlhttp = false;
    try {
        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");//Mozilla浏览器
    } catch (e) {
        try {
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");//IE浏览器
        } catch (e2) {
            xmlhttp = false;
        }
    }
	//开始初始化XMLHttpRequest对象
    if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
        xmlhttp = new XMLHttpRequest();
    }
     /*   
   function ajax_isChecked(){
        xmlhttp.open("GET","/ischecked.php",false);
		//send_request('checkbookinfo.php?username='+username+'&comment='+comment);//这是JS中URL同时传多个变量的写法，参考用
		xmlhttp.setRequestHeader("If-Modified-Since","0");
        xmlhttp.send(null);
                	var text=xmlhttp.responseText;
                	//alert(text);
                    document.getElementById("ischecked").innerHTML=text;
    }    
 */ 
    function ajax_isChecked(){
        xmlhttp.open("GET","/ischecked.php",true);
		//send_request('checkbookinfo.php?username='+username+'&comment='+comment);//这是JS中URL同时传多个变量的写法，参考用
		xmlhttp.setRequestHeader("If-Modified-Since","0");
        xmlhttp.send(null);
        xmlhttp.onreadystatechange=function(){
            if (4==xmlhttp.readyState){
                if (200==xmlhttp.status){
                	
                	var text=xmlhttp.responseText;
                	//alert(text);
                    document.getElementById("ischecked").innerHTML=text;
                    
                }else{
                    alert("发生错误!");
                }
            }
        }
    }
  
    //-------------------------------这是搜索品牌中心的------------------------
    function ajax_pclass_b(){
        xmlhttp.open("GET","/search/pclass_b.php",false);
		xmlhttp.setRequestHeader("If-Modified-Since","0");
        xmlhttp.send(null); 
                	var text=xmlhttp.responseText;
                    document.getElementById("pclass_B").innerHTML=text;
      }
     function ajax_pclass_m(){
     	var pclass_B=document.getElementById("sel_pclass_B").value;
     	//alert(pclass_B);
        xmlhttp.open("GET","/search/pclass_m.php?pclass_B="+pclass_B,false);
		xmlhttp.setRequestHeader("If-Modified-Since","0");
        xmlhttp.send(null);
                	var text=xmlhttp.responseText;
                    document.getElementById("pclass_M").innerHTML=text;
    }
     function ajax_brand_degree(){
        xmlhttp.open("GET","/search/brand_degree.php",false);
		xmlhttp.setRequestHeader("If-Modified-Since","0");
        xmlhttp.send(null);
                	var text=xmlhttp.responseText;
                    document.getElementById("brand_type").innerHTML=text;
    }
     //--------------------------------------------------------------------------------


    //-------------------------------这是搜索产品的------------------------
	function p_from_chanage(){
		var f= document.getElementById("sel_p_from").value;
		if(f=='2')
		{
			document.getElementById("sel_p_brandDegree").disabled='disabled';
		}
		else
		{
			document.getElementById("sel_p_brandDegree").disabled='';
		}
	}
    function ajax_p_pclass_b(){
        xmlhttp.open("GET","/search/p_pclass_b.php",false);
		xmlhttp.setRequestHeader("If-Modified-Since","0");
        xmlhttp.send(null); 
                	var text=xmlhttp.responseText;
                    document.getElementById("p_pclass_B").innerHTML=text;
      }
     function ajax_p_pclass_m(){
     	var pclass_B=document.getElementById("sel_p_pclass_B").value;
     	//alert(pclass_B);
        xmlhttp.open("GET","/search/p_pclass_m.php?pclass_B="+pclass_B,false);
		xmlhttp.setRequestHeader("If-Modified-Since","0");
        xmlhttp.send(null);
                	var text=xmlhttp.responseText;
                    document.getElementById("p_pclass_M").innerHTML=text;
    }
     function ajax_p_brand_degree(){
        xmlhttp.open("GET","/search/p_brand_degree.php",false);
		xmlhttp.setRequestHeader("If-Modified-Since","0");
        xmlhttp.send(null);
                	var text=xmlhttp.responseText;
                    document.getElementById("p_brand_type").innerHTML=text;
    }
     function ajax_p_brand_name(){
     	var pclass_B=document.getElementById("sel_p_pclass_B").value;
     	var pclass_M=document.getElementById("sel_p_pclass_M").value;
     	var brandDegree=document.getElementById("sel_p_brandDegree").value;
     	//alert(pclass_B+"--"+pclass_M+"--"+brandDegree);
        xmlhttp.open("GET","/search/p_brand_name.php?pclass_B="+pclass_B+"&pclass_M="+pclass_M+"&brandDegree="+brandDegree,false);
		xmlhttp.setRequestHeader("If-Modified-Since","0");
        xmlhttp.send(null); 	
                	var text=xmlhttp.responseText;
                    document.getElementById("p_brand_name").innerHTML=text; 
                }
     //--------------------------------------------------------------------------------



     
     //------------------------------------这是搜索城市卖场的-----------------------------
     function ajax_emarket_pclass_b(){
        xmlhttp.open("GET","/search/emarket_pclass_b.php",false);
		xmlhttp.setRequestHeader("If-Modified-Since","0");
        xmlhttp.send(null);
                	var text=xmlhttp.responseText;
                    document.getElementById("emarket_pclass_B").innerHTML=text;
      }    
     
     function ajax_emarket_pro(){
     	//var pclass_B=document.getElementById("sel_pclass_B").value;
     	//alert(pclass_B);
        xmlhttp.open("GET","/search/emarket_pro.php",false);
		xmlhttp.setRequestHeader("If-Modified-Since","0");
        xmlhttp.send(null);
                	var text=xmlhttp.responseText;
                    document.getElementById("emarket_pro").innerHTML=text;
    }     
     
 function ajax_emarket_city(){
       	var pro=document.getElementById("sel_emarket_pro").value;
        xmlhttp.open("GET","/search/emarket_city.php?pro="+pro,false);
		xmlhttp.setRequestHeader("If-Modified-Since","0");
        xmlhttp.send(null);
                	var text=xmlhttp.responseText;
                    document.getElementById("emarket_city").innerHTML=text;
    } 
 function ajax_emarket_name(){
      	var pclass_B=document.getElementById("sel_emarket_pclass_B").value;
     	var pro=document.getElementById("sel_emarket_pro").value;
     	var city=document.getElementById("sel_emarket_city").value;
     	//alert(pclass_B+"--"+pclass_M+"--"+brandDegree);
        xmlhttp.open("GET","/search/emarket_name.php?pclass_B="+pclass_B+"&pro="+pro+"&city="+city,false);
		xmlhttp.setRequestHeader("If-Modified-Since","0");
        xmlhttp.send(null); 	
        var text=xmlhttp.responseText;
        //document.getElementById("emarket_name").innerHTML=text;  	
  }
 //----------------------------------------------------------------------------------  

 //---------------------------------装修公司搜索---------------------------------------
 
    function ajax_mfitinc_pro(){
   	//var pclass_B=document.getElementById("sel_pclass_B").value;
   	//alert(pclass_B);
      xmlhttp.open("GET","/search/mfitinc_pro.php",false);
	  xmlhttp.setRequestHeader("If-Modified-Since","0");
      xmlhttp.send(null);
              	var text=xmlhttp.responseText;
                  document.getElementById("mfitinc_pro").innerHTML=text;
  }  
    
 function ajax_mfitinc_city(){
       	var pro=document.getElementById("sel_mfitinc_pro").value;
        xmlhttp.open("GET","/search/mfitinc_city.php?pro="+pro,false);
		xmlhttp.setRequestHeader("If-Modified-Since","0");
        xmlhttp.send(null);
                	var text=xmlhttp.responseText;
                    document.getElementById("mfitinc_city").innerHTML=text;
    } 
    
    
    /*
 
      function ajax_mfitinc_city(){
        xmlhttp.open("GET","/search/mfitinc_city.php",false);
		xmlhttp.setRequestHeader("If-Modified-Since","0");
        xmlhttp.send(null);
                	var text=xmlhttp.responseText;
                    document.getElementById("mfitinc_city").innerHTML=text;
      }
 
       function ajax_mfitinc_name(){
       	var mfitinc_city=document.getElementById("sel_mfitinc_city").value;
        xmlhttp.open("GET","/search/mfitinc_name.php?mfitinc_city="+mfitinc_city,false);
		xmlhttp.setRequestHeader("If-Modified-Since","0");
        xmlhttp.send(null);
                	var text=xmlhttp.responseText;
                    document.getElementById("mfitinc_name").innerHTML=text;
       }
	*/ 
 //----------------------------------------------------------------------------------
 
 //---------------------------------设计师/设计机构搜索---------------------------------------
 
     function ajax_designinc_pro(){
   	//var pclass_B=document.getElementById("sel_pclass_B").value;
   	//alert(pclass_B);
      xmlhttp.open("GET","/search/designinc_pro.php",false);
	  xmlhttp.setRequestHeader("If-Modified-Since","0");
      xmlhttp.send(null);
              	var text=xmlhttp.responseText;
                  document.getElementById("designinc_pro").innerHTML=text;
  }  
    
 function ajax_designinc_city(){
       	var pro=document.getElementById("sel_designinc_pro").value;
        xmlhttp.open("GET","/search/designinc_city.php?pro="+pro,false);
		xmlhttp.setRequestHeader("If-Modified-Since","0");
        xmlhttp.send(null);
                	var text=xmlhttp.responseText;
                    document.getElementById("designinc_city").innerHTML=text;
    } 
 /*
       function ajax_designinc_class(){
        xmlhttp.open("GET","/search/designinc_class.php",false);
		xmlhttp.setRequestHeader("If-Modified-Since","0");
        xmlhttp.send(null);
                	var text=xmlhttp.responseText;
                    document.getElementById("designinc_class").innerHTML=text;
      } 
      
 
 
 
      function ajax_designinc_city(){
        xmlhttp.open("GET","/search/designinc_city.php",false);
		xmlhttp.setRequestHeader("If-Modified-Since","0");
        xmlhttp.send(null);
                	var text=xmlhttp.responseText;
                    document.getElementById("designinc_city").innerHTML=text;
      }
      

       function ajax_designinc_name(){
       	var designinc_city=document.getElementById("sel_designinc_city").value;
       	var designinc_class=document.getElementById("sel_designinc_class").value;
        xmlhttp.open("GET","/search/designinc_name.php?designinc_city="+designinc_city+"&designinc_class="+designinc_class,false);
		xmlhttp.setRequestHeader("If-Modified-Since","0");
        xmlhttp.send(null);
                	var text=xmlhttp.responseText;
                    document.getElementById("designinc_name").innerHTML=text;
       }
       */
 
//----------------------------------------------------------------------------------
 
//这是搜索案例图片的-------------------------------------------------------------------




//---------------------------------------------------------------------------------- 
ajax_isChecked();//是否登陆
<!-- xhtml and css, developed by Xukai.-->

<!--
//图片按比例缩放
var hiddenPic = new Array();
function DrawImage(ImgD){
	var FitWidth=	ImgD.width;
	var FitHeight= ImgD.height;
	
	if (FitWidth==0){
		hiddenPic.push(ImgD);
		return;
	}
	
	var image=new Image();
	image.src=ImgD.src;//图片文件的大小
	if(image.width>0 && image.height>0){
		if(image.width/image.height>= FitWidth/FitHeight){
			if(image.width>FitWidth){
				ImgD.style.width=FitWidth;
				ImgD.style.height=Math.round((image.height*FitWidth)/image.width);
			}else{
				ImgD.style.width=image.width;
				ImgD.style.height=image.height;
			}
		} else{
			if(image.height>FitHeight){
				ImgD.style.height=FitHeight;
				ImgD.style.width=Math.round((image.width*FitHeight)/image.height);
			}else{
				ImgD.style.width=image.width;
				ImgD.style.height=image.height;
			}
		}
	}	

}//	onload="javascript:DrawImage(this);"

function DrawHiddenImage(ImgD){
	var FitWidth=	ImgD.width;
	var FitHeight= ImgD.height;

	if (FitWidth==0){
//不加回到hiddenPic数组
//		hiddenPic.push(ImgD);  
		return;
	}
	
	
	var image=new Image();
	image.src=ImgD.src;//图片文件的大小
	if(image.width>0 && image.height>0){
		if(image.width/image.height>= FitWidth/FitHeight){
			if(image.width>FitWidth){
				ImgD.style.width=FitWidth;
				ImgD.style.height=Math.round((image.height*FitWidth)/image.width);
			}else{
				ImgD.style.width=image.width;
				ImgD.style.height=image.height;
			}
		} else{
			if(image.height>FitHeight){
				ImgD.style.height=FitHeight;
				ImgD.style.width=Math.round((image.width*FitHeight)/image.height);
			}else{
				ImgD.style.width=image.width;
				ImgD.style.height=image.height;
			}
		}
	}	

}//	onload="javascript:DrawImage(this);"


function resizeHiddenPic(){
	var thisPic;
	var len=hiddenPic.length;
	for (var i=0;i<len;i++){
		thisPic = hiddenPic[i];
		DrawHiddenImage(thisPic);
	}
}
//网页全部图片按比例缩放 
function DrawAllImage(){
	for (var i=0;i<document.images.length ;i++ )
	{
		DrawImage(document.images[i]);
	}
}
  -->