/*********************************************************************************
    this time script by Jason Schanker (jcheetah@orion.webspan.net)
    comes from "http://www.webspan.net/~herbs/jcheetah/web_design/javascript/time.html"
    You may copy this source freely if credit is given to the author
    Edited to switch(); by D. Seeley same conditions as above.
**********************************************************************************/
function start_clock()
{
    var now = new Date()
    var hours = now.getHours(),minutes = now.getMinutes(),seconds = now.getSeconds(),today,month,year = now.getFullYear(),date = now.getDate();

    switch(now.getDay()){
        case 0:today = " Sunday ";break;
        case 1:today = " Monday ";break;
        case 2:today = " Tuesday ";break;
        case 3:today = " Wednesday ";break;
        case 4:today = " Thursday ";break;
        case 5:today = " Friday ";break;
        case 6:today = " Saturday ";break;
    }

    switch(now.getMonth()){
        case 0:month = "Jan ";break;
        case 1:month = "Feb ";break;
        case 2:month = "Mar ";break;
        case 3:month = "Apr ";break;
        case 4:month = "May ";break;
        case 5:month = "Jun ";break;
        case 6:month = "Jul ";break;
        case 7:month = "Aug ";break;
        case 8:month = "Sep ";break;
        case 9:month = "Oct ";break;
        case 10:month = "Nov ";break;
        case 11:month = "Dec ";break;
    }

    if(seconds < 10) seconds = "0" + seconds;
    if(minutes < 10) minutes = "0" + minutes;
    if(hours <  12) seconds = seconds + " am";
    else if(hours >= 12) seconds = seconds + " pm";
    if(hours == 0) hours = hours + 12;
    else if(hours > 12) hours = hours - 12;
    var time = hours + ":" + minutes + ":" + seconds;
    document.time_form.clock.value    =  today + "  " + month + date + ", " + year + "   " + time;
    setTimeout("start_clock()", 1000);
}