
function CanEmptyField(element, msg){
	if(element.value==msg){
		element.value=''
		element.style.color='#000'
	}
}

function IsEmptyField(element, msg){
	if(element.value==''){
		element.value=msg
		//element.style.color='#999'
	}
}

startList = function() {
    if (document.getElementById) {
        navRoot = document.getElementById("navigation");
        for (i = 0; i < navRoot.childNodes.length; i++) {
            node = navRoot.childNodes[i];
            if (node.nodeName == "LI" && node.className.indexOf("navitemcode_") != -1) {
                //alert(node.className)
                node.onmouseover = function() {
                    this.className += " over";
                    //alert(this.className);
                }
                node.onmouseout = function() {
                    // firefox trims class names so we can't replace on " over"
                    var cn = this.className
                    if (cn == "over") {
                        cn = "";
                    }
                    else {
                        cn = this.className.replace(" over", "");
                    }
                    this.className = cn;
                    //alert("mouse out = "+this.className);
                }
            }
        }
    }
}
window.onload=startList;
