function value(s) {
// ************************************************************************************ 
// Given string s, find the object with id=s and return its value 
// ************************************************************************************ 
var o = document.getElementById(s); 
return o.value; } 

var toggle=true;
function show(s) {
// ************************************************************************************
// Given string s, find object with id=s and set its display attribute to "block"
// ************************************************************************************
o = document.getElementById(s);
if (toggle==true)
{
 if (o) {o.style.display = "block";}
 toggle=false;
}
else
{
 if (o) {o.style.display = "none";}
 toggle=true;
}
}

//HIDE ORIGINAL show()
//function show(s) {
// ************************************************************************************
// Given string s, find object with id=s and set its display attribute to "block"
// ************************************************************************************
//o = document.getElementById(s);
//if (o) {o.style.display = "block";} }

function hide(s) { 
// ************************************************************************************ 
// Given string s, find object with id=s and set its display attribute to "none" 
// ************************************************************************************ 
o = document.getElementById(s); 
if (o) {o.style.display = "none";} } 

function showHide(s, doShow) {
// ************************************************************************************ 
// Given string s and boolen doShow, find object with id=s and set its display 
// attribute to "none" if doShow is 0, else set it to "block" 
// ************************************************************************************ 
//alert('Being asked to set ' + s + ' to ' + doShow); 
if (doShow==0) { hide(s); } 
else { show(s); } }
 
function showHideDiv(layer_ref,onOff) { 
// ************************************************************************************ 
// Show or hide a div tag and encapsulated html 
// ************************************************************************************ 
if (onOff == '0') { state = 'none'; } 
else { state = 'block'; } 
if (document.all) { 
//IS IE 4, 5 , 6. Need to check 7 
eval("document.all." + layer_ref + ".style.display = state"); } 
if (document.layers) { 
//IS NETSCAPE 4 or below 
document.layers[layer_ref].display = state; } 
if (document.getElementById && !document.all) 
{ maxwell_smart = document.getElementById(layer_ref); maxwell_smart.style.display = state; } } 

