/*This function is from the book "DOM Scripting: Unobstrusive Javascript at its best."  References: http://domscripting.com/book/sample/ and http://www.webreference.com/reviews/dom_scripting/It is used on the Musync site to open MP3 files when the musical note icon is clicked.To use, include this file on a page, then use a link (doesn't have to be absolute) like: <a href="http://www.musync.com/media/MP3s/007/heaven.mp3" 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", "top=40,left=40,width=300,height=100");        return false;      }    }  }}addLoadEvent(doPopups);