function initPage()
{
	var navRoot = document.getElementById("page");
	var lis = navRoot.getElementsByTagName("input");
	_value = "";
	for (var i=0; i<lis.length; i++)
	{
		if (lis[i].className.indexOf("text") != -1 ) {
		
			lis[i].onfocus = function()
			{
				this.className += " clicked";
				_value = this.value;
				this.value = "";

	                }
			lis[i].onblur = function()
			{
				if (this.value == ""){ 
					this.value = _value;
				}
 				this.className = this.className.replace("clicked", "");
	                }
	
		}
	}
}

if (window.addEventListener)
	window.addEventListener("load", initPage, false);
else if (window.attachEvent)
	window.attachEvent("onload", initPage);
