// do standard checks to correct or modify pages
 // detect browser
 var ns4 = document.layers;
 var ns6 = document.getElementById && !document.all;
 var ie4 = document.all;
 //vars
 var pageparm = '';
 var linkpage = '';
 var homepage = '';
 // test top frame
 var linkswitch = 0;
 //alert( parent.inhoud == null );
 //alert( document.lastModified.toString() );
 if ( self === top )
 { linkswitch = 1; }
 else
 { if ( ie4 )
   { if ( parent.document.getElementById('nissorap') === null )
     { if ( parent.document.getElementById('scorebord') === null )
       { linkswitch = 1; }
     } 
   }
   else
   { if ( parent.inhoud === null )
     { linkswitch = 1; }
   }
 }
 // switch link
 if ( linkswitch === 1 )
 {
   // get linkpage
   pageparm  = window.location.href;
   //alert( pageparm );
   //if ( pageparm.substr( 0, 4 ) === 'http' ) {
     linkpage  = pageparm.substr( pageparm.lastIndexOf('nissorap.be/') + 12 );
     homepage  = pageparm.substr( 0, pageparm.lastIndexOf('nissorap.be/') + 12 );
   // } else {
     //linkpage  = pageparm.substr( pageparm.indexOf('localhost/') + 10 );
     //homepage  = pageparm.substr( 0, pageparm.lastIndexOf('localhost/') + 10 );
   //  linkpage  = pageparm.substr( pageparm.indexOf('Site/html/') + 10 );
   //  homepage  = pageparm.substr( 0, pageparm.lastIndexOf('Site/html/') + 10 );
   //}
   //alert( linkpage );
   // redirect
   document.location.replace( homepage + 'indexl.html?' + linkpage );
 }
 else
 { // eigen frameset is geladen
   var pageDateS;
   //modify pageDate
   var pageDate = new Date( document.lastModified );
   pageDateS = '<font face="Helvetica, Arial" color="FFD700" 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();
     }
   }
 }
//
if ( self.document.title != '' )
{ parent.document.title = self.document.title; }
//====
// end
