/// "DynaPopup" Dynamic popup script (c) Steve Quinn 2002///
var newWin;
function makePopup() {
   newWin = window.open("","Popup", "width=650, height=565, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizeable=yes");
}
function writeContent(w,h,photoSrc,caption) {
	var Tw = w + 2;
	var Th = h + 2;
	var imgStr = "";
	makePopup();
	var newContent = '<Html><Head><Meta http-equiv="content-type" content="text/html;charset=iso-8859-1"><Link href="PhotoGallery.Enlargement.css" rel="stylesheet" media="screen"><Script language="JavaScript1.2" src="Rclick.js"></Script></Head><Body bgcolor="#ffffff" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0"><Table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%"><Tr height="100%"><Td align="center" valign="middle" bgcolor="#888888" width="100%" height="100%">';
	newContent += '<Table border="0" cellspacing="0" cellpadding="0" width="';
	newContent += Tw += '" height="';
	newContent += Th += '"><Tr><Td align="center" valign="middle" bgcolor="black">';
	newContent += '<Table border="0" cellspacing="0" cellpadding="0" width="';
	newContent += w;
	newContent += '" height="';
	newContent += h;
	newContent += '">';
	newContent += '<Tr><Td align="left" valign="top" background="';
	imgStr = photoSrc;
	imgStr += '"><A href="#" onClick="self.close()"><Img src="Webimages/GalleryPhotos.Spacer.gif" alt="[click to close]" border="0" width="';
	imgStr += w += '" height="';
	imgStr += h += '"></A></Td></Tr></Table>';
	newContent += imgStr += '</Td></Tr></Table><Font size="2">';
	newContent += caption += '<Br><Br>~ <A href="#" onClick="self.close()">click here to close this window</A> ~</Font></Td></Tr></Table></Body></Html>';
        newWin.document.write(newContent);
	newWin.document.close();
	newWin.focus();
}