function yyform(){
	var ct_nowsou="";
	var a=encodeURIComponent||escape;
	if(searchForm.location.value!=""){
	if(ct_nowsou.length>0){
	ct_nowsou+="&";
	}
	ct_nowsou+="city="+searchForm.location.value;
	}else if(searchForm.province.value!=""){
	if(ct_nowsou.length>0){
	ct_nowsou+="&";
	}ct_nowsou+="city="+searchForm.province.value;
	}
	
	if(searchForm.postkind.value!=""){
	if(ct_nowsou.length>0){
	ct_nowsou+="&";
	}ct_nowsou+="pk="+searchForm.postkind.value;
	}
	if(searchForm.words.value!=""&&searchForm.words.value.indexOf("关键字")==-1&&searchForm.words.value.indexOf("输入")==-1){
		if(ct_nowsou.length>0){
			ct_nowsou+="&";
		}
		ct_nowsou+="words="+a(searchForm.words.value);
	}	
	if(ct_nowsou!=""){		
		document.write("<img src='http://211.152.34.3:8080/yy/a.jsp?"+ct_nowsou+"+&tag=3' style='display:none'>");
	}
}
function findbycorpname(cname){
	var a=encodeURIComponent||escape;
	window.open("/sou.do?cname="+a(cname));
}
function yyself(pk,city,tag){
	var ct_nowsou="";
	if(pk!=""){
		if(ct_nowsou.length>0){
			ct_nowsou+="&";
		}
		ct_nowsou+="pk="+pk;
	}
	if(city!="") {
		if(ct_nowsou.length>0){
			ct_nowsou+="&";
		}
		ct_nowsou+="city="+city;
	}
	if(tag==""){
		tag="3";
	}
	if(ct_nowsou!=""){
		ct_nowsou+="&tag="+tag;
		ct_nowsou=ct_nowsou.replace(/ /g,"_");
		document.write("<img src='http://211.152.34.3:8080/yy/a.jsp?"+ct_nowsou+"' style='display:none'>");
	}
}
function yyother(pk,city,tag){
	var ct_nowsou="";
	var a=encodeURIComponent||escape;
	if(pk!=""){
		if(ct_nowsou.length>0){
			ct_nowsou+="&";
		}
		ct_nowsou+="pk="+pk;
	}
	if(city!="") {
		if(ct_nowsou.length>0){
			ct_nowsou+="&";
		}
		ct_nowsou+="city="+a(city);
	}
	if(tag==""){
		tag="3";
	}
	if(ct_nowsou!=""){
		ct_nowsou+="&tag="+tag;
		ct_nowsou=ct_nowsou.replace(/ /g,"_");
		document.write("<img src='http://211.152.34.3:8080/yy/a.jsp?"+ct_nowsou+"' style='display:none'>");
	}
}
function getDataFromServer(id, url) {
    oScript = document.getElementById(id);
    var head = document.getElementsByTagName("head").item(0);
    if (oScript) {
    head.removeChild(oScript);
    }
    oScript = document.createElement("script");
    wholeurl = url;
    oScript.setAttribute("src", wholeurl);
    oScript.setAttribute("id",id);
    head.appendChild(oScript);    
   	var pos=navigator.userAgent.indexOf("Firefox");
    if (pos==-1) {
        if  (oScript.readyState == "loaded") {
       // eval(callback);
        oScript.onreadystatechange = null;
       } else {
        oScript.onreadystatechange = CheckAgain;
       }
    } else {
       //eval(callback);
    }	
}
function CheckAgain() {
  if (oScript.readyState == "loaded") {
    //  eval(callback);
      oScript.onreadystatechange = null;
    } 
}
function sousp(postkind,city,words,page){
	var a=encodeURIComponent||escape;
	var url="";
	if(postkind!=""){
		if(url!=""){
			url+="&";
		}url+="postkind="+a(postkind);
	}
	if(city!=""){
		if(url!=""){
			url+="&";
		}url+="location="+a(city);
	}if(words!=""){
		if(url!=""){
			url+="&";
		}url+="words="+a(postkind);
	}
	if(page!=""){
		if(url!=""){
			url+="&";
		}url+="page="+page;
	}
	getDataFromServer("souselfid","http://w2.itou.cn/asou.do?"+url);
}
