
function popWin(imgName, winWidth, winHeight, winName, bScrollbar)
{ 

 // Define Window width and height right here so that it can easily be modified. 
 if (!winWidth)
 	var winWidth = 450; 
 
 if (!winHeight)
	 var winHeight = 175; 
	 
 if (!winName) 
 	var winName = "PopUp";

 if (!bScrollbar)
 	var bScrollbar = true; 
 
 // Midx and Midy will be used to center the window.
 var midx = (screen.width/2) - (winWidth/2); 
 var midy = (screen.height/2) - (winHeight/2)
 
 // Set up the Propeties String
var props = "height=" + winHeight + ",width=" + winWidth + ",screenX=" + midx + ",screenY=" + midy + ",top=" + midy + ",left=" + midx + ",scrollbars=" + bScrollbar; 
  
 window.open(imgName, winName, props);
 
} 

function printMenu(name) { 
	var printPage = "http://www.bridgewatermanor.com/printMenu.asp?Menu=" + name; 
	popWin(printPage,645,500,"PrintMenu","yes")
} 

function showRecipe (htmlFile) { 
	popWin(htmlFile,645,500,"PrintMenu","yes"); 
} 
function GiftCertificate() { 
	popWin('Gift.html',645,500,"Gift","yes"); 
} 


function newWindow(url) { 
	window.open(url,"new","toolbar,scrollbars=auto,resizable=yes,status=yes,menubar=yes,location=yes,directories=yes"); 
} 