// JavaScript Document

<!-- Idea by:  Nic Wolfe (Nic@TimelapseProductions.com) -->
<!-- Web URL:  http://fineline.xs.mw -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=750,height=150');");
}
// End -->

 function timemc(){

var dayName= new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var monthName=new Array("Jan","Feb","March","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec");

var now = new Date();
//alert("OK"+now);
var nowDay=dayName[now.getDay()];
//alert(nowDay);
var nowMonth=monthName[now.getMonth()];
//alert(nowMonth);
var nowDate=now.getDate();
//alert(nowDate);
var nowYear=now.getFullYear();
var nowHours;
if(now.getHours()>12)
 nowHours=(now.getHours()-12);
 else if(now.getHours()==0)
   nowHours=12;
   else
   nowHours=now.getHours();
   var ampm;
   if(now.getHours()>12)
 ampm="  PM";
 else 
   ampm="  AM";
  var sec=now.getSeconds();
  if(sec<10) { sec='0'+sec;} 

//alert(nowYear);
var str=nowDay+"   "+nowDate+"  "+nowMonth+"  "+nowYear+"   "+nowHours+" : "+now.getMinutes()+" : "+sec+ampm;
//alert(str);
document.getElementById("time").innerHTML=str;
setTimeout("timemc()",1000);
}

