function VerifyLogin(frmLogin, updCommand) {
	if (updCommand == "Log In") {
		if (frmLogin.Login_txtUsername.value == "") {
			alert ("Please enter Username.")
			frmLogin.Login_txtUsername.focus()
			frmLogin.Login_txtUsername.select()
		    return false
		}
		if (frmLogin.Login_txtPassword.value == "") {
			alert ("Please enter Password.")
			frmLogin.Login_txtPassword.focus()
			frmLogin.Login_txtPassword.select()
		    return false
	    }
	}
	if (updCommand == "Clear") {
		frmLogin.Login_txtUsername.value = ""
		frmLogin.Login_txtPassword.value = ""
	    frmLogin.Login_txtUsername.focus();
		return false
    }
	if (updCommand == "Send it") {
		if (frmLogin.Login_txtUsrname.value == "") {
			alert ("Please enter Full Name.")
			frmLogin.Login_txtUsrname.focus()
			frmLogin.Login_txtUsrname.select()
		    return false
		}
		if (frmLogin.Login_txtEmail.value == "") {
			alert ("Please enter Email.")
			frmLogin.Login_txtEmail.focus()
			frmLogin.Login_txtEmail.select()
		    return false
	    }
        alert("An email with your login details will be sent to you shortly,\nprovided we found a match in the system. Thank you.");
    }
	if (updCommand == "Cleer") {
		frmLogin.Login_txtUsrname.value = ""
		frmLogin.Login_txtEmail.value = ""
	    frmLogin.Login_txtUsrname.focus();
		return false
    }
	if (updCommand == "Submit") {
		if (frmLogin.Login_txtNewPassword.value == "" || frmLogin.Login_txtConfirm.value == "") {
			alert ("Please enter New Password and confirm it by retyping.")
		    frmLogin.Login_txtNewPassword.value = ""
		    frmLogin.Login_txtConfirm.value = ""
			frmLogin.Login_txtNewPassword.focus()
			frmLogin.Login_txtNewPassword.select()
		    return false
		}
		if (frmLogin.Login_txtNewPassword.value != frmLogin.Login_txtConfirm.value) {
			alert ("New Password does not match Confirmation Password.")
		    frmLogin.Login_txtNewPassword.value = ""
		    frmLogin.Login_txtConfirm.value = ""
			frmLogin.Login_txtNewPassword.focus()
			frmLogin.Login_txtNewPassword.select()
		    return false
		}
    }
}

function LoadWindow(popupbox) {
    //popupbox = '../includes/calendar.aspx?FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName;
    var feature = 'width=483,height=500,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes,location=no,status=no,resizable=no';
	var load = window.open(popupbox,'',feature);
}

_uacct = "UA-120138-6";
urchinTracker();
