function openWin(url)
{
  //Set height, width, and window positions according to the screen size.
  if ( window.screen.width > 800 ){
    var height = screen.availHeight - 300;
    var width = screen.availWidth - 300;
  } else {
    var height = screen.availHeight - 80;
    var width = screen.availWidth - 60;
  }
	
  var top = (screen.availHeight - height) / 2;
  var left = (screen.availWidth - width) / 2;
  var scr_deco = "height=" + height + ",width=" + width + ",top=" + top + ",left=" + left;

  var deco = scr_deco + ",scrollbars=no,toolbars=no,resizable=yes,location=no,directories=no,status=no";
  modalWin = window.open(url, "modalwin", deco);
}

function selectMenuItem(sel){
  if (sel.selectedIndex > 0){
    window.location = sel.options[sel.selectedIndex].value;
  }
}

function toggleViz(elID, viz_disp){
  if(document.getElementById(elID).style.display == viz_disp){
    document.getElementById(elID).style.display = "none";
  } else {
    document.getElementById(elID).style.display = viz_disp;
  }
}

function toggleViz_v2(elID,viz_disp){
  if(document.getElementById(elID).style.display == 'none'){
    document.getElementById(elID).style.display = viz_disp;
  } else {
    document.getElementById(elID).style.display = 'none';
  }
}

