/*======================================================================*\
|| #################################################################### ||
|| # Aurora 1.0
|| # Property of Coding Monkeys Ltd
|| # ---------------------------------------------------------------- # ||
|| # http://www.codingmonkeys.co.uk
|| #################################################################### ||
\*======================================================================*/
	function SubmitNewsletter() {
		box = document.getElementById("newsletter_email");	
		if (box.value.search(/^[^@\s<&>]+@([-a-z0-9]+\.)+[a-z]{2,}$/i) == -1) {
			alert ("Su direcci&oacute;n de correo no es v&aacute;lida");
			box.focus();
			return false;
		}
		
		if (!document.getElementById('acepto').checked) {
			alert ("Acepte la pol&iacute;tica de protecci&oacute;n de datos");
			document.getElementById('acepto').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.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_phonenumber");	
		if (box.value.search(/^[0-9+\- ]+$/i) == -1) {
			alert ("You have not entered a correct telephone number");
			box.focus();
			return false;
		}

		document.getElementById("submit_contactform").value = 'Thank You';
		document.getElementById("submit_contactform").disabled = true;
		
	}

