
function topline() // Note: This code writes HTML <i> and <h6> (see below)
{ 
      now = new Date;  
      var day = now.getDate();
      var month = now.getMonth() + 1; 
      var year = now.getFullYear();  
      document.write("<h6><i>Today is "+day+"/"+month+"/"+year+" --- ");

if (navigator.appName != "Netscape") // ie other browsers eg IE
   {
      if(document.lastModified.substring(3,4)!="0")         
	day=document.lastModified.substring(3,5);   
      else	day = document.lastModified.substring(4,5);  
      if(document.lastModified.substring(0,1)!="0")         
	month = document.lastModified.substring(0,2);  
      else	month = document.lastModified.substring(1,2);   
      year = document.lastModified.substring(6,10);   
      document.write("This page was updated  "+day+"/"+month+"/"+year+" --- ");
      document.write( "Copyright &copy; "+year+" OLO</i></h6>");
  }
else // ie a Netscape browser
   {
    var i=0;
    while (document.lastModified[i] != ':')  i++ ; // find the first colon 

    var moddate = document.lastModified.substring(0, i-3); // trim off three chars before colon
     if (moddate[i-11] != '0')
    {
    document.write("<h6><i>This page was updated " + moddate);
    }
  else
    {
     document.write("<h6>This page was updated " ); 
     document.write(moddate.substring(0,i-11));
     document.write(moddate.substring(i-10,i-3));
     }
    document.write( "Copyright &copy; "  + year + " OLO</i></h6>");
     }
 }

