function Shop_Validator(theForm)
{

//NAME VALIDATE:
  if (theForm.rname.value == "")
  //TEST FOR ENTRY
  {
    alert("Please enter a value for the \"Name (First, Last)\" field.");
    theForm.rname.focus();
    return (false);
  }

//EMAILADDRESS:
  var str=theForm.email.value
  var filter=/^(\w+(?:\.\w+)*)@((?:\w+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
    if (filter.test(str))
    testresults=true
    else{
    alert("Please input a valid email address!")
    return (false);
    }

//SCROLLING MESSAGE BOX VALIDATE:
  //TEST FOR ENTRY:
  if (theForm.comments.value == "")
  {
    alert("Please enter a value for the \"Message\" field.");
    theForm.Message.focus();
    return (false);
  }

  //TEST FOR MAXIMUM CHARACTERS:
  if (theForm.comment.value.length > 1024)
  {
    alert("Please enter at most 1024 characters in the \"Comment\" field.");
    theForm.comment.focus();
    return (false);
  }


//SCRIPT END
  return (true);
}
//-->
