  var historyBack = function() {
       if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { //test for MSIE x.x;
         var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
           if (ieversion<7) {
            history.back();
            return;
          }
      }

      var url      = new String(window.location);
      var pathname = window.location.pathname;
      var realpath = url.replace(pathname, '');
      var referrer = new String(document.referrer);

      if (referrer.match(realpath)) {
        history.go(-1);
      }

    };

 function initcontact() {   
    document.getElementById('contactlink').href = 'mailto:kjones@leisure-systems.com';
 }