function validateContact(d) {
	var valid = true;
	var email_regexp = /^(([A-Za-z0-9]+_+)|([A-Za-z0-9]+\-+)|([A-Za-z0-9]+\.+)|([A-Za-z0-9]+\++))*[A-Za-z0-9]+@((\w+\-+)|(\w+\.))*\w{1,63}\.[a-zA-Z]{2,6}$/;
	
	if (d.contact_name.value.length < 2) {
		alert('Please enter your name.');
		d.contact_name.focus();
		d.contact_name.select();
		valid = false;	
	} else if (!email_regexp.test(d.contact_email.value)) {
		alert('Please enter a valid e-mail address.');
		d.contact_email.focus();
		d.contact_email.select();
		valid = false;
	} else if (d.contact_service.value == '') {
		alert("Please specify the service that you are interested in.\nIf you are unsure of the service you require, or if the service you require is not listed, please select the 'Other / Unsure' option.");
		d.contact_service.focus();
		valid = false;
	} else if (d.contact_message.value.length < 2) {
		alert('Please enter a message.');
		d.contact_message.focus();
		d.contact_message.select();
		valid = false;
	}
	if (valid) d.submit();
	
}