/**
 *	Makes a div visible or not
 *	@param string elementID The ID of the DIV we want to make visible or not
 *	@param boolean enable Make visible or hide
 */
function setDivVisibility(elementID, enable) {
	try {
		if(enable == true) {
			document.getElementById(elementID).style.display = "block";
		}
		else {
			document.getElementById(elementID).style.display = "none";
		}
	}
	catch(e) { }
}

/**
 *	Source: http://www.alistapart.com/articles/popuplinks/
 **/
var _POPUP_FEATURES = 'location=0,statusbar=1,scrollbars=1,menubar=0,width=500,height=500';

function raw_popup(url, target, features) {
  if (features == undefined) {
    features = _POPUP_FEATURES;
  }
  if (target == undefined) {
    target = '_blank';
  }
  var theWindow = window.open(url, target, features);
  theWindow.focus();
  return theWindow;
}

function link_popup(src, features) {
  return raw_popup(src.getAttribute('href'), src.getAttribute('target') || '_blank', features);
}
/* Eind */

