function externalLinks() {
	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";
	}
} // [function: externalLinks]

window.onload = externalLinks;

/* add to function to onfocus and onblur attributes of input element */
function doFieldValue(objElement) {
	if (objElement.value == objElement.defaultValue) {
		objElement.value = '';
	} else if (objElement.value == '') {
		objElement.value = objElement.defaultValue;
	}
} //doFieldValue