function initRadiosHover()
{
	var ul = document.getElementById("servers");
	if(ul)
	{
		var li = ul.getElementsByTagName("li");
		for (var i=0; i<li.length; i++)
		{
			li[i].onclick = function ()
			{
				input = this.getElementsByTagName("input").item(0).checked = true;;
			}
		}
	}
}

function initInputs()
{
	var inputs = document.getElementsByTagName("input");
	for (var i=0; i<inputs.length; i++)
	{
		if ((inputs[i].type == "text" || inputs[i].type == "password") && (inputs[i].name == "q" || inputs[i].name == "dn_un" || inputs[i].name == "dn_pw"))
		{
			inputs[i].onfocus = function ()
			{
				if (this.value == "search here..." || this.value == "username" || this.value == "********")
					this.value = "";
			}
			inputs[i].onblur = function ()
			{
				if (this.value == "" && this.name == "q") this.value = "search here...";
				if (this.value == "" && this.name == "dn_un") this.value = "username";
				if (this.value == "" && this.name == "dn_pw") this.value = "********";
			}
		}
	}
}
if (window.addEventListener)
{
	window.addEventListener("load", initInputs, false);
	window.addEventListener("load", initRadiosHover, false);
}
else if (window.attachEvent)
{
	window.attachEvent("onload", initInputs);
	window.attachEvent("onload", initRadiosHover);
}