    function validate() {
 
    var number = /^[0-9]*$/ //regular expression defining a number /^[0-9]*$/ 
        var alpha = /[0-9]/  //regular expresssion /[a-zA-Z]/ ----- /^([a-zA-Z]+)$/
        var theMessage = "Please complete the following: \n-----------------------------------\n";
    var noErrors = theMessage
 
    // make sure field is not blank
        if (document.contact.name.value=="") {
        theMessage = theMessage + "\n --> Your name";
        }
        
        // make sure field is not blank
        if (document.contact.name.value.match(alpha)){
        theMessage = theMessage + "\n --> Your name must not be numerical";
        }
        
        // validate an e-mail address
        if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.contact.email.value)){
        theMessage = theMessage + "\n --> Email address empty or not valid";
        }
        
        // make sure field is not blank
        if (document.contact.comment.value=="") {
        theMessage = theMessage + "\n --> Question / Comment or Other";
        }
        
        // make sure field is not blank
        if (document.contact.AntiSpam.value=="") {
        theMessage = theMessage + "\n --> AntiSpam code";
        }
        
        // make sure field is not blank
        if (document.contact.AntiSpam.value.search(number)==-1){
        theMessage = theMessage + "\n --> AntiSpam code must be numeric\n\n  Please check your entry, and try again!";
        }
        
         // If no errors, submit the form
    if (theMessage == noErrors) {
    return true;
 
    } else {
 
    // If errors were found, show alert message
    alert(theMessage);
    return false;
    }
    }