function ValidateOK(theForm)
{
	var strMsg;
	
	if (theForm.txt_EmailAddress.value.length==0){
		alert("Please enter your email address in the space provided.")
		theForm.txt_EmailAddress.focus();
		return false;	
	}
	if (theForm.txt_UserPassword.value.length ==0){
		alert("Please enter your password in the space provided.")
		theForm.txt_UserPassword.focus();
		return false;
	}
	
	return true;

}

function NavigateToCheckLogin(theForm) {

	if (theForm.QuoteID.value != ""){
		window.location='checklogin.asp?QID=' + theForm.QuoteID.value
	} else {
		window.location='checklogin.asp'
	}
}

function NavigateForgottenPassword(theForm){
	if (theForm.txt_EmailAddress.value.length == 0){
		alert ("An email address must be entered")
	}else{
		theForm.action = "login.asp?ID=4"
		theForm.submit()
	}
}