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");
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
//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_2.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);
}