function Form_Validator(theForm)
{

	if (theForm.MyName.value == "")
    {
        alert("Please enter your name.");
        theForm.MyName.focus();
        return (false);
   	}

	if (theForm.Email.value == "")
    {
        alert("Please enter an E-mail address.");
        theForm.Email.focus();
        return (false);
    }

	var pattern = (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/);
	if (theForm.Email.value.search(pattern) == -1)
	{
        alert("Please enter a valid E-mail address.");
        theForm.Email.focus();
        return (false);
	}
	
}