// JavaScript Document// Script from DOM Scripting by Jeremy Keithwindow.onload = function() {  if (!document.getElementsByTagName) return false;  var lnks = document.getElementsByTagName("a");  // Test for Mozilla... be sure the first "a" element has class="popup"  // getAttribute in Mozilla uses "class" and not "className"  if (lnks[0].getAttribute("class") == "popup") {    for (var i=0; i<lnks.length; i++) {      if (lnks[i].getAttribute("class") == "popup") {        lnks[i].onclick = function() {          popUp(this.getAttribute("href"));          return false;        }      }    }  // Assumes browser is IE and getAttribute looks for "className"  } else {    for (var i=0; i<lnks.length; i++) {      if (lnks[i].getAttribute("className") == "popup") {        lnks[i].onclick = function() {          popUp(this.getAttribute("href"));          return false;        }      }    }  }}function popUp(winURL) {  window.open(winURL,"popup","toolbar=no,status=yes,scrollbars=yes,resizable=yes,width=897,height=600");}