function process(){

  today = new Date()
  minutes = today.getMinutes();
  hours = today.getHours();
  month = today.getMonth();
  date = today.getDate();
  var year = today.getYear();
  day = today.getDay();
  destatus = "AM";
  if(minutes < 10) {
    pad = "0"}
  else
    pad = "";

if( (hours > 12)&&(hours <= 23)){
    hours = hours -12;
    destatus ="PM";}
if(hours == 24){
    hours = hours -12;
    destatus ="AM";} 
if(hours == 12){
    destatus ="PM"}
	
	 if(day == 0)
             day = " Sunday "      

     else if(day == 1)
           day = " Monday "

     else if(day == 2)
             day = " Tuesday "   

     else if(day == 3)
             day = " Wednesday "   

     else if(day == 4)
             day = " Thursday "

     else if(day == 5)
             day = " Friday "

     else if(day == 6)
             day = " Saturday "

     if(month == 0)
              month = "January "

     else if(month ==1)
              month = "February "

     else if(month ==2)
             month = "March "

     else if(month ==3)
            month = "April "

     else if(month ==4)
              month = "May "

     else if(month ==5)
              month = "June "

     else if(month ==6)
              month = "July "

     else if(month ==7)
            month = "August "

     else if(month ==8)
           month = "September "

     else if(month ==9)
          month = "October "

     else if(month ==10)
          month = "November "

     else if(month ==11)
          month = "December "

if (parseInt(navigator.appVersion) >= 4 )
	{
		if (navigator.appName == "Netscape")
		{
			if(parseInt(navigator.appVersion) >= 5 )
			{
				year = year+1900;
				timedate=day+" <font color='Yellow'>"+ hours +":"+ pad + minutes +" </font>" + destatus + " "+"<br>"+month+" "+ date+", "+year+" ";
				document.getElementById("cosmos").innerHTML = timedate;
				
			}else{
				  year = year+1900;
				  timedate=day+" <font color='Yellow'>"+ hours +":"+ pad + minutes  + " </font>"+ destatus+"<br>"+month+" "+ date+", "+year+" ";
				  document.layers["cosmos"].document.open();
				  document.layers["cosmos"].document.write("<font color='White' style='align:center\;font-size:7.15pt\;font-family:Comic Sans MS, Lucida Sans, Serif\;backgound-color:#000000\;'>"+timedate+"</font>");
				  document.layers["cosmos"].document.close();

				 }
		}else{
			timedate="&nbsp;"+day+" <font color='Yellow'>"+ hours +":"+ pad + minutes +" </font>" + destatus + " "+"<br>"+month+" "+ date+", "+year+" ";
			document.all.cosmos.innerHTML = timedate; 
		}
	}




setTimeout("process()",30000);
}

