
function styleCalque(message) { 
    if (document.all) calqueStyle = document.all[message].style; 
    if (document.layers) calqueStyle = document.layers[message].style; 
    if (document.getElementById) calqueStyle = document.getElementById(message).style; 
    return calqueStyle; 
} 

function toggleBox(szDivID, iState) // 1 visible, 0 hidden
{
    styleCalque(szDivID).display = iState ? "block" : "none";
    switch(szDivID){
        case '1':
            if(iState == 1){ 
		        styleCalque('pixel1a').background = "#CC0000";
	            styleCalque('pixel1u').background = "#CC0000";
	            styleCalque('pixel2a').background = "#FF9900";
	            styleCalque('pixel2u').background = "#FF9900";
              	styleCalque('td'+szDivID+'a').background = "#CC0000";
              	styleCalque('td2a').background = "#FF9900";
              	
	    }         
        break;
        case '2':
            if(iState == 1){ 
				styleCalque('pixel1a').background = "#FF9900";
	            styleCalque('pixel1u').background = "#FF9900";
	            styleCalque('pixel2a').background = "#CC0000";
	            styleCalque('pixel2u').background = "#CC0000";
              	styleCalque('td'+szDivID+'a').background = "#CC0000";
    	      	styleCalque('td1a').background = "#FF9900";
	                          
            }         
        break;
        
        
    }
}

