//二手车搜索
function used_type(form1)
{ 
  if(Form1.Used_left1_DropDownList1.value=="请选择")
  {
    alert("请输入搜索条件");
    Form1.Used_left1_DropDownList1.focus();
    return false;
  }
   var type=Form1.Used_left1_DropDownList1.value;
  window.open("used_sou.aspx?use="+type,"_blank")
  
}
function used_car(form1)
{
  if(Form1.Used_left1_TextBox1.value=="")
  {
    alert("请输入搜索条件");
    Form1.Used_left1_TextBox1.focus();
    return false;
  }
  var car=Form1.Used_left1_TextBox1.value;
  window.open("used_sou.aspx?name="+car,"_blank")
}
function used_rate(form1)
{
   if(Form1.Used_left1_DropDownList2.value=="请选择")
  {
    alert("请输入搜索条件");
    Form1.Used_left1_DropDownList2.focus();
    return false;
  } 
  var rate=Form1.Used_left1_DropDownList2.value;
  window.open("used_sou.aspx?vip="+rate,"_blank")
}

		function Select(targetid)
		{ 
		     target=document.getElementById(targetid);
			if(document.Form1.Hire_put_right1_Select1.selectedIndex==2)
			{ 
			targetid.style.display="none"; 
			}
			else
			{ 
			targetid.style.display=""; 
			} 
		} 


//打开新窗口

function openwin(id)
{ 
    
 window.open ("revert.aspx?id="+id, "newwindow", "height=260, width=650, toolbar= no, menubar=no, scrollbars=no, resizable=no, location=no, status=no") 

} 
				    





function refer()
 { 
 window.open ("refer_car.aspx", "newwindow", "height=300, width=650, toolbar= no, menubar=no, scrollbars=no, resizable=no, location=no, status=no") 

} 
function refer_insure()
 { 
 window.open ("refer_insure.aspx", "newwindow", "height=300, width=650, toolbar= no, menubar=no, scrollbars=no, resizable=no, location=no, status=no") 

} 

function tg_put(sort,rank)
 { 
    window.open("tglm_put.aspx?sort="+sort+"&rank="+rank,"newwindow", "height=500, width=650, toolbar= no, menubar=no, scrollbars=no, resizable=no, location=no, status=no") 
 } 
 

//首页新车搜索
 
   function sou(rank)
     {
        
        window.open("http://www.qiche0769.com/soso.aspx?name="+rank,"_blank")
     }
 
        function sousuo(rate)
        {        
         var type="";
         window.open("http://www.qiche0769.com/susu.aspx?name="+rate+"&use="+type,"_blank")
        }
        
       function suo(type)
        {        
         var rate="";
         window.open("http://www.qiche0769.com/susu.aspx?name="+rate+"&use="+type,"_blank")
        }
        
 //搜索页面的搜索
   function susu()
        {        
         if(Form1.selects1.selectedIndex==0)
          {
            alert("请选择搜索条件!");
            Form1.selects1.focus();
            return false;
          }
        if(Form1.selects2.selectedIndex==0)
          {
            alert("请选择搜索条件!");
            Form1.selec3.focus();
            return false;
          }
           var rate=Form1.selects2.value;
            var type=Form1.selects1.value; 
          if(rate=="不限")
          {
             rate="";
          }   
          if(type=="不限")
          {
            type="";
          }
         window.open("susu.aspx?name="+rate+"&use="+type,"_blank")
        }
        
//新闻
function auto(sort)
{
   window.open("autonew.aspx?classname="+sort,"_blank")
}
 
//首页二手车搜索(车型)

function sou_car(car)
{
  if(Form1.car.value=="")
  {
   alert("请输入内容!");
   Form1.car.focus();
   return false;
  }
  window.open("used_sou.aspx?name="+car,"_blank")
}
//类型
 function sou_type(type)
 {      
  window.open("used_sou.aspx?use="+type,"_blank")
  
 }
//价格
function sou_rate(rate)
{   
    window.open("used_sou.aspx?vip="+rate,"_blank")
}
//新闻发布系统

function news(clas,place)
{
 if(clas=="首页-B区")
 {
  window.navigate("../news_admin/new_label.aspx?plc="+place,"right");
 }else if(clas=="首页-F区")
 {
  window.navigate("../news_admin/image_add.aspx?plc="+place,"right");
 }else if(clas=="首页-G区")
 {
  window.navigate("../news_admin/news_byimg.aspx?plc="+place,"right")  
 }else if(clas=="cyzc")
 {
  window.navigate("../news_admin/news_bybody.aspx?plc="+place,"right")  
 }else{
	window.navigate("../news_admin/new_title.aspx?plc="+place,"right");
 }
}


//友情连接
function url()
 { 
    window.open("url_put.aspx","newwindow", "height=220, width=380, toolbar= no, menubar=no, scrollbars=no, resizable=no, location=no, status=no") 
 } 

//加盟
function add_lea()
{
   window.open("lea_put.aspx","newwindow", "height=200, width=380, toolbar= no, menubar=no, scrollbars=no, resizable=no, location=no, status=no") 
}

//驾校添加
function add_jxxc()
{
   window.open("jx_put.aspx","newwindow", "height=260, width=460, toolbar= no, menubar=no, scrollbars=no, resizable=no, location=no, status=no")
}
//新闻搜索
function search_news(form1)
{
    var search=document.getElementById('input1');
    if(search.value.length<1)
    {
      Form1.input1.focus();
      alert("请输入搜索内容!");
      return false;
    }

  window.open("Search_news.aspx?sea="+search.value+"&&type=passtitle","newwindow")
}

//滑动技术
function bSwitchMenu(i,j)
{
    document.getElementById("SaleMenu"+j).style.display="none"; 
    document.getElementById("SaleMenu"+i).style.display="block";      
}
 
