function openpicture(filename,widthx,heightx,alttext)
{
var title=filename.slice(0,-4);
var newWin = window.open("",title,"width="+widthx+",height="+heightx+",alwaysRaised=1,resizable=0");
newWin.document.open();
newWin.document.write("<html>\n<head>\n<title>"+filename+"</title>\n");
//newWin.document.write("<link rel='stylesheet' type='text/css' href='../style.css'>\n");
newWin.document.write("</head>\n");
newWin.document.write("<body style='border:0;' topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0");
newWin.document.write(">");
newWin.document.write("<a href=javascript:onclick=window.close() onhover=window.status>");
newWin.document.write("<img src='"+filename+"' ");
newWin.document.write("alt='Click to close photo' style=");
newWin.document.write("'position: absolute; left:0; top:0; height: 100%; width: 100%;'>\n</a>\n");
newWin.document.write("</body>\n</html>");
newWin.document.close
}

