function verifyForm(lang){
        if (lang=="chn"){
			msg_LoginName = "请输入用户名"
			msg_LoginPass = "请输入密码"
		}else{
			msg_LoginName = "Please enter the Exhibitor ID."
			msg_LoginPass = "Please enter the Password."
		}
		var gotchar=true
        gotchar=doesExist(document.form1.loginname.value)
        if(gotchar==false){
			alert(msg_LoginName)
			document.form1.loginname.focus()
			return false
			}       
        gotchar=doesExist(document.form1.loginpassword.value)
        if(gotchar==false){
			alert(msg_LoginPass)
			document.form1.loginpassword.focus()
			return false
			}
        
		document.getElementById("a1").style.display="none";
		document.getElementById("a2").style.display="";
	return true;
}

function doesExist(inputValue){
	var aCharExists=false;
	if(inputValue){
		for(var i=0; i<inputValue.length; i++){
			if(inputValue.charAt(i)!=" "){
				aCharExists=true;}
		}
	}
	return aCharExists;
}


