﻿function buildDiv(){
var argArr=buildDiv.arguments,htmlDiv='';
for(var i=0;i<argArr.length;i++){
    htmlDiv='<div id="'+argArr[i]+'" style="position:absolute;left:10px;top:-165px;visibility:hidden;z-index:999;"></div>';
    document.write(htmlDiv);
    iniPopUpLayer(argArr[i],'');
}}
function loadFile(fName){
if(document.createElement && document.childNodes){
 var scriptElem = document.createElement('script');
 scriptElem.setAttribute('src',fName);
 scriptElem.setAttribute('type','text/javascript');
 document.getElementsByTagName('head')[0].appendChild(scriptElem);}
else window.location.reload();
}
var timeSwitch=null;
function timeControl(flag,fN,file){
    timeSwitch=null;
	if(eval('typeof '+flag)!='undefined') eval(fN);
	else{
	   loadFile(file);
	   timeSwitch=setTimeout('timeControl(\''+flag+'\',\''+fN+'\',\''+file+'\')',100);
	}
}

function checkForm1(objF){
	if(objF.SchJobType.value=='' && objF.industry.value=='' && (objF.KeyWord.value=='' || objF.KeyWord.value=='输入公司名称或职位名称')){
		alert('请选择职位类别或行业类别，或者输入关键词！');
		return false;
	}

	if(objF.KeyWord.value=='输入公司名称或职位名称') objF.KeyWord.value='';
	if(!checkKeyword(objF.KeyWord)){
		setFocus(objF.KeyWord);
		return false;
	}

	return true;
}

function checkForm2(objF){
	if(!checkKeyword(objF.KeyWord,true)){
		setFocus(objF.KeyWord);
		return false;
	}
	return true;
}