function valcourse()
{

if ((document.forms[0].password.value.length < 4))
{
mesg = "You have entered the password " + document.forms[0].password.value + "\n of length " + document.forms[0].password.value.length + " character(s)\n"
mesg = mesg + "Invalid Password.\n"
mesg = mesg + "Please verify your input and submit again."
alert(mesg);
document.forms[0].password.focus();
return (false);
}

if ((document.forms[0].qs0.value.length < 3))
{
mesg = "You have entered the search term " + document.forms[0].qs0.value + "\n of length " + document.forms[0].qs0.value.length + " character(s)\n"
mesg = mesg + "Invalid Search Term - Such short terms is not meaningful.\n"
mesg = mesg + "Please verify your input and submit again."
alert(mesg);
document.forms[0].qs0.focus();
return (false);
}

if ((document.forms[0].password.value == "GUEST") || (document.forms[0].password.value == "Guest")||(document.forms[0].password.value == "guest"))
{
mesg = "Invalid Access Code " + document.forms[0].password.value + " \n";
mesg = mesg + "Please verify your input and submit again.";
alert(mesg);
document.forms[0].password.focus();
return (false);
}

return (true);
}
