/* <!--- http://www.dynamicdrive.com/forums/archive/index.php/t-17198.html ---> */
var disStyle=0;
var dom=document.getElementById||document.all;

function getItem(id) {
return document.getElementById&&document.getElementById(id)? document.getElementById(id) : document.all&&document.all[id]? document.all[id] : null;
}

if(dom){
document.write('<style type="text/css" id="dummy">\
.tlink{\
display:none;\
}\
<\/style>')}

/*if(dom&&typeof getItem('dummy').disabled=='boolean'){
document.write('<style type="text/css" id="showhide">\
.showhide{\
display:none;\
}\
#cdiv0 {\
display:block;\
}\
<\/style>');
disStyle=1;
}*/

function displayOne(idPrefix, idNum){
var i=0;
while (getItem(idPrefix+i)!==null){
getItem(idPrefix+i).style.display='none';
i++;
}
if (typeof idNum!=='undefined')
getItem(idPrefix+idNum).style.display='';
}


function clearframes(){
displayOne('cdiv', 0);
if (disStyle)
getItem('showhide').disabled=true;
}

onload=function(){
displayOne('cdiv', 0);
if (disStyle)
getItem('showhide').disabled=true;
}

