var v6HostName='http://www.jobsdb.com'
function GetPwdNow() {
	var GetPwd=window.open('/'+CountryCode+'/'+LangCode+'/V6/JS/Login/Login.asp?PN=ForgotPassword','V6GetPwd','Resizable=0,Status=0,width=440,height=200,left=20,top=0')
}
function JSLoginNow(thisForm) {

	if (thisForm.UserID.value=='') {
		if (LangCode=='B5')
			alert ("½Ð¥ý¿é¤J±zªº±b¸¹¡C")
		else if (LangCode=='TH')
			alert ("¡ÃØ³ÒãÊè ‘ª×èÍ¼Ùéãªé’ ¢Í§¤Ø³")
		else
			alert ("Please enter your Username.")
		thisForm.UserID.focus()
		return
	}
	if (thisForm.Password.value=='') {
		if (LangCode=='B5')
			alert ("½Ð¥ý¿é¤J±zªº±K½X ¡C")
		else if (LangCode=='TH')
			alert ("¡ÃØ³ÒãÊèÃËÑÊ¼èÒ¹¢Í§¤Ø³")
		else
			alert ("Please enter your Password.")
		thisForm.Password.focus()
		return 
	}
	if(thisForm.TargetPage.value=='') {
		thisForm.TargetPage.value='/'+CountryCode+'/'+LangCode+'/V6/JS/Home/Home.asp?'+parseInt(Math.random() * 65535)
	}

	thisForm.action=v6HostName+'/'+CountryCode+'/'+LangCode+'/V6/JS/Login/Login.asp?PN=LoginProcess&HomeLogin=True&'+parseInt(Math.random() * 65535)

	/*
	if (typeof(JSPopUp)!='undefined') 
	{
		JSPopUp('',790,530)
		thisForm.target='V6JSPopUp'
	//thisForm.target='LoginFrame'
	setTimeout('document.JSLogin.submit()', 1500)
	setTimeout('document.JSLogin.UserID.value=""',3000)
	setTimeout('document.JSLogin.Password.value=""',3000)	
	}
	else
	*/
		document.JSLogin.submit()	
}