<!-- Javascript Function for XHTML Compliant External Windows -->
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"; 
 } 
}
<!-- Javascript Function for Showing and Hiding DIV's -->
function toggleLayer(id){
	if (document.getElementById){
	obj = document.getElementById(id);
	if (obj.style.display == "none"){
		obj.style.display = "block";
	} else {
		obj.style.display = "none";
	}
	}
}
<!-- Javascript Function for Popup Window Open -->
function popup(targeturl){
window.open(targeturl,"","resizable=yes,scrollbars=yes,width=600,height=400")
}
<!-- Javascript Function for CSS Styleswitcher -->
function setActiveStyleSheet(title) {
  var i, a, main;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
      a.disabled = true;
      if(a.getAttribute("title") == title) a.disabled = false;
    }
  }
}


<!-- Javascript "onload" Window Events -->
window.onload = function()
{
  externalLinks();<!--External Links-->
}