// do standard checks to correct or modify pages
 // detect browser
 var ns4 = document.layers;
 var ns6 = document.getElementById && !document.all;
 var ie4 = document.all;
 // test top frame
 var linkswitch = 0;
 if ( self == top )
 { linkswitch = 1; }
 else
 { if ( ie4 )
   { if ( parent.document.getElementById('groenheist1') == null )
     { linkswitch = 1; }
   }
   else
   { if ( parent.inhoud == null )
     { linkswitch = 1; }
   }
 }
 // switch link
 if ( linkswitch == 1 )
 { 
   // get linkpage
   var pageparm  = window.location.href;
   var linkpage  = pageparm.substr( pageparm.lastIndexOf('/') + 1 );
   // redirect
   document.location.replace( 'indexl.html?' + linkpage );
 }
 else
 { // eigen frameset is geladen
   //modify pageDate
   pageDate = new Date( document.lastModified );
   pageDateS = '<font face="Verdana" color="white" size="1">'
             + String( pageDate.getDate() ) + '/'
             + String( pageDate.getMonth()+1 ) + '/'
             + String( pageDate.getFullYear() ) + '</font>';
   if ( ie4 || ns6 )
   { if ( parent.inhoud.document.getElementById('PageUpdate') != null )
     { parent.inhoud.document.getElementById('PageUpdate').innerHTML = pageDateS; }
   }
   else
   { if ( parent.inhoud.ns4PageUpdate != null )
     { //parent.inhoud.ns4PageUpdate.document.open();
       parent.inhoud.ns4PageUpdate.document.writeln( pageDateS );
       //parent.inhoud.ns4PageUpdate.document.close();
     }
   }
 }
// end
