	function validate_form(){
		if($.trim(jQuery('#contact_name').val()) == ''){
			show_dialog('Please enter your name','Something is not quite right');

		}else if(!validate_email(jQuery('#contact_email').val())){
			show_dialog('Please enter a valid Email Address','Something is not quite right');

		}else if($.trim(jQuery('#contact_phone').val()) == ''){
			show_dialog('Please enter your phone #','Something is not quite right');

		}else{
			$('#sendbutton').hide();
			$('#contact input').attr('readonly','readonly');
			$('#contact textarea').attr('readonly','readonly');
			$.ajax({
			   type: "get",
			   url: "script/ajax_send_email.php?contact_name="+encodeURI($('#contact_name').val())+
			   "&contact_email="+encodeURI($('#contact_email').val())+
			   "&contact_phone="+encodeURI($('#contact_phone').val())+
			   "&contact_message="+encodeURI($('#contact_message').val())+ '&ms=' + (new Date().getTime()),
			   dataType: "xml",
			   error: function(msg){
				   show_dialog('error:'+msg.status+' : '+msg.statusText+' : '+msg.responseText,'Communications Error');
					$('#sendbutton').show();
				},
			   success: function(xmlDocument){
					show_dialog('Thank you!<br />Your message has been sent.',"Message Sent");
			   }
		   }); /* $.ajax */
			
		}
	
	}
