function GetPwdNow() {
	var GetPwd=window.open('/'+CountryCode02+'/'+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 ("請先輸入您的帳號。")
		else
			alert ("Please enter your Username.")
		thisForm.UserID.focus()
		return
	}
	if (thisForm.Password.value=='') {
		if (LangCode=='B5')
			alert ("請先輸入您的密碼 。")
		else
			alert ("Please enter your Password.")
		thisForm.Password.focus()
		return 
	}
	thisForm.TargetPage.value='/'+CountryCode+'/'+LangCode+'/V6/JS/Home/Home.asp?'+parseInt(Math.random() * 65535)
	thisForm.action='/'+CountryCode+'/'+LangCode+'/V6/JS/Login/Login.asp?PN=LoginProcess&HomeLogin=True&'+parseInt(Math.random() * 65535)
	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)	
	//document.JSLogin.submit()	
}

function SelectCoun() {
						for (var i=0;i<document.JSLogin.CountryCode.length;i++) {
							if (document.JSLogin.CountryCode[i].value==CountryCode)
								document.JSLogin.CountryCode[i].selected=true
						}
}
function ResetAll() {
	document.JSLogin.UserID.value=''
						document.JSLogin.Password.value=''
						SelectCoun();
}    