function popUp(URL, height, width) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=yes,left=200,top=200,height=' + height + ',width=' + width);");
}

function show_hide(loc, id, show) {
	if(document.getElementById){
		var foc=loc.firstChild;
		foc=loc.firstChild.innerHTML?loc.firstChild:loc.firstChild.nextSibling;
		foc.innerHTML=foc.innerHTML=='[+]'?'[-]':'[+]';
		
		var myEffect = new fx.Height(id , {duration: 500, onComplete: function()
		  {
		  	//code that runs after the show hide completes..
		    //alert('the effect is completed');
		  }
		});
		
		myEffect.toggle();
	}
}

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";
 }
}
window.onload = externalLinks;
