//POP UP PAGE 'javascript:gallerypop("XXX.htm")'
function gallerypop(imagename) {
popwin = this.open(imagename, "gallery", "width=450,height=400,left = 0,top = 0, toolbar=no,menubar=no,location=no,scrollbars=yes,status=no,resize=no,noresize");
}

function up_reservations() {
	window.open('up_reservations.php', 'up_reservations', 'width=500,height=700,resizable=no,directories=no,location=no,menubar=no,scrollbars=yes,status=no');
}

function nye() {
	window.open('nye.html', 'newyear', 'width=520,height=420,resizable=no,directories=no,location=no,menubar=no,scrollbars=yes,status=no');
}

function nye() {
	window.open('holiday_discount.html', 'newyear', 'width=350,height=280,resizable=no,directories=no,location=no,menubar=no,scrollbars=yes,status=no');
}

function gift() {
	window.open('up_giftcertificate.php', 'newyear', 'width=380,height=475,resizable=no,directories=no,location=no,menubar=no,scrollbars=yes,status=no');
}

function shuck() {
	window.open('popup_shuck.html', 'shuck', 'width=400,height=520,resizable=no,directories=no,location=no,menubar=no,scrollbars=yes,status=no');
}

function mother() {
	window.open('popup_mothersday.html', 'mother', 'width=593,height=359,resizable=no,directories=no,location=no,menubar=no,scrollbars=no,status=no');
}

function vip() {
	window.open('http://www.dine.to/mycp/external_surveys/marlowe/outside_survey_page.html', 'mother', 'width=500,height=475,resizable=no,directories=no,location=no,menubar=no,scrollbars=no,status=no');
}

function video() {
	window.open('up_video.php', 'video', 'width=380,height=305,resizable=no,directories=no,location=no,menubar=no,scrollbars=yes,status=no');
}
function video2() {
	window.open('events/up_video.php', 'video', 'width=380,height=305,resizable=no,directories=no,location=no,menubar=no,scrollbars=yes,status=no');
}


//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.Guests.value == "") {correct = false; alert("Please enter the number of People \n you would like to Reserve for !")
			document.Form1.Guests.focus()
			return false}
}
function DatePopUp(oForm)
{
	var sPage = "datepicker_2.php?PickedDate=" + oForm.value+ "&FormName=" + oForm.name;
	var x=350;
	var y=250;
	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@domain.com'
 path += ''
 path += ''
 location.href = path;
}
/*
function Shadowbox = function(content, player, title){
			Shadowbox.open({
				player:     'iframe',
				title:      'New Years Eve',
				content:	'nye.php',
				height:		'500px',
				width:		'400px'
			});
		};
*/