var bgWin

function bigWin(imgsrc,w,h){

/*

	Notes:

*/

var errTxt = ""

	if (w==undefined || w==0) errTxt += "Please Define Image Width\n" 

	if (h==undefined || h==0) errTxt += "Please Define Image Height\n"

	if (imgsrc==undefined) errTxt += "Please supply an Image name\n"

	if (errTxt!=""){

		alert(errTxt)

		return

	}

	w=w+30

	h = h+45

var	txt = "scrollbars,resizable,width="+w+",height="+h

	txt = "width="+w+",height="+h

	txt += ",left=0,top=0,screenx=0,screeny=0"



	if (bgWin && !bgWin.closed) bgWin.close()



	bgWin = open("", "bgWin", txt)

	txt = "<html><head><title>Enlarged Photo</title></head>"

	txt += '<body bgcolor="FFFFDD">'

	txt+="<div align=center>"

	txt += "<img src='" + imgsrc + "'><br clear=all>"

	txt += "<a href='javascript:self.close()'>Close Window</a></div>"

	txt += "</body></html>"



	bgWin.document.write(txt)

	bgWin.document.close()

}

