// ==== STANDARD DOM VARIABLES & FUNCTIONS ====
var structure, dispeq, closingb, showh, showv, displayB, displayN
structure = "document.getElementById('";
dispeq = "').style.display = ";
closingb = "')";
showh = "'hidden'";
showv = "'visible'";
displayB = "'block'";
displayN = "'none'";

function testElement(id)
{
 test = eval(structure +id + closingb);
 if (!test) {return false;}
 return true;
}

function showHideElement(elID,state)
{
 if (!testElement(elID)) {return;}
 var strDisp = ((state == 1) ? displayB : displayN);
 eval(structure + elID + dispeq + strDisp)
}

