<!--
function Email_Validate()
{
	if (document.emailForm.email.value == "") {
		alert("Please enter an email address, and try again.");
		document.emailForm.email.focus();
		return false;
	}
	
	return emailCheck(document.emailForm.email.value);
}

function CreateReply_Validate()
{
	if (document.createForm.text.value == "") {
		alert("Please enter a reply, and try again.");
		document.createForm.text.focus();
		return false;
	}
	
	return true;
}

function CreateSubject_Validate()
{
	if (document.createForm.subject.value == "") {
		alert("Please enter a subject header, and try again.");
		document.createForm.subject.focus();
		return false;
	}
	if (document.createForm.text.value == "") {
		alert("Please enter the first message under your subject, and try again.");
		document.createForm.text.focus();
		return false;
	}
	
	return true;
}

function Forgot_Validate()
{
	if (document.getForm.email.value == "") {
		alert("Please enter an email address, and try again.");
		document.getForm.email.focus();
		return false;
	}
	
	return true;
}

function Login_Validate()
{
	if (document.loginForm.email.value == "") {
		alert("Please enter an email address, and try again.");
		document.loginForm.email.focus();
		return false;
	}
	if (document.loginForm.password.value == "") {
		alert("Please enter a password, and try again.");
		document.loginForm.password.focus();
		return false;
	}
	
	return true;
}

function Register_Validate()
{
	if (document.regForm.username.value == "") {
		alert("Please enter a username, and try again.");
		document.regForm.username.focus();
		return false;
	}
	if (document.regForm.email.value == "") {
		alert("Please enter an email address, and try again.");
		document.regForm.email.focus();
		return false;
	}
	if (document.regForm.password.value == "") {
		alert("Please enter a password, and try again.");
		document.regForm.password.focus();
		return false;
	}
	if (document.regForm.password.value != document.regForm.confirm.value) {
		alert("Please verify that your password and confirmation password match, and try again.");
		document.regForm.password.focus();
		return false;
	}
	if (document.regForm.job.value <0) {
		alert("Please select a Job Function and try again.");
		return false;
	}
	if (!document.regForm.terms.checked) {
		alert("Please verify that you agree to BigMop's Terms and Conditions, and try again.");
		document.regForm.terms.focus();
		return false;
	}
	
	return true;
}

function SearchBooks_Validate()
{
	if (document.searchForm.keywords.value == "") {
		alert("Please enter keywords to search for, and try again.");
		document.searchForm.keywords.focus();
		return false;
	}
	
	return true;
}

function SearchForum_Validate()
{
	if (document.searchForm.words.value == "" && document.searchForm.username.value == "") {
		alert("You must enter either words or a username to search for.");
		document.searchForm.words.focus();
		return false;
	}
	
	return true;
}
function SearchCatalog_Validate()
{
    if (document.searchForm.keywords.value == "") {
        alert("Please enter something to search for, and try again.");
        document.searchForm.keywords.focus();
        return false;
    }
    
    return true;
}
// -->
