function openWindow(url, name) {
  var l = openWindow.arguments.length;
  var w = "";
  var h = "";
  var features = "";

  for (i=2; i<l; i++) {
    var param = openWindow.arguments[i];
    if ( (parseInt(param) == 0) ||
      (isNaN(parseInt(param))) ) {
      features += param + ',';
    } else {
      (w == "") ? w = "width=" + param + "," :
       h = "height=" + param;
    }
  }

  features += w + h;
  var code = "popupWin = window.open(url, name";
  if (l > 2) code += ", '" + features;
  code += "')";
  eval(code);
  }
  
  
// email this page
var fileName = document.URL;
escapedFileName = escape(fileName);
function openemail()
{
var popurl="/wnet/heart/email_friend/email.html?"+escapedFileName;
winpops=window.open(popurl,"","width=400,height=365,status,");
}  

function GlossaryWindow(url){ 

definition = window.open("glossary/" + url, "Definition", "width=400,height=400,scrollbar=0,toolbar=0,directories=0,left=100,location=0,menubar=0,resizeable=0,status=0,top=100"); 
definition.focus();
}
