function openwindow(Name,X,Y)
{
    if (typeof mywindow != 'undefined') {
    mywindow.close();
    };
        mywindow=window.open(Name,"mywindow","menubar=0,resizable=0,width="+X+",height="+Y);
};

var debug=0;
var mywindow;
var offsetX;
var offsetY;

function openwindowA(Image,Titel,Ximg,Yimg,X,Y)
{
    mywindow=window.open("","mywindow","menubar=0,resizable=0,width="+X+",height="+Y);
    /* mywindow.document.write( "<html> <head> <meta http-equiv='imagetoolbar' content='no'> <link rel='stylesheet' type='text/css' href='../css/layout_2-1-3.css'></head> <body><center><a href='javascript:self.close();'><img alt='Terug...' title='Terug...' target=_top border=1 src="+Image+" height="+Yimg+" width="+Ximg+" ></a><br><p> <i>"+Titel+"</i></center></body></html>");
	*/
    mywindow.document.write( "<html> <head> <meta http-equiv='imagetoolbar' content='no'> <link rel='stylesheet' type='text/css' href='../css/layout_2-1-3.css'></head>");

    /* mywindow.document.write( "<body style='background: rgb(236, 162, 113);'><div id='popup'><center><a href='javascript:self.close();'><img alt='Terug...' title='Terug...' target=_top border=1 src="+Image+" height="+Yimg+" width="+Ximg+" ></a><br><p> <i>"+Titel+"</i></center></div></body></html>"); */

    mywindow.document.write( "<body style='background: rgb(236, 162, 113);'><div id='popup'><center><a href='javascript:self.close();'><img alt='Terug...' title='Terug...' target=_top border=1 src="+Image+" height="+Yimg+" width="+Ximg+" ></a><br><p> <i>"+Titel+"</i></center></div>");


  // Netscape  
  if (navigator.appName.indexOf("Netscape") != -1) {
    offsetX=0;
    offsetY=15;
    if( debug >0 ) mywindow.document.write("Netscape");
  }

  // Opera 
  else if (navigator.appName.indexOf("Opera") != -1) {
    offsetX=12;
    offsetY=31;
    if( debug >0 ) mywindow.document.write("Opera");
  }

  // Microsoft 
  else if (navigator.appName.indexOf("Microsoft") != -1) {
    offsetX=12;
    offsetY=31;
    if( debug >0 ) mywindow.document.write("Internet Explorer");
  }

  // Assume a frig factor for any other browsers
  else {
    offsetX=5;
    offsetY=5;
    if( debug >0 ) mywindow.document.write("Other Browser");
  }

    mywindow.document.write("</body></html>");
    mywindow.document.close();

    mywindow.resizeTo(X+offsetX,Y+offsetY);
    mywindow.focus();
};

