function external() {
	if (document.getElementsByTagName) {
 		var i, mylink;
  		mylink = document.getElementsByTagName('a');
  		for (i in mylink) {
   			if (mylink[i].href && mylink[i].rel == 'linkExt') mylink[i].target = '_blank';
  		}
 	}
}

function formHasValue() {
	hasValue = (!document.getElementById || document.getElementById("indexed_searchfield").value.length > 0);
	if (!hasValue && document.all) {
		document.getElementById('indexed_searchfield').style.setAttribute('backgroundcolor', '#CCCCCC', false);
		setTimeout("document.getElementById('indexed_searchfield').style.setAttribute('backgroundcolor', '#FFFFFF', false);",1000);
	}
	return hasValue;
}

function printwindow (url){
	window.open(url, "Print", 'width=600,height=600,scrollbars=yes');
	return false;
}

window.onload = function() {
	external();
};

function gup(name) {
	name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
	var regexS = "[\\?&]"+name+"=([^&#]*)";
	var regex = new RegExp( regexS );
	var results = regex.exec( window.location.href );
	if( results == null ) {
  		return "";
   }
	else {
		return results[1];
   }
}