var so_url="http://www.cheyisou.com";

//关键词
function bt_so_click()
{
	var  sokey = document.getElementsByName("soKey")[0].value;
	if(sokey=='')
	{
		alert("请输入关键字");
		return;
	}
	window.open(so_url+"/qiche/"+encodeURIComponent(sokey)+"/");
}
//价格区间
function bt_so_click_1()
{
	var  pricesCarvalue = document.getElementsByName("pricesCar")[0].value;
	if(pricesCarvalue==0)
	{
		alert("请选择价格");
		return;
	}
	window.open(so_url+"/chexing/1.html?para="+pricesCarvalue);
}

function pricesCar_init()
{
	var  pricesCarvalue = document.getElementsByName("pricesCar")[0];
	if(!pricesCarvalue)return;
	
	pricesCarvalue.options.add(new Option('5万以下','minp|1|maxp|5'));
	pricesCarvalue.options.add(new Option('5-8万','minp|5|maxp|8'));
	pricesCarvalue.options.add(new Option('8-10万','minp|8|maxp|10'));
	pricesCarvalue.options.add(new Option('10-15万','minp|10|maxp|15'));
	pricesCarvalue.options.add(new Option('15-20万','minp|15|maxp|20'));
	pricesCarvalue.options.add(new Option('20-30万','minp|20|maxp|30'));
	pricesCarvalue.options.add(new Option('30-40万','minp|30|maxp|40'));
	pricesCarvalue.options.add(new Option('40-60万','minp|40|maxp|60'));
	pricesCarvalue.options.add(new Option('60万以上','minp|60|maxp|1000'));
}
pricesCar_init();