function loginClicked()
{
	//if (validate()) 
	//{ 
	try {
	   window.external.AutoCompleteSaveForm(LoginForm);
	}
	catch (e) {
	   // found an unexplained case where this call explodes
	}
	document.LoginForm.submit();	 
		
	//}
}

function onKeyPressFunc()
{

	var key=event.keyCode;
	if ((key==13||key==10))
	{
		loginClicked();
		return false;
	}
}

function setFocusUN() {
	document.all.username.focus();
}

function initLogin(){
	if (!lifePageUtilObj.qualifyBrowser() || !lifePageUtilObj.qualifyOs()){
	  	window.location.href = "/ReportError?errorId=" + INCOMPATIBLE_BROWSER_OS_ID;
    }
}
function launchTour(vhost){
	var screenHeight = screen.availHeight - 50;
		var screenWidth = (screen.availWidth - 75);
		window.open("public/Tour_Step1.shtml?regURL=" + vhost,"_blank", "height="+screenHeight+",px,width="+screenWidth+"px,status=no,scrollbars=yes,resizable=yes,directories=no,toolbar=no,menubar=no,location=no,top=0,left=25");
}

