function chgbg(objx,pos)
{
    if(pos==1) {
	objx.style.backgroundColor='#3366FF';
    } else {
	objx.style.backgroundColor='#6699FF';

    }

}

// This code was adapted from Netscape's clock, given in
// their JScript examples page

// Global variables
var timerID = null;
var timerRunning = false;

// stop the clock
function stopclock (){
        if(timerRunning)
                clearTimeout(timerID);
        timerRunning = false; }

// start the clock
function startclock () {
        // Make sure the clock is stopped
        stopclock();
        showtime(); }

// actually display the time
function showtime () {
        var now = new Date();
		var tgl = now.getDate();
		var bln = 1 + now.getMonth();
		var thn = now.getYear();
        var hours = now.getHours();
        var minutes = now.getMinutes();
        var seconds = now.getSeconds()
        var timeValue = tgl + "-" + bln + "-" + thn + " " + ((hours >12) ? hours -12 :hours)
        timeValue += ((minutes < 10) ? ":0": ":") + minutes
        timeValue += ((seconds < 10) ? ":0": ":") + seconds
        timeValue += (hours >= 12) ? " PM": " AM"
        jam.innerText = timeValue;
        // you could replace the above with this
        // and have a clock on the status bar:
        // window.status = timeValue;
        timerID = setTimeout("showtime()",1000);
        timerRunning = true; }