
function sendEmail() {
			$('submitbutton').value='Sending...';
			$('submitbutton').disabled=true;
			var url = 'ajax.php?r='+Math.random();
			new Ajax.Request(url, {
				method: 'post',
				parameters: {
					visitor_ip: $F('visitor_ip'),
					visitor_httpreferer: $F('visitor_httpreferer'),
					visitor_httpagent: $F('visitor_httpagent'),
					visitor_fullname: $F('visitor_fullname'),
					visitor_company: $F('visitor_company'),
					visitor_email: $F('visitor_email'),
					visitor_message: $F('visitor_message'),
					visitor_telephone: $F('visitor_telephone')
				},
				onSuccess:loginReturn,
				onFailure: ajaxError
			});
			function ajaxError(request) {
				$('sendStatus').update('<div class="text-error">There has been an error, please try again.</div>');
				$('submitbutton').value='Send Message';
				$('submitbutton').disabled=false;
			}
			function loginReturn(transport) {
				$('sendStatus').update("Your message has been sent, we will reply as soon as possible.<br />Thank you.");
				$('submitbutton').value='Send Message';
				$('submitbutton').disabled=false;
				$('contactForm').style.display='none';
			}
			return false;
		}
