/***********************************************
Java Scripts used for Ethics Quiz
***********************************************/

var currDivObj = null;

function showDIV(selObj) {
var divObj;
selValue = selObj.value;
if (document.getElementById) 
divObj = document.getElementById("div" + selValue);
else if(document.all)
divObj = document.all("div" + selValue);
else if (document.layers)
divObj = document.layers["div" + selValue];

if(document.getElementById || document.all){
if(currDivObj){
currDivObj.style.display = "none";
}
divObj.style.display = "block";
}
else if (document.layers) {
if(currDivObj){
currDivObj.visibility = "hidden";
}
divObj.visibility = "visible";
}
currDivObj = divObj;
hideDIV();
}

function hideDIV() {
var divObj;
if (document.getElementById) 
divObj = document.getElementById("divBTTN");
else if(document.all)
divObj = document.all("divBTTN");
else if (document.layers)
divObj = document.layers["divBTTN"];

if(document.getElementById || document.all){
if(currDivObj){
currDivObj.style.display = "block";
}
divObj.style.display = "none";
}
else if (document.layers) {
if(currDivObj){
currDivObj.visibility = "visible";
}
divObj.visibility = "hidden";
}
currDivObj = divObj;
}
