function openPDFWindow(url, name) {  if (url != "") {    window.location = url  }}function newWindow(cat) {  url=cat.options[cat.selectedIndex].value;  if (url != "") {    window2 = window.open(url,'devnetgee')  }}function jumpToPage(cat) {  url=cat.options[cat.selectedIndex].value;  if (url != "") {    window.location.href = url  }}function replaceSubstring ( inputString, badString, goodString, caseSensitive ) {	fixedReplace = "";	UI = inputString;	UB = badString;	if ( ( caseSensitive != 1 ) && ( caseSensitive != true ) )	{		UI = inputString.toUpperCase();		UB = badString.toUpperCase();	}	badEnd = -1;	badLoc = UI.indexOf(UB);	if ( badLoc != -1 ) 	{		for ( x = 1; ( badLoc != -1 ); x++ )		{			fixedReplace = fixedReplace + inputString.substring ( ( badEnd + 1 ), badLoc ) + goodString			badEnd = badLoc + UB.length - 1;			badLoc = UI.indexOf ( UB, ( badLoc + 1 ) );		}	fixedReplace = fixedReplace + inputString.substring ( ( badEnd + 1 ), inputString.length );	}	else { fixedReplace = inputString;	}return fixedReplace;}function stringBlank(s) {	var stringLength = s.length;	for (i = 0; i < stringLength; i++) {		if (s.charAt(i) != "")			return false;	}		return true;}function doSomething(e){     var targ;	if (!e) var e = window.event;	if (e.target) targ = e.target;	else if (e.srcElement) targ = e.srcElement;	if (targ.nodeType == 3) // defeat Safari bug		targ = targ.parentNode;	var code;	if (!e) var e = window.event;	if (e.keyCode) code = e.keyCode;	else if (e.which) code = e.which;	var character = String.fromCharCode(code);	if (code =="13") {		if (targ.name == "search_field") {			runSearch();			return false;		}		else if (targ.name == "search_field2") {			runSearch2();			return false;		}			}}function runSearch() {	var f = document.forms[0];	var s = f.search_field.value;		if (stringBlank(s)) 		{			f.search_field.focus();                                }		else 			{window.status = 'Searching PCWLA...';			location.href = "/pcwla2.nsf/SearchAgent5?OpenAgent&query=" + replaceSubstring(s, " ", "+");				}}function runSearch2() {	var f = document.searchform2;	var s = f.search_field2.value;		if (stringBlank(s)) 		{			f.search_field.focus();                                }		else 			{window.status = 'Searching PCWLA...';			location.href = "/pcwla2.nsf/SearchAgent5?OpenAgent&query=" + replaceSubstring(s, " ", "+");				}}function goToCode() {	var f = document.forms[1];	var s = f.lookup_field.value;		if (stringBlank(s)) 		{			f.lookup_field.focus();						}		else 			{window.status = 'Buscar por codigo...';			location.href = "/buscar/" + replaceSubstring(s, " ", "+");				}}function jumpToPage(cat) {  url=cat.options[cat.selectedIndex].value;  if (url != "") {    window.location.href = url  }}