function Popup( p_FileNaam, p_Hoogte, p_Breedte, p_LB, p_RB, p_LO, p_RO, p_KleurAchtergrond, p_KleurTekst )
{
  // Bepaal de afmetingen van het scherm.
  IE4 = ( document.all );
  NS4 = ( document.layers );
  NS6 = ( !document.all && document.getElementById );
  if( NS6 || NS4 )
  {
    SBreedte = innerWidth;
    SHoogte = innerHeight;
  }
  if( IE4 ) 
  {
    SBreedte = document.body.clientWidth;
    SHoogte = document.body.clientHeight;
  }
  X = ( SBreedte - p_Breedte ) / 2;
  Y = ( SHoogte - p_Hoogte ) / 2;

  // Open het scherm.
  Eigenschappen = "LEFT=" + X + ", TOP=" + Y + ", SCREENX=" + X + ", SCREENY=" + Y + ", WIDTH=" + p_Breedte + ", HEIGHT=" + p_Hoogte + ", TITLEBAR=no, MENUBAR=no, TOOLBAR=no, LOCATION=no, SCROLLBARS=no, STATUS=no, RESIZEABLE=no";
  Scherm = window.open( "", "", Eigenschappen );
  Scherm.focus();
  Scherm.document.open();
  with( Scherm )
  {
    document.write( "<HTML>" );
    document.write( "<HEAD>" );

    document.write( "<STYLE TYPE='text/css'>" );
    document.write( "<!--" );

    document.write( "body { margin: 0px; color: #" + p_KleurTekst + "; background-color: #" + p_KleurAchtergrond + "; }" );
    document.write( "body, td { font-family: verdana, sans-serif; font-size: 11px; }" );
    document.write( "img.foto { border-width: 1px; border-style: solid; border-color: #" + p_KleurTekst + ";}" );
    document.write( "-->" );
    document.write( "</STYLE>" );

    document.write( '<SCR' + 'IPT TYPE="text/javascr' + 'ipt" LANGUAGE="JavaScr' + 'ipt">' ); // Voor Mozilla.
    document.write( "function click() { window.close(); } " );
    document.write( "document.onmousedown=click " );
    document.write( '</SCR' + 'IPT>' ); // Mozilla.
    document.write( "<TITLE>Fotografie (klik op de foto om het scherm te sluiten)</TITLE>" );
    document.write( "</HEAD>" );
    document.write( "<" + "BODY ONBLUR='window.close()';" );
    document.write( "MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0>" );

    document.write( "<CENTER>" );
    document.write( "<TABLE HEIGHT=100% BORDER=0 CELLPADDING=2 CELLSPACING=0>" );
    document.write( "<TR HEIGHT=50%>" );
    document.write( "<TD COLSPAN=4></TD>" );
    document.write( "</TR>" );
    document.write( "<TR>" );
    document.write( "<TD>&nbsp;</TD>" );
    document.write( "<TD>" + p_LB + "</TD>" );
    document.write( "<TD ALIGN='right'>" + p_RB + "</TD>" );
    document.write( "<TD>&nbsp;</TD>" );
    document.write( "</TR>" );
    document.write( "<TR>" );
    document.write( "<TD WIDTH=50%></TD>" );
    document.write( "<TD COLSPAN=2><IMG SRC='" + p_FileNaam + "' CLASS='foto'></TD>" );
    document.write( "<TD WIDTH=50%></TD>" );
    document.write( "</TR>" );
    document.write( "<TR>" );
    document.write( "<TD>&nbsp;</TD>" );
    document.write( "<TD>" + p_LO + "</TD>" );
    document.write( "<TD ALIGN='right'>" + p_RO + "</TD>" );
    document.write( "<TD>&nbsp;</TD>" );
    document.write( "</TR>" );
    document.write( "<TR HEIGHT=50%>" );
    document.write( "<TD COLSPAN=4></TD>" );
    document.write( "</TR>" );
    document.write( "</TABLE>" );
    document.write( "</CENTER>" );

    document.write( "</BODY>" );
    document.write( "</HTML>" );

    document.close();
  }
}