//<!--
function ShowHide(id) {
  var itm = null;
  if (document.getElementById) {
	itm = document.getElementById(id);
  } else if (document.all){
	itm = document.all[id];
  } else if (document.layers){
	itm = document.layers[id];
  }
  if (!itm) {
   // do nothing
  }
  else if (itm.style) {
	if (itm.style.display == "none") {
	  itm.style.display = "";
	}
	else {
	  itm.style.display = "none";
	}
  }
  else {
	itm.visibility = "show";
  }
}

var _POPUP_FEATURES = 'location=0, statusbar=0, menubar=0, width=590, height=400';

function raw_popup(url, target) { 
  var theWindow = window.open(url, target, _POPUP_FEATURES);
  theWindow.focus();
  return theWindow;
}

function link_popup(src) {
  return
    raw_popup(src.getAttribute('href'),
    src.getAttribute('target') || '_blank');
}
//-->
