
function fnSwapBackGround(divid, newcolor)
{
	if(document.layers){ // browser="NN4"; 
		document.layers[divid].bgColor = newcolor; 
	} 
	if(document.all){ // browser="IE"; 
		document.all[divid].style.backgroundColor = newcolor; 
	} 
	if(!document.all && document.getElementById){ // browser="NN6+ or IE5+ if you're willing to dump the !document.all stuff"; 
		document.getElementById(divid).style.backgroundColor = newcolor; 
	} 
}



function toggleBox(szDivID, iState) // 1 visible, 0 hidden
{
    if(document.layers)	   //NN4+
    {
       document.layers[szDivID].visibility = iState ? "show" : "hide";
    }
    else if(document.getElementById)	  //gecko(NN6) + IE 5+
    {
        var obj = document.getElementById(szDivID);
        obj.style.visibility = iState ? "visible" : "hidden";
    }
    else if(document.all)	// IE 4
    {
        document.all[szDivID].style.visibility = iState ? "visible" : "hidden";
    }
}

