 var pom=1;
 var delta = 2;
 var n;

function tick() {
  var hours, minutes, seconds, ap, day;
  var intHours, intMinutes, intSeconds, intDay, intMonth, intYear;
  var today;

  today = new Date();

  intHours = today.getHours();
  intMinutes = today.getMinutes();
  intSeconds = today.getSeconds();
  intDay=today.getDate();
  intMonth=today.getMonth();
  intMonth+=1;
  intYear=today.getYear();
  intD=today.getDay();
  
  if(intD==1)day='Monday';
  if(intD==2)day='Tuesday';
  if(intD==3)day='Wednesday';
  if(intD==4)day='Thursday';
  if(intD==5)day='Friday';  
  if(intD==6)day='Saturday';  
  if(intD==0)day='Sunday'; 
  if (intHours == 0) {
     hours = "12:";
     ap = "Midnight";
  } else if (intHours < 12) { 
     hours = intHours+":";
     ap = "A.M.";
  } else if (intHours == 12) {
     hours = "12:";
     ap = "Noon";
  } else {
     intHours = intHours - 12
     hours = intHours + ":";
     ap = "P.M.";
  }

  if (intMinutes < 10) {
     minutes = "0"+intMinutes+":";
  } else {
     minutes = intMinutes+":";
  }

  if (intSeconds < 10) {
     seconds = "0"+intSeconds+" ";
  } else {
     seconds = intSeconds+" ";
  } 
  timeString = '&nbsp;'+hours+minutes+seconds+ap;
  window.document.getElementById("P4").innerHTML = timeString;
  
} 

function Init(){

tick();
window.setInterval("tick();", 1000);
}  

function DoOver(Text) {
     window.status = Text ;	
}

function DoOut() {
     window.status = " " ;	
}




			
			
