function navAllInactive() {
oNav = document.getElementById('nav');
oLis = oNav.getElementsByTagName('LI');
for (i = 0; i < oLis.length; i++) {
oLis[i].className = '';
}}
function hideAllData() {
oData = document.getElementById('data');
oDivs = oData.getElementsByTagName('DIV');
for (i = 0; i < oDivs.length; i++) {
oDivs[i].style.display = 'none';
}}
function doShow(o, pageId) {
hideAllData();
navAllInactive();
o.className = 'active';
oData = document.getElementById(pageId);
oData.style.display = 'block';
return false;
}