	function sendform() { 
		var params = {
			'firstname':$('#firstname').val()
			,'surname':$('#surname').val()
			,'mail':$('#mail').val()
			,'confirmmail':$('#confirmmail').val()
			,'homephone':$('#homephone').val()
			,'mobile':$('#mobile').val()
			,'suburb':$('#suburb').val()
			,'postcode':$('#postcode').val()
			,'month':$('#month').val()
			,'dob':$('#dob').val()
			,'referredby':$('#referredby').val()
			,'hearaboutus':$('#hearaboutus').val()
			,'dest':$('#dest').val()
			,'treatments[]': $(':checked').map(function(i,n) { return $(n).val(); }).get()
			,'other':$('#other').val()
			,'questions':$('#questions').val()};
			
		$.post('processenquiry.php', params,
			function(d) {
				switch (d) {
					case 's0': window.location = 'http://www.surgerygetaways.com/thank-you.html'; break;
					case 'fl2': $('.errmsg').html('Invalid email address'); $('.errmsg').show('slow'); break;
					case 'fl3': $('.errmsg').html('There was a problem sending your enquiry. Please try again shortly'); $('.errmsg').show('slow'); break;
					case 'fl4': $('.errmsg').html('Email addresses do not match'); $('.errmsg').show('slow'); break;
				}
			}
		); 
	}
