var newWindow
function makeNewWindow(PicFile,Font) {

var FontDir
if (Font==1 || !Font) {
	FontDir = "msss1"
	}
if (Font==2) {
	FontDir = "verdana1"
	}
if (Font==3) {
	FontDir = "arial2"
	}



// assemble content for new window
var newContent = "<HTML><HEAD><TITLE>Perma-Fix Environmental Services</TITLE></HEAD>\n"
newContent += "<BODY BGCOLOR=\"#ffffff\"><CENTER>\n"
newContent += "<TABLE CELLPADDING=\"0\" CELLSPACING=\"0\" BORDER=\"0\">\n"
 
newContent += "<TR><TD align=center><FONT FACE=\"arial\" SIZE=\"2\" COLOR=\"#000000\">\n"
newContent += "<B>Send Mail To </B>\n"

newContent += "<IMG SRC=\"../../emailaddys/" +FontDir+ "/" +PicFile+ "\.gif\" align=bottom><P>\n"
newContent += "</FONT><FONT FACE=\"ms sans serif\" SIZE=\"1\" COLOR=\"#000000\">Please open your usual email software (Outlook, Netscape, AOL, etc.) and manually type in the address:<P>\n"
newContent += "<IMG SRC=\"../../emailaddys/" +FontDir+ "/" +PicFile+ ".gif\"><P>\n"
newContent += "This is an attempt to reduce spam; we apologize for the inconvenience of not having clickable links. <P><FORM><INPUT TYPE=\"button\" VALUE=\"Close This Window\" onClick=\'self.close()\'></FORM></TD></TR></TABLE></CENTER>\n"
newContent += "</BODY></HTML>"

	// window's already open; CLOSE it (need to redraw with new dimensions)
	if (!(!newWindow || newWindow.closed)) {
		newWindow.close()
	}

	newWindow = window.open("", "", "status,height=250,width=400,resizable,alwaysRaised,screenX=500,screenY=5")
	if (!newWindow.opener) {
		newWindow.opener = window
	}

	// write HTML to new window document
	newWindow.document.write(newContent)
	newWindow.document.close() // close layout stream
}
