var newWindow
function showCFL(image, alttag, caption, height, width, title1, title2, title3, title4, desc1, desc2, desc3, desc4) {
	var size
	size="scrollbars=yes,resizable=yes"
 if (height > (screen.height - 10)) { 
		height = screen.height - 30;
      size = "scrollbars=yes,resizable=yes";}
 if (width > (screen.width - 10)) {
		width = screen.width - 10;
      size = "scrollbars=yes,resizable=yes";}
	size = size + ",height=" + height + ",width=" + width
	if (newWindow && !newWindow.closed) 
		newWindow.close();
	if (!newWindow || newWindow.closed) {
		newWindow = window.open("", "", size)
		if (!newWindow.opener) {
			newWindow.opener = window
		}
	} else {
		//Window is already open; bring to front
		newWindow.focus()
	}
	//Window Content
	var newContent = "<HTML><HEAD><TITLE>Photo Gallery</TITLE></HEAD>"
	newContent += "<BODY bgcolor=#ffffff topMargin=0 leftMargin=0 marginWidth=0 marginHeight=0>"
	newContent += "<img  width=400 height=280  border=0 src=" + image + " alt='" + alttag + "'>"
	newContent += "<table border=0 cellpadding=0 cellspacing=0 width=100%>"
	newContent += "<tr>"
	newContent += "<td colspan=2 align=center bgColor=#ffffff><font face='Arial, Helvetica, sans-serif' size=2 color=#000000><b>" + caption + "</b></font></p></td>"
	newContent += "</tr>"
	newContent += "<tr>"
	newContent += "<td width=30% valign=top align=right bgColor=#ffffff><font face='Arial, Helvetica, sans-serif' size=2 color=#000000><b>" + title1 + "</b></font></p></td>"
	newContent += "<td width=70% align=left bgColor=#ffffff><font face='Arial, Helvetica, sans-serif' size=2 color=#000000>" + desc1 + "</font></p></td>"
	newContent += "</tr>"
	newContent += "<tr>"
	newContent += "<td width=30% valign=top align=right bgColor=#ffffff><font face='Arial, Helvetica, sans-serif' size=2 color=#000000><b>" + title2 + "</b></font></p></td>"
	newContent += "<td width=70% align=left bgColor=#ffffff><font face='Arial, Helvetica, sans-serif' size=2 color=#000000>" + desc2 + "</font></p></td>"
	newContent += "</tr>"
	newContent += "<tr>"
	newContent += "<td width=30% valign=top align=right bgColor=#ffffff><font face='Arial, Helvetica, sans-serif' size=2 color=#000000><b>" + title3 + "</b></font></p></td>"
	newContent += "<td width=70% align=left bgColor=#ffffff><font face='Arial, Helvetica, sans-serif' size=2 color=#000000>" + desc3 + "</font></p></td>"
	newContent += "</tr>"
	newContent += "<tr>"
	newContent += "<td width=30% valign=top align=right bgColor=#ffffff><font face='Arial, Helvetica, sans-serif' size=2 color=#000000><b>" + title4 + "</b></font></p></td>"
	newContent += "<td width=70% align=left bgColor=#ffffff><font face='Arial, Helvetica, sans-serif' size=2 color=#000000>" + desc4 + "</font></p></td>"
	newContent += "</tr>"
	newContent += "</table>"
	newContent += "</BODY></HTML>"
	//Write HTML to new window
	newWindow.document.write(newContent)
	newWindow.document.close() //close layout stream
}
