// JS function validating contact form
function ValidateContactForm() {

		var valid = true;						
    var msg = "";

    if ( document.ContactForm.FF_Name.value == "" )
    {
        msg = msg + "Name" + "\n";
    }
    if ( document.ContactForm.FF_Phone.value == "" )
    {
        msg = msg + "Phone number" + "\n";
    }
    if ( document.ContactForm.FF_Email.value == "" )
    {
        msg = msg + "Email address" + "\n";
    }
    if ( document.ContactForm.FF_Event.value == "" )
    {
        msg = msg + "Occasion" + "\n";
    }
    if ( document.ContactForm.FF_Date.value == "" )
    {
        msg = msg + "Date" + "\n";
    }
    if ( document.ContactForm.FF_Time.value == "" )
    {
        msg = msg + "Time" + "\n";
    }
    if ( document.ContactForm.FF_Duration.value == "" )
    {
        msg = msg + "Duration" + "\n";
    }
    if ( document.ContactForm.FF_Location.value == "" )
    {
        msg = msg + "Location" + "\n";
    }
    if ( document.ContactForm.FF_People.value == "" )
    {
        msg = msg + "Amount of people" + "\n";
    }
    if ( document.ContactForm.FF_Reference.value == "" )
    {
        msg = msg + "How did you hear about us?" + "\n";
    }
    
    if ( msg != "")
    {
        alert ( "Required fields missing:\n\n" + msg  );
        valid = false;
    }

    return valid;
    
}
