
  function validate_form ( )
{
    valid = true;
	

    if ( document.contact_form.contact_name.value == "" )
    {
        alert ( "Submission Error!\n\nPlease enter a contact name." );
		contact_form.contact_name.focus();
        valid = false;
	}
  
 
     else if ( document.contact_form.telephone.value == "" )
    {
        alert ( "Submission Error!\n\nPlease enter a contact telephone number." );
		contact_form.contact_name.focus();
        valid = false;
	}
	
	
	else if ( document.contact_form.message.value == "" )
    {
        alert ( "Submission Error!\n\nPlease type a question or enquiry in the field provided." );
		contact_form.message.focus();
        valid = false;
	}
	
	
	
		else if (( document.contact_form.type[0].checked == false  ) && ( document.contact_form.type[1].checked == false  ) && ( document.contact_form.type[2].checked == false  ))
    {
		alert ( "Submission Error!\n\nPlease select an enquiry type from the 3 options available." );
        valid = false;
	}
	
		
	
		
		
			else if (( document.contact_form.callback[0].checked == false  ) && ( document.contact_form.callback[1].checked == false  ))
    {
		alert ( "Submission Error!\n\nPlease select whether you require a callback or not." );
        valid = false;
	}
		
		
    return valid;
}
