/*======================================================================*\
|| #################################################################### ||
|| # Aurora 1.0
|| # Property of Coding Monkeys Ltd
|| # ---------------------------------------------------------------- # ||
|| # http://www.codingmonkeys.biz
|| #################################################################### ||
\*======================================================================*/

	function SubmitNewsletter() {
		box = document.getElementById("newsletter_email");	
		if (box.value.search(/^[^@\s<&>]+@([-a-z0-9]+\.)+[a-z]{2,}$/i) == -1) {
			alert ("Your e-mail address is not valid");
			box.focus();
			return false;
		}
	}

	
	function SubmitContactForm() {

		box = document.getElementById("contact_name");	
		if (box.value.length < 3) {
			alert("You have not entered your name");
			box.focus();
			return false;
		}


		box = document.getElementById("contact_email");	
		if (box.value.length > 0 && box.value.search(/^[^@\s<&>]+@([-a-z0-9]+\.)+[a-z]{2,}$/i) == -1) {
			alert ("Your e-mail address is not valid");
			box.focus();
			return false;
		}


		box = document.getElementById("contact_phone");	
		if (box.value.search(/^[0-9+\- ]+$/i) == -1 && box.length > 0) {
			alert ("You have not entered a correct telephone number");
			box.focus();
			return false;
		}
	}
	function SubmitCallBack() {

		box = document.getElementById("callback_name");	
		if (box.value.length < 3 || box.value == 'Name') {
			alert("You have not entered your name");
			box.focus();
			return false;
		}

		box = document.getElementById("callback_phone");	
		if (box.value.search(/^[0-9+\- ]+$/i) == -1) {
			alert ("You have not entered a correct telephone number");
			box.focus();
			return false;
		}
	}
