function setClassName(obj, className)
{
	getRef(obj).className= className;
}

function getRef(obj)
{
	if(typeof obj == "string")
		obj= document.getElementById(obj);
		return obj;
}

function setstatus(arg1)	{ status=arg1;	}
function load_prev()		{ self.history.back(); }
function load_next()		{ self.history.forward(); }
function load_home()		{ top.location.href="index.php"; }
function go_top()			{ self.location.href="#top"; }


var highlightcolor="lightyellow"
var ns6=document.getElementById&&!document.all
var previous=''
var eventobj
var intended=/INPUT|TEXTAREA|SELECT|OPTION/
function checkel(which){
if (which.style&&intended.test(which.tagName)){
if (ns6&&eventobj.nodeType==3)
eventobj=eventobj.parentNode.parentNode
return true
}
else
return false
}
function highlight(e){
eventobj=ns6? e.target : event.srcElement
if (previous!=''){
if (checkel(previous))
previous.style.backgroundColor=''
previous=eventobj
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
}
else{
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
previous=eventobj
}
}
