
	function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=350,height=400,left = 340,top = 312&');");
	}
	
function ValidateSrch(theForm)
{
		var a = new Array();
		var iFlag = 0;
		var s;

		if (theForm.specieskey.value == "")
		{
 			alert("Please select a species");
 			theForm.specieskey.focus();
 			return (false);
		}

		if (theForm.key.value == "")
		{
 			alert("Please enter a keyword");
 			theForm.key.focus();
 			return (false);
		}
		s = theForm.key.value;
		s = s.toLowerCase();
		a = s.split(' ');
		for (var i = 0; i < a.length; i++) {
			if (a[i] == 'and' || a[i] == 'or' || a[i] == 'not' || a[i] == 'in') {
		iFlag = iFlag + 1;
	}
		}
		if (iFlag > 0)
		{
 			alert("Keywords such as 'and', 'or', 'in' and 'not' cannot be used. If multiple words are entered, only content that contains all of the words will be found.");
 			theForm.key.focus();
 			return (false);
		}
}

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"; 
	} 
	var f = document.getElementById("o4vForm"); 
	if (f) f.target = "_blank"; 
}

window.onload = externalLinks;