// JavaScript Document

function VerifyBooking() {
	
	var txt = "";
	
	if (document.formular.name.value=="") {
	 txt = txt + "\n * Name";
	}
	
	var str=document.formular.telephone.value
	var filter=/^([0-9]{11})$/i 
	if (!filter.test(str)) {
	 txt = txt + "\n * Please input a valid Telephone";
	}

	var str=document.formular.email.value
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i 
	if (!filter.test(str)) {
	 txt = txt + "\n * Please input a valid Email address";
	}
	
	if (document.formular.street_p.value=="") {
	 txt = txt + "\n * Address";
	}
	
	if (txt) {
		alert ("The folowing fields are required:\n" + txt);
		return false;
	}
	
}