// This is used in the Submit Comment or Suggestion Page (comments.php)
function noComment( myForm )
{
	// If the email address field is not empty make sure it is a valid email
    if( myForm.email.value != "" )
    {
		// Check for a valid email
		if( !validEmail( myForm.email.value ) ) 
		{
		    alert( "Invalid Email Address!\n\nExample: user@provider.com\n\nMake sure there are no spaces" );
			myForm.email.focus();
			myForm.email.select();
	        return false;
	    }
    }
		
	// This is going to check that you have a comment
	if( myForm.comment.value == "" )
	{
		alert( "Please Enter Your Comment!" );
		myForm.comment.focus();
		myForm.comment.select();
		return false;
	}
		
    // This check for links in the comments
    test1 = myForm.comment.value.indexOf( "<a" );
    test2 = myForm.comment.value.indexOf( "<A" );
    if( test1 != -1 || test2 != -1 )
    {
	  	alert( "Please Do Not Add Links To Your Comment!" );
		myForm.comment.focus();
		myForm.comment.select();
		return false;
    }
  
    // This is going to check that you answered the question
    if( myForm.question.value == "" )
    {
		alert( "Please Answer the Question!" );
		myForm.question.focus();
		myForm.question.select();
		return false;
    }		
	
    // If everything is acceptable return true
    return true;
}