/* shop_test_input_logon.js Copyright © 2001-2006 by Adam Baruch */

function test_input_logon()
{
document.input.email.value=document.input.email.value.toLowerCase();
var emailRegExp=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/
if(document.input.email.value=="")
{
document.input.error.value="No E-mail Address Entered!";
return false;
}
if(!emailRegExp.test(document.input.email.value))
{
document.input.error.value="Invalid E-mail Address!";
return false;
}
if(document.input.pass.value=="")
{
document.input.error.value="No Password Entered!";
return false;
}
if(document.input.pass.value.length<6)
{
document.input.error.value="Password Must Be 6 Characters!";
return false;
}
document.input.error.value="";
return true;
}
