
//
// Verification script
//
// copyright © 2003 agitprop_mainman
//
// This is a free script by agitprop_mainman that is  released under the
// Open Source Software copyright conventions.
//
// Please note that NO technical assistance is  offered with this script.
//
//--------------------------------------------------------------------------
//
//Paste the script into the head of your page

function verify()
{
// This section just uses a simple regular expression to check the name
// input box. It checks for one or more characters, a space and another
// group of characters.

// name

if (document.form.name.value.search(/^.+.+$/))
     {
     alert("Please include your name!")
     return
     }

// homephone		 
		 
if (document.form.homephone.value.search(/^.+.+$/))
     {
     alert("Please include your home phone number!")
     return
     }
		 
// This section also uses a regular expression to check the email  input box.
// It checks for one or more characters, then it checks for the email @
// signifier, then another group of characters, then a full stop or period (.),
// then for another group of characters.

if (document.form.email.value.search(/^.+@.+\..+$/))
     {
     alert("E-mail Address is required. Make sure you have entered a valid email address!")
     return
     }
else
     {
// If the form is correctly filled out you can submit the form to your mail cgi
// by deleting the next line, and uncommenting the following two lines.
		document.form.submit()
		return
     }
}


