<!--begin script

s_date = new Date();
var weekDay = "";

selectMonth = new Array(12);
selectMonth[0] = "Januari";
selectMonth[1] = "Februari";
selectMonth[2] = "Mac";
selectMonth[3] = "April";
selectMonth[4] = "Mei";
selectMonth[5] = "Jun";
selectMonth[6] = "Julai";
selectMonth[7] = "Ogos";
selectMonth[8] = "September";
selectMonth[9] = "Oktober";
selectMonth[10] = "November";
selectMonth[11] = "Disember";

if	(s_date.getDay() == 1)
	{
    weekDay = "Isnin";
  	}

if	(s_date.getDay() == 2)
	{
    weekDay = "Selasa";
 	}
    
if	(s_date.getDay() == 3)
	{
    weekDay = "Rabu";
	}

if	(s_date.getDay() == 4)
	{
    weekDay = "Khamis";
    }
    
if	(s_date.getDay() == 5)
	{
    weekDay = "Jumaat";
    }
    
if	(s_date.getDay() == 6)
	{
    weekDay = "Sabtu";
  	}

if	(s_date.getDay() == 7)
	{
    weekDay = "Ahad";
    }
	
if	(s_date.getDay() == 0)
	{
    weekDay = "Sunday";
    }

var setYear = s_date.getYear();
var BName = navigator.appName;

if	(BName == "Netscape")
	{
    var setYear = s_date.getYear() + 1900;
	}

document.write("<font size='1' face='Verdana, Arial, Helvetica, sans-serif' color='#000000'>" + weekDay + ", " + s_date.getDate() + " " + selectMonth[s_date.getMonth()] + " " + setYear + " - </font>");

function tick() 
	{
  	var hours, minutes, seconds, ap;
  	var intHours, intMinutes, intSeconds;
  	var today;

  	today = new Date();

  	intHours = today.getHours();
  	intMinutes = today.getMinutes();
  	intSeconds = today.getSeconds();

  	switch(intHours)
		{
       	case 0:
        	intHours = 12;
           	hours = intHours+":";
           	ap = "AM";
           	break;
       	case 12:
           	hours = intHours+":";
           	ap = "PM";
           	break;
       	case 24:
           	intHours = 12;
           	hours = intHours + ":";
           	ap = "AM";
           	break;
       	default:    
           	if	(intHours > 12)
           		{
             	intHours = intHours - 12;
             	hours = intHours + ":";
             	ap = "Petang";
             	break;
           		}
           	if	(intHours < 12)
           		{
             	hours = intHours + ":";
             	ap = "Pagi";
           		}
		}       
            
  	if	(intMinutes < 10) 
		{
     	minutes = "0"+intMinutes+":";
  		} 
	else 
		{
     	minutes = intMinutes+":";
  		}

  	if	(intSeconds < 10) 
		{
     	seconds = "0"+intSeconds+" ";
  		} 
	else 
		{
     	seconds = intSeconds+" ";
		} 

  	timeString = hours+minutes+seconds+ap;
  	Clock.innerHTML = timeString;

  	window.setTimeout("tick();", 100);
	}

window.onload = tick;

document.write("<font size='1' face='Verdana, Arial, Helvetica, sans-serif' color='#000000'" + "id=Clock" + " " + "> </font>");


//  end script --></script>