//POP UP PAGE 'javascript:gallerypop("XXX.htm")'
function gallerypop(imagename) {
popwin = this.open(imagename, "gallery", "width=600,height=470,left = 0,top = 0, toolbar=no,menubar=no,location=no,scrollbars=yes,status=no,resize=no,noresize");
}
//RESERVATION FORM
function checkData()
{
	var correct = true
	
	if (document.Form1.FirstName.value == "") {correct = false; alert("Please enter your First Name!")
			document.Form1.FirstName.focus()
			return false}
	if (document.Form1.LastName.value == "") {correct = false; alert("Please enter your Last Name!")
			document.Form1.LastName.focus()
			return false}  
	if (document.Form1.AreaCode.value == "") {correct = false; alert("Please enter your Area Code!")
			document.Form1.AreaCode.focus()
			return false}
	if (document.Form1.PhoneNum.value == "") {correct = false; alert("Please enter your Phone Number!")
			document.Form1.PhoneNum.focus()
			return false}
				vale=document.Form1.Email.value.indexOf("@" && ".")
	if (vale==-1){  
			alert("You must enter a valid e-mail");
			document.Form1.Email.select();
			return false}
	if (document.Form1.People.value == "") {correct = false; alert("Please enter the number of People \n you would like to Reserve for !")
			document.Form1.People.focus()
			return false}
}
function DatePopUp(oForm)
{
	var sPage = "datepicker.php?PickedDate=" + oForm.value+ "&FormName=" + oForm.name;
	var x=300;
	var y=180;
	var x_offset = document.width/2;
	var y_offset = document.height/2;
	
	var windetails = "width=" + x + ",height=" + y + ",toolbar=0,scrollbars=0,resizable=1,screenX=" + x_offset + ",screenY=" + y_offset;  
	win = window.open(sPage,"DatePicker", windetails);
}
//EMAIL SPAM javascript:hideml();
function hideml(path1, path2, path3)
{
 path = 'mailto:info@giorgiosgrill.com'
 path += ''
 path += ''
 location.href = path;
}