/* - - - - - - - - - - - - - - - - - - - - - - -
 JavaScript
 October 18, 2006 11:38:43 AM
 - - - - - - - - - - - - - - - - - - - - - - - */


//Popup with global features
var WindowObjectReference = null; // global variable

function popper2(strUrl)
{
  if(WindowObjectReference == null || WindowObjectReference.closed)
  {
    WindowObjectReference = window.open(strUrl, "_blank",
           "left=10,top=10,width=700,height=700,toolbar=0,resizable=yes,scrollbars=1");
  }
  else
  {
    WindowObjectReference.focus();
  };
}

function showicons(div_id)
{
//alert('Div id:'+ div_id +'has been called');

document.getElementById(div_id).style = 'display: block';

}

function hideicons(div_id)
{

document.getElementById(div_id).style.display = 'none';

}

/// Hides or shows a div onclick
var state = 'hidden';

function showhide_div(layer_ref) {

if (state == 'visible') {
display = 'none';
state = 'hidden'; // Mac scrollbar workaround
}
else {
state = 'visible'; 
display = 'block'; // Mac scrollbar workaround
}

if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "document.all." + layer_ref + ".style.visibility = state");
eval( "document.all." + layer_ref + ".style.display = display"); // Mac scrollbar workaround
}
if (document.layers) { //IS NETSCAPE 4 or below
document.layers[layer_ref].visibility = state;
document.layers[layer_ref].display = display; // Mac scrollbar workaround
}
if (document.getElementById && !document.all) {
maxwell_smart = document.getElementById(layer_ref);
maxwell_smart.style.visibility = state;
maxwell_smart.style.display = display; // Mac scrollbar workaround
}
}

function popper(url,name,features) {
window.open(url,name,features);}
