function externalLinks() { 

 if (!document.getElementsByTagName) return; 

 var anchors = document.getElementsByTagName("a"); 

 for (var i=0; i<anchors.length; i++) { 

   var anchor = anchors[i]; 

   if (anchor.getAttribute("href") && 

       anchor.getAttribute("rel") == "external") 

     anchor.target = "_blank"; 

 } 

}

var newWindow;
	function popup(URL,width,height) 
		{
			if(!newWindow || newWindow.closed )
				{
					newWindow = window.open(URL,'script','toolbar=0,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no,dependent=yes,width='+width+',height='+height+',left=60,top=60');
    newWindow.focus();
	}
	else
	{
		newWindow.resizeTo(width+12,height+30);
    newWindow.focus();
	}
}