function ChangeClass(theName, theClass){
	searchField = document.getElementById('searchbar');
	
	if(searchField.value.length==0)
	{
		document.getElementById(theName).className=theClass;
	}
}

function clearDefault(el) {
	if (el.defaultValue==el.value) el.value = ""
}
function restoreDefault(el) {
	if (el.value=="")el.value = el.defaultValue
}

function NewWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable';
	win = window.open(mypage, myname, winprops);
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}