function showpromenu1()
{
	if(document.getElementById("productlb1").style.display=="block")
	{
		document.getElementById("productlb1").style.display="none";
	}
	else
	{
		document.getElementById("productlb1").style.display="block";
		document.getElementById("showemail").style.display="none";
	}
	
}

function showEmailmenu()
{
	
		document.getElementById("showemail").style.display="block";
	
	
}


function selectpro1(prpid,text)
{
	document.getElementById("proid1").value=prpid;
	document.getElementById("productlb1").style.display="none";
	document.getElementById("k").value=text;
	
}
  
    function copyToClipBoard(){   
         var clipBoardContent="";   
         clipBoardContent+=document.title;   
         clipBoardContent+="\n";   
         clipBoardContent+=this.location.href; //获取地址   
         window.clipboardData.setData("Text",clipBoardContent);   
         alert("地址复制成功");   
    }   

function searchpro1()
{
	var proid=document.getElementById("proid1").value;
	var k=document.getElementById("k").value;
	var cyt=document.getElementById("cyse").value;
	var mi="";
	var ti="";

	
	switch(proid)
	{
		case "secy.aspx":
		if(k.replace("乘用车名称","")=="" && cyt=="" )
		{
			
			alert("请至少选择一个条件");
		}
		else
		{
			window.location.href=proid+"?k="+escape(k.replace("乘用车名称",""))+"&cyt="+cyt;
		}
		break;
case "sekc.aspx":
alert("页面将跳转至黄海客车网站，请在进行搜索");
window.location.href = "http://www.huanghaibus.com/";
//    if (k.replace("客车型号", "") == "" && mi == "" && ti == "") {
//
//        alert("请至少选择一个条件");
//    }
//    else {
//        if (mi != "" && mi != null) {
//            window.location.href = "http://www.huanghaibus.com/m.php?mo_subject=" + k.replace("客车型号", "") + "&mo_catid=" + ti + "&mo_Size_length=" + mi + "%C3%D7&name=product"
//        }
//        else {
//            window.location.href = "http://www.huanghaibus.com/m.php?mo_subject=" + k.replace("客车型号", "") + "&mo_catid=" + ti + "&mo_Size_length=&name=product"
//        }
//        //window.location.href=proid+"?k="+k+"&mi="+mi+"&ti="+ti+"&zws="+zws;
   // }
    break;
		case "setz.aspx":
		if(k.replace("特种车型号","")=="" )
		{
			
			alert("请输入型号");
		}
		else
		{
			window.location.href=proid+"?k="+escape(k.replace("特种车型号",""))+"&cyt="+cyt;
		}
		break;
		
		
	}
	
	
	
}

function sendmail()
{ 
       var mail=document.getElementById("email").value;
       if(mail=="" || mail=="请输入邮件地址")
       {
       alert("请输入邮件地址");
       }
       else
       {
       ajax("savemail.aspx?murl="+mail,"sandm");
       }
}

function showzmenu(showdiv)
{
	for(var i=1;i<=2;i++)
	{
		document.getElementById("zmenu"+i).style.display="none";
	}
	document.getElementById(showdiv).style.display="block";
}


function submitsearch()
{
var k=document.getElementById("k1111").value;
if(k!="乘用车/特种车" && k!="" && k!="请输入乘用车车型"  && k!="请输入特种车车型")
{
	window.location="carsearch.aspx?k="+escape(k);
	}
	else
	{
	alert("请输入车型");
	}
	}
	 function enter3search(e)
  {
        if(navigator.appName == "Microsoft Internet Explorer")
　　    {
　　      　　    　　var keycode = event.keyCode;   
　　      　　    　　if(keycode==13)
　　      　　    　　{
　　      　　    　　submitsearch();
　　      　　    　　}
　　    }
　　    else
　　    {
　　      　　    var keycode = e.which;  
　　      　　    　if(keycode==13)
　　      　　    　　{
　　      　　    　　submitsearch();
　　      　　    　　}
　　      　　     
　　    }
　　      　　    　　    
  }
