
function validate_form ( )
{
	valid = true;

        if ( document.getElementById("booking").name.value == "" )

        {
                alert ( "Please fill in the 'Name' box." );
                valid = false;
        }
		
        if ( document.getElementById("booking").school.value == "" )
        {
                alert ( "Please fill in the 'School' box." );
                valid = false;
        }
		
        if ( document.getElementById("booking").citystate.value == "" )
        {
                alert ( "Please fill in the 'City/State' box." );
                valid = false;
        }
		
        if ( document.getElementById("booking").programs.value == "" )
        {
                alert ( "Please fill in the 'Programs interested in' box." );
                valid = false;
        }
		
        if ( document.getElementById("booking").dates.value == "" )
        {
                alert ( "Please fill in the 'Dates interested in' box." );
                valid = false;
        }
		
        if ( document.getElementById("booking").email.value == "" )
        {
                alert ( "Please fill in the 'Email' box." );
                valid = false;
        }
		
        if ( document.getElementById("booking").phone.value == "" )
        {
                alert ( "Please fill in the 'Phone' box." );
                valid = false;
        }
		
        if ( document.getElementById("booking").valid.value.toUpperCase() !== "HMAT" )
        {
                alert ( "The Validation Code is incorrect!." );
                valid = false;
        }

        return valid;
}
