function ForgetPassword(){	
	window.open('http://www.jobems.com/Unicorn/frmForgetPassword.htm?SiteType=JobEMS','','width=400,height=220, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no');	
}

function checkKeyword(theformName){
	if ((theformName.txtKeyWord.value=='')||(theformName.txtKeyWord.value == "多个关键词之间用空格隔开")||(theformName.txtKeyWord.value == "职业、兴趣爱好、工作经历")){
		alert('请输入关键字！');
		theformName.txtKeyWord.focus();
		theformName.txtKeyWord.style.color="#233774";
		return false;
	}
	if ((theformName.sltArea.value=='')||(theformName.sltArea.value == "选择更多的城市")||(theformName.sltArea.value == "选择更多的城市")){
			theformName.sltArea.value='';
	}	
//	theformName.action="http://jobseeker.jobems.com/SearchResult.asp";
	return true;
}

function txtKeyWordShow(a) {
	if (a == "多个关键词之间用空格隔开"){
		document.JobEMSSearch.txtKeyWord.value="";
		document.JobEMSSearch.txtKeyWord.style.color="#233774";
	}
	return true;
}

function selectobj(obj,CityN,LayerID){
	document.getElementById(obj).value=CityN;
	document.getElementById(obj).className='InputStyle';
	if(LayerID!="")
	   document.getElementById(LayerID).style.display='none';
}
function DPBlock(a){
	document.getElementById(a).style.display='block';
}
function DPNone(a){
	document.getElementById(a).style.display='none';
}

function CheckLogin(){	
		if (document.getElementById('Unicorn_UserName').value==''){
			alert("请输入登录用户名！");
			document.getElementById('Unicorn_UserName').focus();
			return false;
			}
		if (!checkEmail(document.getElementById('Unicorn_UserName').value)){			
			document.getElementById('Unicorn_UserName').focus();
			return false;
		}
		if (document.getElementById('Unicorn_Password').value==''){
			alert("请输入登录密码！");
			document.getElementById('Unicorn_Password').focus();
			return false;
		}
		if(document.getElementById('ValidateCode')){
			if (document.getElementById('ValidateCode').value==''){
				alert("请输入登录验证码！");
				document.getElementById('ValidateCode').focus();
				return false;
			}
		}
		
		var sUserName=$$('Unicorn_UserName').value;
		var sPassword=$$('Unicorn_Password').value;	
		var sValidateCode=$$('Unicorn_Password').value;	
		
		window.open('http://www.jobems.com/ScriptLib/Unicorn_CheckLogin.asp?SiteType='+webSite+'&amp;UserName='+sUserName+'&amp;Password='+sPassword,'','width=750,height=506, toolbar=no, menubar=no, scrollbars=no, resizable=yes,location=no, status=no');
		
			
	return true;
		
	}
function CheckUnicornLogin(webSite){	


		if(FormIsEmpty($$('Unicorn_UserName'),'请输入用户名！')) return false;

		if (!checkEmail($$('Unicorn_UserName').value)){			
			$$('Panjolin_UserName').focus();
			return false;
		}
	
		if(FormIsEmpty($$('Unicorn_Password'),"请输入密码！")) return false;

		var sUserName=$$('Unicorn_UserName').value;
		var sPassword=$$('Unicorn_Password').value;
		window.open('http://www.jobems.com/ScriptLib/Unicorn_CheckLogin.asp?SiteType='+webSite+'&UserName='+sUserName+'&Password='+sPassword,'','width=750,height=506, toolbar=no, menubar=no, scrollbars=no, resizable=yes,location=no, status=no');
//		window.open('http://192.168.111.4:90/ScriptLib/Unicorn_CheckLogin.asp?SiteType='+webSite+'&UserName='+sUserName+'&Password='+sPassword,'','width=750,height=506, toolbar=no, menubar=no, scrollbars=no, resizable=yes,location=no, status=no');
		setTimeout("window.history.go(0)",1000);
	return true;
		
}	