/* Blankwin function written by Alen Grakalic, provided by Css Globe (cssglobe.com) please visit http://cssglobe.com/post/1281/open-external-links-in-new-window-automatically/ for more info */ this.blankwin = function(){ var hostname = window.location.hostname; hostname = hostname.replace("www.","").toLowerCase(); var a = document.getElementsByTagName("a"); this.check = function(obj){ var href = obj.href.toLowerCase(); if (href.indexOf("http://")!=-1 && href.indexOf(hostname)==-1) { return true; } else if (href.match(/\.pdf/) || href.indexOf("int_program")==-1) { return true; } else { return false; } }; this.set = function(obj){ obj.target = "_blank"; obj.className = "external"; }; for (var i=0;i