function hidediv(id) {
document.getElementById(id).style.display = 'none';
}

function showdiv(id) {
document.getElementById(id).style.display = 'block';
}

function hideform(id) {
document.getElementById(id).style.bgcolor = 'none';
}

function changeColour(){
	var fields = document.body.getElementsByTagName("INPUT");
	for(i=0; i < fields.length; i++)
	{
		if(fields[i].className == "delegform")
		{
			if(fields[i].type == 'text')
			{
			fields[i].onfocus = highlightOn;
			fields[i].onblur = highlightOff;
			}
		}
	}

}

function highlightOn() {
this.style.border = '1px solid #eeeeee';
this.style.backgroundColor = '#ffffff';
}

function highlightOff() {
this.style.border = '1px solid #FFBF80';
this.style.backgroundColor = '#FFBF80';
}

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=0,width=800,height=700');");
}

function popUpToolbar(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=yes,scrollbars=yes,location=yes,statusbar=yes,menubar=yes,resizable=0,width=800,height=700');");
}