// Opens a window to show a photo
function showPhoto(strImageURL, strTitle, lngWidth, lngHeight)
{
	var subWin;
	var strURL;
	
	strURL = ""
	
	if (strImageURL != "") 
	{
	    strURL = strURL + "Photo.asp?URL=" + escape(strImageURL)
	
	    if (strTitle != "") strURL = strURL + "&Title=" + escape(strTitle);
	    /* if (lngWidth > 0) strURL = strURL + "&Width=" + lngWidth.toString();
	    if (lngHeight > 0) strURL = strURL + "&Height=" + lngHeight.toString(); */
	    
	    if (lngWidth <= 0) lngWidth = 300;
	    if (lngHeight <= 0) lngHeight = 300;
	    
	    lngWidth = lngWidth + 30;
	    lngHeight = lngHeight + 70;

	    subWin = window.open(strURL, 'ShowPhoto','WIDTH=' + lngWidth.toString() + ',HEIGHT=' + lngHeight.toString() + ',RESIZABLE=yes');
    }
	return(false);	
}
