// JavaScript Document
function showgq(){
	gqid.style.display = "";
	tongyong.style.display = "none";
	jgid.style.display = "none";
	
	scdtid.style.display = "none";
	nyjsid.style.display = "none";
	nyspid.style.display = "none";
	
	
	document.getElementById("spgq").className="w";
	document.getElementById("spty").className="";
	document.getElementById("spjg").className="";

	document.getElementById("spscdt").className="";
	document.getElementById("spnyjs").className="";
	document.getElementById("spnysp").className="";
	
       //document.form2.q.value=document.form3.q.value;
       
}
function showtongyong(){
   
	gqid.style.display = "none";
	tongyong.style.display = "";
	jgid.style.display = "none";
	scdtid.style.display = "none";
	nyjsid.style.display = "none";
	nyspid.style.display = "none";
	
	
	document.getElementById("spty").className="w";
	document.getElementById("spgq").className="";
	document.getElementById("spjg").className="";
	
	document.getElementById("spscdt").className="";
	document.getElementById("spnyjs").className="";
	document.getElementById("spnysp").className="";
	document.form1.q.value=document.form2.q.value;

}
function showjiage(){
    
	jgid.style.display = "";
	tongyong.style.display = "none";
	gqid.style.display = "none";
	scdtid.style.display = "none";
	nyjsid.style.display = "none";
	nyspid.style.display = "none";
	
	
	document.getElementById("spty").className="";
	document.getElementById("spgq").className="";
	
	document.getElementById("spjg").className="w";
	
	document.getElementById("spscdt").className="";
	document.getElementById("spnyjs").className="";
	document.getElementById("spnysp").className="";
	
	document.form3.category.value=document.form2.q.value;
}

function showscdt(){
       scdtid.style.display = "";
    
	jgid.style.display = "none";
	tongyong.style.display = "none";
	gqid.style.display = "none";
	nyjsid.style.display = "none";
	nyspid.style.display = "none";
	
	
	document.getElementById("spscdt").className="w";
	
	document.getElementById("spty").className="";
	document.getElementById("spgq").className="";
	document.getElementById("spjg").className="";
	document.getElementById("spnyjs").className="";
	document.getElementById("spnysp").className="";
	document.form5.q.value=document.form2.q.value;
	
}

function shownyjs(){
       nyjsid.style.display = "";
       scdtid.style.display = "none";
   
	jgid.style.display = "none";
	tongyong.style.display = "none";
	gqid.style.display = "none";
	nyspid.style.display = "none";
	
	
	document.getElementById("spnyjs").className="w";
	document.getElementById("spscdt").className="";
	
	document.getElementById("spty").className="";
	document.getElementById("spgq").className="";
	document.getElementById("spjg").className="";
	document.getElementById("spnysp").className="";
	
	document.form6.q.value=document.form2.q.value;
}

function shownysp(){
       nyspid.style.display = "";
       nyjsid.style.display = "none";
       scdtid.style.display = "none";
   
	jgid.style.display = "none";
	tongyong.style.display = "none";
	gqid.style.display = "none";
	
	document.getElementById("spnysp").className="w";
	document.getElementById("spnyjs").className="";
	document.getElementById("spscdt").className="";
	
	document.getElementById("spty").className="";
	document.getElementById("spgq").className="";
	document.getElementById("spjg").className="";
	
	document.form7.q.value=document.form2.q.value;
}



function MM_jumpMenu(targ,selObj,restore,paraname){ 
  paraname = paraname+ "=" +selObj.options[selObj.selectedIndex].value  ;
  paraname = paraname + "&startD=" + document.form1.startD.value ;
  paraname = paraname + "&endD=" + document.form1.endD.value + "'";
  eval(targ+".location='pricetrend.jsp?"+paraname);
  if (restore) selObj.selectedIndex=0;
}
function radioClick(targ,selObj,restore,paraname){ 
 paraname = paraname+ "=" +selObj.value ;
  paraname = paraname + "&startD=" + document.form1.startD.value ;
  paraname = paraname + "&endD=" + document.form1.endD.value + "'";
  eval(targ+".location='pricetrend.jsp?"+paraname);
  //if (restore) selObj.selectedIndex=0;
}
function myshowmarket(imarket){
  for( i =  1; i<imarket ;i++)
  {
    var str = document.getElementById( "region"+i )
     str.style.display= "block";
  }
  var str2 = document.form1.showmarketed ;
 str2.style.display= "none";
}

function formCheck() 

{


if (document.form1.keyword.value == "") 

{

alert("Please put  form1 in a name.");
document.form1.keyword.focus(); 

return false;

 }
 
 else if (document.form1.keyword.value == "输入多个关键字（用空格分开)搜索结果更精确！") {
 alert("ssssss");
 document.form1.keyword.focus(); 
return false;

 }

}

function formCheck2()  {
if (document.form2.key.value == "") 

{

alert("Please put form2 in a name.");
document.form2.key.focus(); 

return false;

 } 
 
}

function formCheck3()  {
	if (document.form3.category.value == "") 

{

alert("Please put in  form3 a name.");
document.form3.category.focus(); 

return false;

 } 
}




function formCheck5()  {
	if (document.form5.q.value == "") 

{

alert("Please put in  form5 a name.");
document.form5.q.focus(); 

return false;

 } 
}

function formCheck6()  {
	if (document.form6.q.value == "") 

{

alert("Please put in  form6 a name.");
document.form6.q.focus(); 

return false;

 } 
}
function formCheck7()  {
	if (document.form7.q.value == "") 

{

alert("Please put in  form7 a name.");
document.form7.q.focus(); 

return false;

 } 
}
function formCheck8()  {
	if (document.form8.q.value == "") 

{

alert("Please put in  form8 a name.");
document.form8.q.focus(); 

return false;

 } 
}