function pop_me_up(pURL, features) { 
  new_window = window.open(pURL, "popup_window", features);
  new_window.focus();
}	 

function pop_me_up2(pURL, name, features) {
  new_window = window.open(pURL, name, features);
  new_window.focus();
}

function img_popup_noborder(imgURL, name, pictitle, features) {
  var w = window.open('', name, features);
  w.document.body.style.margin="0px";
  
  if (! w.document.getElementById('pic') ) {
    var img = w.document.createElement('img');
    img.id = 'pic';
    img.src = imgURL;
    img.border=0;
    w.document.body.appendChild(img);
  }
  w.document.title = pictitle;
  w.focus();
}

function showhide(id) {
  var e = document.getElementById(id);
  if (!e) { return; }
    
  if (e.style.display === "block") { e.style.display = "none"; }
  else { e.style.display = "block"; }
}

