
function externalLinks() {
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		anchor.onfocus		= function() { this.blur(); }
		if (anchor.getAttribute("href") &&
			anchor.getAttribute("rel") == "external")
			anchor.target = "_blank";
	}

	var headers = document.getElementsByTagName("h1");
	headers[0].onclick = function() { window.location='/' }; 
}


function clearValue(which, obj) {
	if (obj.value == which) {
		obj.value = '';
	}
}

function restoreField(which, obj) {
	if (obj.value == ''){
		obj.value = which;
	}
}
	
	
	 
