/*This function is from the book "DOM ScriptingL Unobstrusive Javascript at its best."  References: http://domscripting.com/book/sample/ and http://www.webreference.com/reviews/dom_scripting/It is used on the BrentBlack site to open the Girls of Summer Music Video from montecristi_hall.html page link.  Also on aboutus_world_vision.html page.To use, include this file on a page, then use a link like: <a href="girls_of_summer.html" class="popup"></a> on the page.Requires the addLoadEvent function be available (standard_functions.js)*/function doPopups() {  if (!document.getElementsByTagName) return false;  var links=document.getElementsByTagName("a");  for (var i=0; i < links.length; i++) {    if (links[i].className.match("popup")) {      links[i].onclick=function() {        window.open(this.href, "music", "width=400,height=590,scrollbars=0,resizable=1,toolbar=0,location=0");        return false;      }    }  }}addLoadEvent(doPopups);