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;

function toggleAnon(thelink,normpath,divid,theid,thefolder,thefile,thedims) {
	
	descdiv = document.getElementById(divid+theid);

	thenewimg = '<img src="'+normpath+thefolder+'/'+thefile+'" alt="anonymous data"';
	if (thedims == 'yes') { 
		thenewimg += ' width="275" />';
	}else{
		thenewimg += ' />';
	}

	descdiv.innerHTML = thenewimg;
	document.getElementById(thelink+theid).style.display='none';

}