﻿function submitForm() {
    var strValid = "";

    //  Form Validation 
    if ( document.inputform.YourName.value == "" ) { strValid = strValid + "- Name" + "\n" };
    if ( document.inputform.Telephone.value == "" ) { strValid = strValid + "- Telephone" + "\n" };
    if ( document.inputform.Requirements.value == "" ) { strValid = strValid + "- Requirements" + "\n" };

    //  Submit the form if it is valid
    if ( strValid == "" ) {
        document.inputform.submit();
    } else {
        alert( "Please complete the following field(s):\n\n" + strValid );
    }
}