
function imgwin(src,w,h,name){
var win=window.open("",name,"width="+w+",height="+h+",resizable=0,scrollbars=0,top=0,left=0'")
win.document.open()
win.document.writeln("<html><head><title>Closeup</title></head>")
win.document.writeln("<body onBlur=closeWin() bgcolor=#ffffff leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>")
win.document.writeln("<img src='"+src+"'></body></html>")
win.document.writeln("<script language=javascript>function closeWin(){window.close();}</script>")
win.document.writeln("</body></html>")
win.document.close()
win.focus();
if(navigator.userAgent.indexOf("Mac")!=-1){
win.resizeTo(w,h)
}
}

function openWin(url,name,features) {
	var newWin=window.open(url,name,features);
	if  (newWin.opener == null)
		{newWin.opener = window;}
	else {newWin.focus();}
}

