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";
    }

   if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "shareholdershelppopup") {
     anchor.onkeypress = function(){ window.open('http://miranda.hemscott.com/helppages/majorshareholders.htm', 'CtrlWindow', 'toolbar=no,menubar=no,height=420,width=580,location=no,scrollbars=yes,resizable=no,status=no,left=100,top=100');return false;}
     anchor.onclick = function(){window.open('http://miranda.hemscott.com/helppages/majorshareholders.htm', 'CtrlWindow', 'toolbar=no,menubar=no,height=420,width=580,location=no,scrollbars=yes,resizable=no,status=no,left=100,top=100');return false;}
     anchor.setAttribute("href","#");
     }
	 
	  if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "charthelp") {
         anchor.onkeypress = function(){window.open('http://miranda.hemscott.com/helppages/gifgraphs.htm', 'ChartHelp', 'toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,status=no,height=580,width=600');return false;}
         anchor.onclick = function(){window.open('http://miranda.hemscott.com/helppages/gifgraphs.htm', 'ChartHelp', 'toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,status=no,height=580,width=600');return false;}
         anchor.setAttribute("href","#");
    }

    if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "news-item") {
         anchors[i].onkeypress = function(){ window.open(this.href, 'NewsItem', 'toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,status=no,height=650,width=800');return false;}
         anchors[i].onclick = function(){window.open(this.href , 'NewsItem', 'toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,status=no,height=650,width=800');return false;}
    }


   if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "legaldisclaimer") {
         anchors[i].onkeypress = function(){window.open(this.href, 'Legal Disclaimer', 'toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,status=no,height=500px,width=638px');return false;}
         anchors[i].onclick = function(){window.open(this.href, 'dis', 'toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,status=no,height=500px,width=638px');return false;}
    }

 

   if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "disclaimer") {
      var disclaimerURL = anchor.getAttribute('href');
      anchor.onkeypress = function(){window.open(disclaimerURL, 'CtrlWindow', 'toolbar=no,menubar=no,height=505,width=638,location=no,scrollbars=yes,resizable=no,status=no,left=100,top=100');return false;}
      anchor.setAttribute("href","#");
      anchor.onclick = function(){window.open(disclaimerURL, 'CtrlWindow', 'toolbar=no,menubar=no,height=505,width=638,location=no,scrollbars=yes,resizable=no,status=no,left=100,top=100');return false;}
      anchor.setAttribute("href","#");
      }
	  
	
	 if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "maphowtofindus") {
         anchor.onkeypress = function(){window.open('/ir/mgns/images/map.gif', 'maphowtofindus', 'toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,status=no,height=412,width=555');return false;}
         anchor.onclick = function(){window.open('/ir/mgns/images/map.gif', 'maphowtofindus', 'toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,status=no,height=412,width=555');return false;}
         anchor.setAttribute("href","#");
    }
	
	 if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "JohnMorgan") {
         anchor.onkeypress = function(){window.open('/ir/mgns/images/directors/John_Morgan_large.jpg', 'JohnMorgan', 'toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,status=no,width=500,height=600');return false;}
         anchor.onclick = function(){window.open('/ir/mgns/images/directors/John_Morgan_large.jpg', 'JohnMorgan', 'toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,status=no,width=500,height=600');return false;}
         anchor.setAttribute("href","#");
    }
	
	 if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "PaulSmith") {
         anchor.onkeypress = function(){window.open('/ir/mgns/images/directors/Paul_Smith_large.jpg', 'PaulSmith', 'toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,status=no,width=500,height=600');return false;}
         anchor.onclick = function(){window.open('/ir/mgns/images/directors/Paul_Smith_large.jpg', 'PaulSmith', 'toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,status=no,width=500,height=600');return false;}
         anchor.setAttribute("href","#");
    }
	
	 if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "DavidMulligan") {
         anchor.onkeypress = function(){window.open('/ir/mgns/images/directors/David_Mulligan_large.jpg', 'DavidMulligan', 'toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,status=no,width=500,height=483');return false;}
         anchor.onclick = function(){window.open('/ir/mgns/images/directors/David_Mulligan_large.jpg', 'DavidMulligan', 'toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,status=no,width=500,height=483');return false;}
         anchor.setAttribute("href","#");
    }
	
	 if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "PaulWhitmore") {
         anchor.onkeypress = function(){window.open('/ir/mgns/images/directors/Paul_Whitmore_large.jpg', 'PaulWhitmore', 'toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,status=no,width=500,height=649');return false;}
         anchor.onclick = function(){window.open('/ir/mgns/images/directors/Paul_Whitmore_large.jpg', 'PaulWhitmore', 'toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,status=no,width=500,height=649');return false;}
         anchor.setAttribute("href","#");
    }
	
	 if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "BernardAsher") {
         anchor.onkeypress = function(){window.open('/ir/mgns/images/directors/Bernard_Asher_large.jpg', 'BernardAsher', 'toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,status=no,width=500,height=606');return false;}
         anchor.onclick = function(){window.open('/ir/mgns/images/directors/Bernard_Asher_large.jpg', 'BernardAsher', 'toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,status=no,width=500,height=606');return false;}
         anchor.setAttribute("href","#");
    }
	
	if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "GillBarr") {
         anchor.onkeypress = function(){window.open('/ir/mgns/images/directors/Gill_Barr_large.jpg', 'GillBarr', 'toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,status=no,width=500,height=611');return false;}
         anchor.onclick = function(){window.open('/ir/mgns/images/directors/Gill_Barr_large.jpg', 'GillBarr', 'toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,status=no,width=500,height=611');return false;}
         anchor.setAttribute("href","#");
    }
	
	if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "JonWalden") {
         anchor.onkeypress = function(){window.open('/ir/mgns/images/directors/Jon_Walden_large.jpg', 'JonWalden', 'toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,status=no,width=500,height=675');return false;}
         anchor.onclick = function(){window.open('/ir/mgns/images/directors/Jon_Walden_large.jpg', 'JonWalden', 'toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,status=no,width=500,height=675');return false;}
         anchor.setAttribute("href","#");
    }
	
	if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "GeraldineGallacher") {
         anchor.onkeypress = function(){window.open('/ir/mgns/images/directors/Geraldine_Gallacher_large.jpg', 'GeraldineGallacher', 'toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,status=no,width=500,height=528');return false;}
         anchor.onclick = function(){window.open('/ir/mgns/images/directors/Geraldine_Gallacher_large.jpg', 'GeraldineGallacher', 'toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,status=no,width=500,height=528');return false;}
         anchor.setAttribute("href","#");
    }
	

}
}
window.onload = externalLinks;

