function ArticleFriend_Validator(theForm)
{ if (theForm.email.value == "")
{ alert("Please enter a value for the \"Email Address\" field."); theForm.email.focus(); return (false);}
if (theForm.email.value.length < 5)
{ alert("Please enter a valid \"Email Address\"."); theForm.email.focus(); return (false);}
if (theForm.email.value.length > 50)
{ alert("Please enter at most 50 characters in the \"Email Address\" field."); theForm.email.focus(); return (false);}
var chkVal = theForm.email.value; var prsVal = chkVal; if (chkVal != "" && !(prsVal > "@" && prsVal > "."))
{ alert("Please enter a valid \"Email Address\"."); theForm.email.focus(); return (false);}
if (theForm.name.value.length == "")
{ alert("Please enter a value for the \"Your Name\" field."); theForm.name.focus(); return (false);}
return (true);}

