var GalleryPageImage;
function ShowGalleryPage( gpURL, gpFeatures, gpImgLoc, gpCaption, gpDesc, gpCredit, gpCreditURL, gpAdditionalHeight, gpWidth, gpHeight, extra1, extra2, extra3)
{
//var features = new Array( "menubar,status", "status")
var features = new Array(	"menubar=no,status=yes,scrollbars=yes,toolbar=no,location=no,directories=no,resizable=yes", 
								"menubar=no,status=yes,scrollbars=no,toolbar=no,location=no,directories=no,resizable=no")
var s = ""

	s = features[gpFeatures] + ",width=" + gpWidth + ",height=" + gpHeight
	
//	if( GalleryPageImage == null || GalleryPageImage.closed)
//		{
		GalleryPageImage = window.open("", "GalleryPageImage", s)	
//		}
	document.form1.imgloc.value = gpImgLoc
	document.form1.imgcaption.value = gpCaption
	document.form1.imgcredit.value = gpCredit
	document.form1.imgcrediturl.value = gpCreditURL
	document.form1.imgwidth.value = gpWidth
	document.form1.imgheight.value = gpHeight
        document.form1.imgadditionalheight.value = gpAdditionalHeight
        document.form1.imgdesc.value = gpDesc
	document.form1.action = gpURL
	document.form1.submit()
}

document.write( "<form action name='form1' method='post' target='GalleryPageImage' align='center'>");
document.write( "<input type='hidden' name='imgcaption' value>");
document.write( "<input type='hidden' name='imgcredit' value>");
document.write( "<input type='hidden' name='imgcrediturl' value>");
document.write( "<input type='hidden' name='imgloc' value>");
document.write( "<input type='hidden' name='imgwidth' value>");
document.write( "<input type='hidden' name='imgheight' value>");
document.write( "<input type='hidden' name='imgadditionalheight' value>");
document.write( "<input type='hidden' name='imgdesc' value>");
document.write( "</form>");
