function showDate()
{
// Get today's current date.
var now = new Date();

// Array list of days.
var days = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');

// Array list of months.
var months = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sept','Oct','Nov','Dec');

// Calculate the number of the current day in the week.
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();

// Calculate four digit year.
function fourdigits(number)	{
	return (number < 1000) ? number + 1900 : number;
								}

// Join it all together
today =  days[now.getDay()] + "," +
              months[now.getMonth()] + " " +
               date + "," +
                (fourdigits(now.getYear())) ;


 document.getElementById("date").innerHTML=today;
}
var timerID = null;
var timerRunning = false;
function stopclock (){
        if(timerRunning)
                clearTimeout(timerID);
        timerRunning = false;
}
function startclock () {
        // Make sure the clock is stopped
        stopclock();
        showtime();
}
function showtime () {
        var now = new Date();
        var hours = now.getHours();
        var minutes = now.getMinutes();
        var seconds = now.getSeconds()
        var timeValue = "" + ((hours >12) ? hours -12 :hours)
        timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
        //timeValue += ((seconds < 10) ? ":0" : ":") + seconds
        timeValue += (hours >= 12) ? " pm" : " am"
        //document.getElementById('face').value = timeValue;
        document.getElementById('face').innerHTML = timeValue;

//		window.status = timeValue;
        // you could replace the above with this
        // and have a clock on the status bar:
        // window.status = timeValue;
        timerID = setTimeout("showtime()",60000);
        timerRunning = true;
}
///for the breaking news 
