
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 = 560; 
 
 if (!winHeight)
	 var winHeight = 560; 
	 
 if (!winName) 
 	var winName = "Menus";

 if (!bScrollbar)
 	var bScrollbar = "yes"; 
 
 // 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 moreInfo(ID) { 
	infoLink = "/bridgewater/ShowEvent.asp?EventID=" + ID; 
	popWin(infoLink,495,560,'WinterWedding','yes');
} 


function popGallery(Gallery) { 

	lnk = "Galleries/pop_gallery.asp?Gallery="+Gallery;
 
	var props = "scrollbars=no,resizable=1,height=500,width=600"; 
  	
	myWin = window.open(lnk, "Image_Gallery", props);
	window.myWin.focus();
 
} 