// JavaScript Document
function show_photo( pFileName, pTitle, Width, Height) {

// specify window parameters
var winl = (screen.width - Width) / 2;
var wint = (screen.height - Height) / 2;

  photoWin = window.open( "", "photo", "width="+ Width +",height="+ Height +",top="+wint+",left="+winl+",status=no,scrollbars=no,resizable=no,screenX=40,screenY=40");
  
// wrote content to window
  photoWin.document.write('<html><head><title>' + pTitle + '</title></head>'); 
  photoWin.document.write('<BODY BGCOLOR=black TEXT=#FFFFCC LINK=#33CCFF VLINK=#FF6666 topmargin=0 leftmargin=0>');
  photoWin.document.write('<img src="' + pFileName + '">');
  photoWin.document.write('</font></body></html>');
  photoWin.document.close(); 

// If we are on NetScape, we can bring the window to the front
if (navigator.appName.substring(0,8) == "Netscape") photoWin.focus();
}

// te gebruiken code <a OnClick="javascript:show_photo('beeld/overzicht_alarm.gif','Alarm','685','550');" style="cursor: hand;"></a> //
