// JavaScript Document


	var codeA = '64';
	var codeB = '87';
	var validEmail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	
	function submitForm() {
		if(document.theForm.realname.value.length < 1) {
			alert("Please enter your name.");
			document.theForm.realname.focus();
			return;
		} else if(!validEmail.test(document.theForm.email.value)) {
			alert("Please enter a valid e-mail address.");
			document.theForm.email.focus();
			return;
		} else if(document.theForm.phone.value.length < 4) {
			alert("Please enter your phone number.");
			document.theForm.phone.focus();
			return;
		}
		document.theForm.code.value=codeA+codeB;
		document.theForm.action = "/L10Apps/L10FmX.php";
		document.theForm.submit();
	}
