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;
	}
	var now=new Date(); 
    var number = now.getSeconds()%3;
	//if(number==0){
	//	getDataFromServer("souselfid","http://w2.itou.cn/asou.do?"+url);	
	//}else{
		getDataFromServer("souselfid","http://w1.itou.cn/asou.do?"+url);
	//}
}
function sousp1(postkind,city,words,pname,page){
	var a=encodeURIComponent||escape;
	var querystring="m=so";
	if(document.searchForm.postkind.value!=""){
		querystring+="&kid="+postkind;
	}
	if(pname!=""){
		querystring+="&pname="+a(words);
	}
	if(words!=""&&words!="输入关键字-例如：销售"){
		querystring+="&pname="+a(words);
	}
	if(city!=""){
		querystring+="&city="+city;
	}
	if(page!=""){
		querystring+="&page="+page;
	}
	//getDataFromServer("souselfid","http://w2.itou.cn/asou.do?"+url);
	getDataFromServer("souselfid","http://w1.itou.cn/dobalance/gao8dou_self.jsp?"+querystring);
}
function dobooksubmit(){
	if(!document.bookerForm.email.value.match(/^[\w\.\-]+@([\w\-]+\.)+[a-z]{2,4}$/ig)){
		alert('请输入正确的电子邮件');
		return;
	}
	if(document.bookerForm.content.value.length==0){
		alert('请输入您要定阅的职位名');
		return;
	}
	document.bookerForm.submit();
}
function showbookjob(webcity,city,postkind,postname,start,end){
var searchtag=null;
if(start.indexOf("searchs")>-1){
	searchtag="/searchs.do?pname=";
}else if(start.indexOf("/job/p")>-1){
	searchtag="/sou.do?pname=";
}
if(searchtag!=null){
	var a=encodeURIComponent||escape;
	var con="";
	var tempcity="";
	if(webcity!=""){
		tempcity=webcity;
	}else{
		var arr=city.split(" ");
		if(arr.length>0){
			tempcity=arr[0];
		}else{
			tempcity=city;
		}
	}
	con+='<form action="/seeker/bookjob.do?m=quick" method="POST" name=\"bookerForm\">';
	con+='<input type="hidden" name="city" value="'+tempcity+'"/>';
	con+='<table class="summary">';
	con+='  <tr>';
	con+='    <td valign="middle">';	
	con+='<a href="'+searchtag+a(postname)+'" target="_blank">最新'+tempcity+'<b>'+postname+'</b>招聘信息汇总<span>［每天更新］</span></a><br />	';
	var temppostarr=postkind.split(" ");
	if(temppostarr.length>0){
		for(var i=0;i<temppostarr.length;i++){
			if(temppostarr[i].length>5&&!endWith(temppostarr[i],"0000")&&!endWith(temppostarr[i],"00")){
				con+='<a href="'+start+temppostarr[i]+end+'" target="_blank">最新'+tempcity+'<b id="book'+temppostarr[i]+'"></b>招聘信息汇总<span>［每天更新］</span></a><br />	';
			}
		}
	}
	con+='	</td>';
	con+='  </tr>';
	con+='</table>';
	con+='<div class="design">';
	con+='<ul>';	
	con+='<li class="trying">一次定阅<font color="#0000ff">500</font>个人才网站最新招聘信息</li>';
	con+='<li class="import_email">职&nbsp;位&nbsp;名：<input type="text" name="content"  value="'+postname+'" /></li>';
	con+='<li class="import_email">电子邮件：<input type="text" name="email"/></li>';
	con+='<li class="import_email"><input type="button" name="Submit" value=" 订阅 " onclick="dobooksubmit()" class="goto_send"/></li>';
	con+='</ul>';
	con+='</div>';
	con+='</form>';
	document.writeln(con);
}
}




function showzhaopinbook(){	
	document.writeln(createzhaopinbook(200));
}

function createzhaopinbook(wh){
con='';
/*
con+='淘宝广告：';
con+='<table width="'+wh+'" height="90" border="0" cellpadding="0" cellspacing="0" bgcolor="f8f8f8" style="border:1px solid #CCCCCC">';
con+='<tr>';
con+='<td><table width="'+wh+'" border="0" cellspacing="0" cellpadding="3">';
con+='<tr>';
con+='<td align="center" class="thumb"><a href="http://tk.cn.yahoo.com/a/ofjw%2FtP0dg%3D%3D" target="_blank"><img style="border:1px solid #efefef" src="http://img06.taobao.com/bao/uploaded/i6/20070819/270/T14qlaXaGyYdz1upjX.jpg_sum.jpg" border="0" /><br />';
con+='</a><span style="font-family: Tahoma;font-size: 14px;color: #FF0000;font-weight: bolder;">9 元 </span></td>';
con+='<td style="font-size:12px; line-height:130%"><a href="http://tk.cn.yahoo.com/a/ofjw%2FtP0dg%3D%3D" target="_blank">『钻石信誉』求职简历定制<br />';
con+='</a><font color="#666666">『钻石信誉』求职简历定制/个人简历模板/表格/封面</font></td>';
con+='</tr>';
con+='</table></td>';
con+='</tr>';
con+='<tr>';
con+='<td><table width="'+wh+'" border="0" cellspacing="0" cellpadding="3">';
con+='<tr>';
con+='<td align="center" class="thumb"><a href="http://tk.cn.yahoo.com/a/ofjxS7WKsw%3D%3D" target="_blank"><img style="border:1px solid #efefef" src="http://img08.taobao.com/bao/uploaded/i8/T1KZBXXdFoXXb1upjX.jpg_sum.jpg" border="0" /><br />';
con+='</a><span style="font-family: Tahoma;font-size: 14px;color: #FF0000;font-weight: bolder;">12.5 元 </span></td>';
con+='<td style="font-size:12px; line-height:130%"><a href="http://tk.cn.yahoo.com/a/ofjxS7WKsw%3D%3D" target="_blank">张晓彤－招聘与面试技巧5集免邮寄超值<br />';
con+='</a><font color="#666666">张晓彤－招聘与面试技巧5集网络发送免邮寄超值</font></td>';
con+='</tr>';
con+='</table></td>';
con+='</tr>';
con+='<tr>';
con+='<td><table width="'+wh+'" border="0" cellspacing="0" cellpadding="3">';
con+='<tr>';
con+='<td align="center" class="thumb"><a href="http://tk.cn.yahoo.com/a/ofjxSm0Zxg%3D%3D" target="_blank"><img style="border:1px solid #efefef" src="http://img08.taobao.com/bao/uploaded/i8/T1L8daXXolmExLsB7k_014219_p.jpg_sum.jpg" border="0" /><br />';
con+='</a><span style="font-family: Tahoma;font-size: 14px;color: #FF0000;font-weight: bolder;">259 元 </span></td>';
con+='<td style="font-size:12px; line-height:130%"><a href="http://tk.cn.yahoo.com/a/ofjxSm0Zxg%3D%3D" target="_blank">维多利亚的秘密★职场精英の显瘦纯黑套装<br />';
con+='</a><font color="#666666">大方得体的单扣正装，适合面试或其他正式场合穿着</font></td>';
con+='</tr>';
con+='</table></td>';
con+='</tr>';
con+='</table>';
*/
return con;
}