
startList = function() {
	var inputs = document.getElementsByTagName('input')
			for (i = 0; i < inputs.length; i++) {
        if (inputs[i].className == "text") {
					inputs[i].onfocus=function() {
						this.className=this.className ="activText";
					}		
					inputs[i].onblur=function() {
						this.className=this.className ="text";
					}
				}
			}
	
	if (document.all&&document.getElementById) {
		
		navRoot = document.getElementById("navlist");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
			
			var inputs = document.getElementsByTagName('input')
			for (i = 0; i < inputs.length; i++) {
        if (inputs[i].className == "button") {
					inputs[i].onmouseover=function() {
						this.className=this.className ="over";
					}
					inputs[i].onmouseout=function() {
						this.className=this.className ="button";
					}
				}
				if (inputs[i].className == "yes") {
					inputs[i].onmouseover=function() {
						this.className=this.className ="yover";
					}
					inputs[i].onmouseout=function() {
						this.className=this.className ="yes";
					}
				}
				if (inputs[i].className == "no") {
					inputs[i].onmouseover=function() {
						this.className=this.className ="nover";
					}
					inputs[i].onmouseout=function() {
						this.className=this.className ="no";
					}
				}
			}
		
	}
}
		

window.onload=startList;

function showTab(tabid, nr) {

		var tabRoot = document.getElementById("tablist"+tabid);
		var k=0;
		for (i=0; i<tabRoot.childNodes.length; i++) {
			var node = tabRoot.childNodes[i];

			if (node.nodeName=="LI") {
					if (k==nr) {
						node.className = "activ"+nr;
						document.getElementById("tab"+nr+tabid).className = "activtab";
					} 
					else {
					node.className = "";
						document.getElementById("tab"+k+tabid).className = "tab";
					}
					k++;
			}
			
		} 

}

function clearForm(Form)
{
    for (i = 0; i < Form.elements.length; i++) {
        if (Form.elements[i].type == "radio") {
            Form.elements[i].checked = false;
        } else if (Form.elements[i].type == "checkbox") {
            Form.elements[i].checked = false;
        } else if (Form.elements[i].type == "text") {
            Form.elements[i].value = '';
        } else if (Form.elements[i].type == "textarea") {
            Form.elements[i].value = '';
        } else if (Form.elements[i].type == "select-one") {
            Form.elements[i].selectedIndex = 0;
        } else if (Form.elements[i].type == "select-multiple") {
            Form.elements[i].selectedIndex = -1;
        }
    }
    return true;
}


function allCheckBox(form, bool)
{	
	var form = document.getElementById(Form);
    for (i = 0; i < form.elements.length; i++) {
         if (form.elements[i].type == "checkbox") {
            form.elements[i].checked = bool;
        }
    }
   
}
