function setOnLoad() {
	// links
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i = 0; i<anchors.length; i++) {
		var anchor = anchors[i];
		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")
			anchor.target = "_blank";
	}
	// drop menu
	if (document.all && document.getElementById) {
		navRoot1 = document.getElementById("mNav");
		for (i = 0; i < navRoot1.childNodes.length; i++) {
			node1 = navRoot1.childNodes[i];
			if (node1.nodeName == "LI") {
				node1.onmouseover = function() {
					this.className += " over";
				}
				node1.onmouseout = function() {
					this.className = this.className.replace(" over", "");
				}
				navRoot2 = node1;
				for (j = 0; j < navRoot2.childNodes.length; j++) {
					node2 = navRoot2.childNodes[j];
					if (node2.nodeName == "UL") {
						navRoot3 = node2;
						for (k = 0; k < navRoot3.childNodes.length; k++) {
							node3 = navRoot3.childNodes[k];
							if (node3.nodeName == "LI") {
								node3.onmouseover = function() {
									this.className += " over";
								}
								node3.onmouseout = function() {
									this.className = this.className.replace(" over", "");
								}
							}
						}
					}
				}
			}
		}
	}
}

window.onload = setOnLoad;

// registration
function regForm() {
	if (document.getElementById("n_pass").checked == true) {
		document.getElementById("pass").disabled = true;
		document.getElementById("c_pass").disabled = true;
	} else {
		document.getElementById("pass").disabled = false;
		document.getElementById("c_pass").disabled = false;
	}
}

