function YjSearch()
{
   YjsearchOp();
}
function Cqsearch()
{
    searchOp();
}

//公司库
function GskSearch(){
    //公司库-物流类公司
    var strUrl = ""; 
    var objSearchType = document.getElementById("CompanyType");
    var itemValue = objSearchType.options[objSearchType.selectedIndex].value;
    if(itemValue == "1"){		
	    var tt = GetObj("comptype").value;
	    var t = GetObj("comptxt");
	    var tv = RemoveSp(Trim(t.value));
	    tv = tv != "请输入关键字" ? tv : "";
	    tv= encodeURIComponent(tv);  
   	    strUrl = "http://company.jctrans.com/Company/List/" + tt + "-0-" + tv + "---0/1.html";
   	}else{
   	    //公司库-工厂及贸易类公司
            var key = GetObj("key").value;
            key = key != "输入公司名称执行搜索" ? key : "";
            strUrl = "http://trade.jctrans.com/CompanyList/list-----" + key +  "--1.html";
   	}
   	if(strUrl != ""){
   	    window.open(strUrl, "_blank");
   	}
}
function ComanyTypeChange(){
    var objSearchType = document.getElementById("CompanyType");
    var itemValue = objSearchType.options[objSearchType.selectedIndex].value;
    if(itemValue == "1"){
        GetObj("li_comptype").style.display = "";
        GetObj("li_comptxt").style.display = "";
        GetObj("li_key").style.display = "none";
    }else{
        GetObj("li_comptype").style.display = "none";
        GetObj("li_comptxt").style.display = "none";
        GetObj("li_key").style.display = "";
    }
}

//陆运 公路 铁路
function HuopanLySearch() {
    var lyUrl = "http://land.jctrans.com/CarsInfo/index";
    var startAddr = document.getElementById("txtHuopanLyStart").value;
    startAddr = startAddr != "请输入起始地" ? startAddr : "";
    var endAddr = document.getElementById("txtHuopanLyEnd").value;
    endAddr = endAddr != "请输入目的地" ? endAddr : "";
    if (document.getElementById('select_huopan').selectedIndex == 4) {
        lyUrl += "-0-0--" + startAddr + "-" + endAddr + "----1.html";
    }
    else if (document.getElementById('select_huopan').selectedIndex == 5) {
        lyUrl += "-0-1--" + startAddr + "-" + endAddr + "----1.html";
    }
    window.open(lyUrl, "_blank");
}

function CheckFagui(){
	if(GetObj("kword").value == "" || GetObj("kword").value == "请输入关键字"){
		alert("请输入关键字！");
		return false;
	}
}
function CheckZixun(){
	if(GetObj("q").value == "" || GetObj("q").value == "请输入关键字"){
		alert("请输入关键字！");
		return false;
	}
}



    //集装箱
    function SearchChanged(selectId, num) {
        var objSelect = document.getElementById(selectId);
        var itemValue = objSelect.options[objSelect.selectedIndex].value;
        Display(num, itemValue);
    }
    
    function Display(num, disNumber) {
        document.getElementById("con_s_" + num + "_" + disNumber).style.display = "";
        for(var i = 0;i <=9;i++){
            if(i != disNumber){
                document.getElementById("con_s_" + num + "_" + i).style.display = "none";
            }
        }
    }
    

