function subsou(){
	document.searchForm.postkind.value=document.searchForm.ppostkind.value;
	document.searchForm.pname.value='';
	document.searchForm.cname.value='';
	document.searchForm.submit();
}
var lengthpostname=11;
var lengthcorpname=12;
var lengthlocation=5;
var lengthfromsite=5;
function showhighlight(tag) {
					
					if (!document.createElement)
					{
						return;
					}
					showcut();
					var q = tag;//要高亮显示的关键字
					if("" == q) return;
					
					word = q.replace(/\+/g,' ');
					
					words=word.split(' ');					
							var tdiv = document.getElementsByTagName('div');							
							isIdCorrect1=/s\d+/;
							for (k=0;k<tdiv.length;k++) {
								
								tid=tdiv[k].id;								
								if(tid!=null&&isIdCorrect1.test(tid)){
									
									var l = tdiv[k].parentNode.parentNode.previousSibling.getElementsByTagName("td");
									for (w=0;w<words.length;w++) {
										var pa = new RegExp("("+words[w]+")","ig");
										tdiv[k].innerHTML = tdiv[k].innerHTML.replace(pa,"<font color=#FF0000>$1</font>");
										for(i=0;i<l.length;i++)
										{	 hl(l[i],pa);										
										}
									}
								}
							}
							
					
}
function hl(node,pa){	
	var children = node.children;
	if(children.length>0){
		for(var i=0; i<children.length; i++){
			hl(children[i],pa);			
		}
	}else{
		node.innerHTML = node.innerHTML.replace(pa,"<font color=#FF0000>$1</font>");
	}	
}
function ghc(node,length){	
	var children = node.children;
	if(children.length>0){
		for(var i=0; i<children.length; i++){
			ghc(children[i],length);			
		}
	}else{
		s=node.innerHTML;
		if(s.length>length){
			node.innerHTML=s.substring(0,length);											
		}
	}	
}
function showcut(){
					
					if (!document.createElement)
					{
						return;
					}					
		
							var tdiv = document.getElementsByTagName('div');							
							isIdCorrect1=/s\d+/;
							for (k=0;k<tdiv.length;k++) {								
								tid=tdiv[k].id;								
								if(tid!=null&&isIdCorrect1.test(tid)){									
									var l = tdiv[k].parentNode.parentNode.previousSibling.childNodes;									
									if(l.length==6){										
										//截取职位										
										ghc(l[0],lengthpostname);
										ghc(l[1],lengthcorpname);
										ghc(l[2],lengthlocation);										
										
									}
									if(l.length==7){										
										//截取职位										
										ghc(l[1],lengthpostname);
										ghc(l[2],lengthcorpname);
										ghc(l[3],lengthlocation);										
										
									}
								}
							}		
					
}




function getpost(id){
	return "";
}

function showlength(){

}

function showpostlist(theelement){

}

function showpostkind(id){	
	return '';
}
function dosearchpost(id){	
	document.searchForm.postkind.value=id;
	document.searchForm.ppostkind.value=id;
	document.searchForm.page.value="1";
	document.searchForm.submit();
}
function findcorp(name){	
	
}