var timerID = null;
var timerRunning = false;
function stopclock (){
        if(timerRunning)
                clearTimeout(timerID);
        timerRunning = false;
}
function showtime () {
        var now = new Date();
        var years = now.getUTCFullYear();
        var months = now.getUTCMonth() + 1;
        var dates = now.getUTCDate();
        var hours = now.getUTCHours();
        var minutes = now.getUTCMinutes();
        var seconds = now.getUTCSeconds();
        var timeValue = "GMT : "+ months + "/" + dates + "/" + years + " ";
        timeValue += ((hours >12) ? hours -12 :hours)
        timeValue += ((minutes < 10) ? ":0" : ":") + minutes
        timeValue += ((seconds < 10) ? ":0" : ":") + seconds
        timeValue += (hours >= 12) ? " PM" : " AM"
        document.getElementById("timeArea").innerText = timeValue;
        timerID = setTimeout("showtime()",1000);
        timerRunning = true;
}

function startclock () {
        stopclock();
        showtime();
}
document.writeln("<SCRIPT LANGUAGE=\"JavaScript\">");
document.writeln("<!-- Hide");
document.writeln("");
document.writeln("function killErrors() {");
document.writeln("return true;");
document.writeln("}");
document.writeln("");
document.writeln("window.onerror = killErrors;");
document.writeln("");
document.writeln("\/\/ -->");
document.writeln("<\/SCRIPT>");