function showNaijaTime()
{
   // get the current time
   
   var time = new Date();
   var HereTime = time.getTime();
   
   // get the GMT offset (in milliseconds) and add it
   
   var GMTOffset = time.getTimezoneOffset() * 60 * 1000;
   
   // Nigeria is one hour ahead of the GMT 
   
   var NigOffset = GMTOffset + (60 * 60 * 1000);
   
   // get the nigerian time
   
   var NigTime = HereTime + NigOffset;
      
   // set up a new date variable
     
   var new_time = new Date();
   
   // set it to the Nigerian time
   
   new_time.setTime(NigTime);
   
   // get the various components of the time
   
   var month = new_time.getMonth();
   var date = new_time.getDate();
   var year = new_time.getYear();
   // var year = new_time.getYear() + 1900 Bomie says this is necessary for Netscape. is it????
   var hour = new_time.getHours();
   var mins = new_time.getMinutes();
   var day = new_time.getDay();
   
   var ap;
   

   if (hour < 12)			// between 0 and 11 is AM
   	ap = "AM"
   else						// it is PM & we need to subtract 12
   {  
	   ap = "PM";			
		hour -= 12;			
	}

   if (hour == 0) hour = 12;   // midnight should come up as 12.
   
   // write the results out

   var MonthChar = new Array("Jan.", "Feb.", "Mar.", "April", "May", 
   "June", "July", "Aug.", "Sep.", "Oct.", "Nov.", "Dec.");
   
   var weekday = new Array("Sun.", "Mon.", "Tue.", "Wed.", "Thur.", 
   "Fri.", "Sat.");
   
   if (mins < 10)
      mins = "0" + mins;
   
   document.clock.face.value= " " +hour+ ":" +mins+ " " +ap+ 
                  " , " +weekday[day]+ ", " +MonthChar[month]+ " " +date+ ", " +year+ " - " + "Nigerian Time.";

   // update every minute
   
   setTimeout("showNaijaTime()", 999);
}
