// Anytime Anywhere Web Page Clock Generator
// Clock Script Generated at
// http://www.rainbow.arch.scriptmania.com/tools/clock

function timeSource(){
   x=new Date();
   x.setTime(x.getTime());
   return x;
}
function leadingZero(x){
   return (x>9)?x:'0'+x;
}
function twelveHour(x){
   if(x==0){
      x=12;
   }
   return (x>12)?x-=12:x;
}
function displayYourTime(){
   if(fr==0){
      fr=1;
      document.write('<font size=2 face=Arial><b>Your Time:<br><span id="tP">'+eval(outputTime)+'</span></b></font>');
   }
   document.getElementById('tP').innerHTML=eval(outputTime);
   setTimeout('displayYourTime()',1000);
}
function amPMsymbol(x){
   return (x>11)?'pm':'am';
}
function fixYear4(x){
   return (x<500)?x+1900:x;
}
var fr=0;
var outputTime="twelveHour(timeSource().getHours())+':'+leadingZero(timeSource().getMinutes())+':'+leadingZero(timeSource().getSeconds())+' '+amPMsymbol(timeSource().getHours())+' '+(timeSource().getMonth()+1)+'/'+timeSource().getDate()+'/'+fixYear4(timeSource().getYear())";



// Use the following within your HTML to Start/display your clock
// <script language="JavaScript">displayYourTime();</script>

