<!-- Original:  Wayne Nolting (w.nolting@home.com) -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function verify() {
var themessage = "You are required to complete the following fields: ";


var yname = document.form.yourname.value; 
if (yname.value=="") {
themessage = themessage + "\n - Your Name";
}
if (yname.length < 5) { 
themessage = themessage + "\n - Your Name must be at least 5 characters";
}
if (yname.indexOf(' ') < 0) { 
themessage = themessage + "\n - Your Name must contain at least one space";
}

if (!document.form.iagree.checked) {
themessage = themessage + "\n - I Agree";
}

//alert if fields are empty and cancel form submit
if (themessage == "You are required to complete the following fields: ") {
return true;
}
else {
alert(themessage);
return false;
   }
}
//  End -->

