function openPictureWindow(imageName,alt) {
  newWindow = window.open("","newWindow","scrollbars=no");
  newWindow.document.open();
  newWindow.document.write('<html><head>');
  newWindow.document.write('<scr' + 'ipt language="javascript">\n');
  newWindow.document.write('var NS = (navigator.appName=="Netscape")?true:false;\n');
  newWindow.document.write('function FitPic(){iWidth = (NS)?window.innerWidth:document.body.clientWidth; iHeight = (NS)?window.innerHeight:document.body.clientHeight; iWidth = document.images[0].width - iWidth; iHeight = document.images[0].height - iHeight; window.resizeBy(iWidth, iHeight); self.focus(); };')
  newWindow.document.write('</scr' + 'ipt>');
  newWindow.document.write('<title>'+alt+'</title></head><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onLoad="FitPic()" onBlur="self.close()">'); 
  newWindow.document.write('<img src=\"'+imageName+'\" alt=\"'+alt+'\" name=\"imgz\">');
  newWindow.document.write('</body></html>');
  newWindow.document.close();
  newWindow.focus();
}

function popup(src, w, h, unique, scrollbars) {
	if (w == null) w = 450;
	if (h == null) h = 550;
	
	if (!scrollbars)
		scrollbars = 'no';
	else
		scrollbars = 'yes';
	
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	
	var wname = (unique) ? 'myPopup' : '';
	window.open(src, wname, 'scrollbars='+ scrollbars +',width='+w+',height='+h+', top='+ wint +',left='+ winl);
}