// Pop Up Find on this page Javascript copyright Stephen Chapman, Felgall Pty Ltd permission is granted to use this javascript provided that the code and comments are not altered var nm = 0; var here = ""; if (opener != null) {here = opener.location.href; var isLayers = 0; var isAll = 0; var isID = 0; if (document.getElementById) {isID = 1;} // else { if (document.all) {isAll = 1;} else { browserVersion = parseInt(navigator.appVersion); if ((navigator.appName.indexOf("Netscape") != -1) && (browserVersion == 4)) {isLayers = 1;}} // } } function findInPage(str) {if (opener.closed) {alert("It is not possible to find this text because the main window has been closed"); self.close(); return false;} else if (here != opener.location.href) {here = opener.location.href; nm = 0;} if (str == "") {alert("Please type the text you would like to find."); return false;} var tx, i, found; if (isLayers) { // start of Netscape 4 find code (from Bravenet) if (!opener.find(str)) while(opener.find(str,false,true)) n++; else n++; // end of Netscape 4 find code (from Bravenet) if (n == 0) alert(str + "was not found on the page."); } else if (isAll) { // start of Internet Explorer find code (from Bravenet) tx = opener.document.body.createTextRange(); for (i = 0; i <= nm && (found = tx.findText(str)) != false; i++) {tx.moveStart("character", 1); tx.moveEnd("textedit");} if (found) {tx.moveStart("character", -1); tx.findText(str);tx.select(); tx.scrollIntoView(); nm++;}else {if (nm > 0) {nm = 0; findInPage(str);} // end of Internet Explorer find code (from Bravenet) else alert(str + " was not found on the page");}} else if (isID) { // standard DOM find code goes here alert("Find function not supported on this browser yet."); } return false;} function mnWin() {if (opener.closed) { alert("The main window has been closed."); self.close();} else {opener.focus(); locatorWin();}} function findBody() {document.write('
');}