function pudMagick() {
	var ie	= document.all;
	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";

		anchor.onfocus = function() { this.blur; }
	}

	if (ie) {
		var inputs = document.getElementsByTagName("input");
		for (var i=0; i<inputs.length; i++) {
			var input = inputs[i];

			input.onfocus = function() { this.className += ' focus'; }
			input.onblur = function() { this.className = this.className.replace(' focus', '');
			}
		}
	}

	document.getElementsByTagName("h1")[0].onclick = function() { window.location="index.jsp" }
	document.getElementsByTagName("h2")[0].onclick = function() { window.location="index.jsp" }
}

window.onload = pudMagick; 