//FLASH
function buttons() {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="740" height="35"><param name="movie" value="flash/nav_bar.swf"><param name="quality" value="high"><embed src="flash/nav_bar.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="740" height="35"></embed></object>')
}

//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.Name.value == "") {correct = false; alert("Please enter your Full Name!")
			document.Form1.Name.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
	}
	return(correct);
}

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@kokkinolounge.com'
 path += ''
 path += ''
 location.href = path;
}

