  window.onload = function() {
    var links = document.getElementsByTagName("a");
    for (var i = 0; i < links.length; i++) {
      var rels = links[i].getAttribute("rel");
      if (rels) {
        var testpattern = new RegExp("external");
        if (testpattern.test(rels)) {
          links[i].onclick = function() {
            return !window.open(this.href);  
          }
        }
      }    
    }
  }
  
  
  function getInternetExplorerVersion()
// Returns the version of Windows Internet Explorer or a -1
// (indicating the use of another browser).
{
   var rv = -1; // Return value assumes failure.
   if (navigator.appName == 'Microsoft Internet Explorer')
   {
      var ua = navigator.userAgent;
      var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
      if (re.exec(ua) != null)
         rv = parseFloat( RegExp.$1 );
   }
   return rv;
   
}

var ver = getInternetExplorerVersion();

//window.alert(ver);
 if ( ver == 6.0 )
 
 {
 document.write('<div style="border: solid 2px #007800; width: 80%; background-color: #fff;"><h2>Incompatible browser version</h2>Please upgrade your browser to the latest version in order to view this website correctly. Alternatively please use another browser</div>');
 }

