function validate_form ( )
{
	valid = true;

        if ( document.contact_form.address.value == "" )
        {
                alert ( "Please fill in the 'Address' box." );
                valid = false;
        }

        if ( document.contact_form.postcode.value == "" )
        {
                alert ( "Please fill in the 'Postcode' box." );
                valid = false;
        }

        if ( ( document.contact_form.Terms[0].checked == false ) && ( document.contact_form.Terms[1].checked == false ) )
        {
                alert ( "You must agree to our Terms & Conditions" );
                valid = false;
        }

        if ( ( document.contact_form.requirephotos[0].checked == false ) && ( document.contact_form.requirephotos[1].checked == false ) )
        {
                alert ( "Please choose whether you want photos taken" );
                valid = false;
        }

        if ( ( document.contact_form.floorplan[0].checked == false ) && ( document.contact_form.floorplan[1].checked == false ) )
        {
                alert ( "Please choose whether you want a floorplan?" );
                valid = false;
        }

        if ( document.contact_form.bedrooms.value == "" )
        {
                alert ( "Please fill in the 'Number of Bedrooms' box." );
                valid = false;
        }
        return valid;
}
