function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { oldonload(); func(); } } } if (!Array.prototype.push) Array.prototype.push = function() { for (var i=0; i' + elem.innerHTML; } var _POPUP_FEATURES = "location=0,width=700,height=900"; function make_popup(alink) { alink.onclick = function() { width = (window.outerWidth || window.screen.availWidth) * .75 height = (window.outerHeight || window.screen.availHeight) * .75 target = alink.getAttribute('target') || '_blank' window.open(alink.href, target, "width="+width+",height="+height+",menubar,resizable,location,scrollbars,status,toolbar"); return false; } //debug(alink.onclick); } function addPopups() { links = getElementsByClass("popup", "a"); for(var counter = 0; counter < links.length; counter++) { make_popup(links[counter]); } } addLoadEvent(addPopups);