function displayEntry(id) {
   if (! id) return;
   //self.location = null;
   location =  self.location + '&VIEW=Extended#' + id;
   //var here = parent.location + '';
   //if (here.match(/VIEW=/)) {
   //   parent.location =  here.replace(/Extended/g,'Compact');
   //} else {
   //   parent.location =  here.replace(/\?/,'?VIEW=Extended&');
   //}
}

function openc(url,width,height) {
   var featureString = ',resizable=yes,scrollbars=yes,dependent=yes,toolbars=no,status=no';
   var x = Math.round((screen.availWidth - width) / 2);
   var y = Math.round((screen.availHeight - height) / 2);
   featureString = 'left=' + x + ',top=' + y + ',width=' + width + ',height=' + height + featureString;
   window.open(url, 'Window', featureString);
   return;
}

function showHelp(id) {
   var tid = document.getElementById(id);
   if (tid.style.display == 'none') {
      tid.style.display = 'block';
   } else { 
      tid.style.display = 'none';
   }
}

function viewImage(url) {
   openc(url,500,350);
   return;
}

function wahhh(domain, user) {
  // protocol
  var p = "\u006d\u0061\u0069\u006c\u0074\u006f\u003a";
  // usename
  var u = user;
  
  // domain name (host name sans machine name)
  var d = domain ||
          location.host.substring(
            location.host.lastIndexOf(
              ".",
              location.host.lastIndexOf(".") - 1
            ) + 1
          );

  void(top.location = p + u + "\u0040" + d);
  return false;
}


