// Script to hide E-mail address from programs which mine pages for addresses.

function write_email( n1, d1, n2, d2, n3, d3 ) {
   var address = n2 + n3 + n1 + "@" + d2 + d3 + d1;
   var url = "mailto:" + address;
   document.write( address.link( url ) );
}

// Simple sript to write to the page and also write date.

function sayhi() {
   document.write("Hello World!");
   var now = new Date();
   document.write(now.toLocaleString());
   confirm(now.toLocaleString());
}

// Simple script to write a time appropriate greeting to the page.

function greeting() {
   var now = new Date();
   var hour = now.getHours();
   if( eval(hour) < 12 ) {
      document.write( "Good morning ! " );
   }
   else if( eval(hour) < 18 ) {
      document.write( "Good afternoon ! " );
   }
   else {
      document.write( "Good evening ! " );
   }
}

