function submitForm()
{
    var formlist = "";
    var missingreq = false;

    var frm = document.forms["SIGNUP"];
    
    if (frm.name.value == "")
        missingreq = true;
    if (frm.email.value == "")
        missingreq = true;

    // validate email is of correct format
    var emailregex = /^[\w\_\-\.]+@[\w\_\-\.]+\.\w+$/;
    var emailresult = frm.email.value.match(emailregex);
  
    if (emailresult == null)
    {
        alert("The email address '" + frm.email.value + "' is not in a correct format.\n Please try again");
        return false;
    }

    if (missingreq)
    {
        msg = "The form was not submitted because required fields were not filled.\n";
        msg += "         Please fill in all fields and re-submit.\n";
		
        alert(msg);
        return false;
    }
    
    return true;
}
