var explorer;
var netscape4;
var netscape6;
var theDOM, theSuffix, hiddenKeyword, dhtml;

if (document.all) {explorer = true;}
else if (document.layers) {netscape4 = true;} 
else {netscape6 = true;}

if(explorer){
theDOM = 'document.all';
theSuffix = '.style';
hiddenKeyword = 'hidden';
dhtml = true;
}

if(netscape4){
theDOM = 'document';
theSuffix = '';
hiddenKeyword = 'hide';
dhtml = true;
}

if (netscape6) {
theDOM = "document.getElementsByTagName('*')";
theSuffix = ".style";
hiddenKeyword = "hidden";
dhtml = true;
}

function showIt(theObject){
	if(dhtml){
		var theObjectReference = eval(theDOM + '.' + theObject + theSuffix);
		theObjectReference.visibility = 'visible';
		theObjectReference.display = 'block';
	}
}

function hideIt(theObject){
	if(dhtml){
		var theObjectReference = eval(theDOM + '.' + theObject + theSuffix);
		theObjectReference.visibility = hiddenKeyword;
		theObjectReference.display = 'none';
	}
}

function showOrHide(theObject){
    if(dhtml){
        var theObjectReference = eval(theDOM + '.' + theObject + theSuffix);
        if(theObjectReference.visibility == hiddenKeyword){
            theObjectReference.visibility = 'visible';
            theObjectReference.display = 'block';
        } else {
            theObjectReference.visibility = hiddenKeyword;
            theObjectReference.display = 'none';
        }
    }
}