function htmlpopup( page, width, height, top, left ) { 
        var xs          = screen.width;
        var ys          = screen.height;
        var xi          = width ;
        var yi          = height ;
        var y_org       = yi ;
        var x_org       = xi ;
        if (y_org > ys || x_org > xs)
        {
         if (x_org/xs > y_org/ys) 
         {
           xi=xs  ; yi=(y_org*xs/x_org)
          }
         else
         {
          yi=ys ; xi=(x_org*ys/y_org) 
          }                         
        }
        xi              = xi*.95 ;  yi              = yi*.95 
	var yes		= 1; 
	var no		= 0; 
	var menubar     = no;  // The File, Edit, View Menus 
	var scrollbars  = yes; // Horizontal and vertical scrollbars 
	var locationbar = no;  // The location box with the site URL 
	var directories = no;  // the "What's New", "What Cool" links 
	var resizable   = no;  // Can the window be resized? 
	var statusbar   = no;  // Status bar (with "Document: Done") 
	var toolbar     = no;  // Back, Forward, Home, Stop toolbar 
 
	features = "" + 
		"width=" + xi + "," + 
		"height=" + yi + "," + 
		"top=" + top + "," + 
		"left=" + left + ""; 
	features += "" + 
		(menubar ? ",menubars" : "") + 
		(scrollbars ? ",scrollbars" : "") + 
		(locationbar ? ",location" : "") + 
		(directories ? ",directories" : "") + 
		(resizable ? ",resizable" : "") + 
		(statusbar ? ",status" : "") + 
		(toolbar ? ",toolbar" : ""); 
 	window.open( page, 'fullPopup', features ); 
} 

function imgpopup( page, width, height, top, left ) { 
        var xs          = screen.width;
        var ys          = screen.height;
        var xi          = width ;
        var yi          = height ;
        var y_org       = yi ;
        var x_org       = xi ;
        if (y_org > ys || x_org > xs)
        {
         if (x_org/xs > y_org/ys) 
         { xi=xs  ; yi=(y_org*xs/x_org) }
         else
         { yi=ys ; xi=(x_org*ys/y_org) }                         
        }
        xi              = xi*.95 ;  yi              = yi*.95 
	var yes		= 1; 
	var no		= 0; 
	var menubar     = no;  // The File, Edit, View Menus 
	var scrollbars  = no; // Horizontal and vertical scrollbars 
	var locationbar = no;  // The location box with the site URL 
	var directories = no;  // the "What's New", "What Cool" links 
	var resizable   = no;  // Can the window be resized? 
	var statusbar   = no;  // Status bar (with "Document: Done") 
	var toolbar     = no;  // Back, Forward, Home, Stop toolbar 
 
	features = "" + 
		"width=" + xi + "," + 
		"height=" + yi + "," + 
		"top=" + top + "," + 
		"left=" + left + ""; 
	features += "" + 
		(menubar ? ",menubars" : "") + 
		(scrollbars ? ",scrollbars" : "") + 
		(locationbar ? ",location" : "") + 
		(directories ? ",directories" : "") + 
		(resizable ? ",resizable" : "") + 
		(statusbar ? ",status" : "") + 
		(toolbar ? ",toolbar" : ""); 
// 	window.open( page, 'fullPopup', features ); 
        window._w = window.open("","",features);
        window._w.document.open();
        window._w.document.write('<html><head><script type="text/javascript">');
        window._w.document.write('<\/script> <\/head>');
        window._w.document.write('<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"> ');
        window._w.document.write('<center> <table height="100%">');
        window._w.document.write('<tr><td align="center" valign="middle">');
        window._w.document.write('<a href="javascript:window.close();">');
        window._w.document.write('<img alt="Klik op het plaatje om terug te gaan." border="1" src="' + page + '" width="' + xi +'" height="' + yi + '" ><br><\/a>');
        window._w.document.write('<\/td><\/tr><\/table><\/center>');
        window._w.document.write('<\/body><\/html>');
        window._w.document.close();
 	
} 

function upd_framen(frame1,frame2)
{
// document.write(frame1+frame2) ;
parent.links.location.href=frame1 ; 
parent.middenbody.location.href=frame2  ;
}
function upd_frames(frame1,frame2)
{
// document.write(frame1+frame2) ;
top.menu.location.href=frame1 ; 
top.inhoud.location.href=frame2  ;
}
