/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function pippo(step1,step7){
  alert(step1);
  alert(step7);
  return 'true';
}

function allowFlash(value){
    alert(value);
    if (value == 'true')return 'auto';
    else return 'false';
}

function help() {  
  window.open('/ESAcademy/help.xhtml','','scrollbars=yes,menubar=no,height=600,width=900,resizable=yes,toolbar=no,location=no,status=no');
}

function selectSmall(button){    
    button.className = 'buttonSilverSmallClk';        
}
function selectMedium(button){    
    button.className = 'buttonSilverMediumClk';        
}
function selectLarge(button){    
    button.className = 'buttonSilverLargeClk';        
}
function selectHuge(button){    
    button.className = 'buttonSilverHugeClk';        
}

function markSmall(button){    
    button.className = 'buttonSilverSmallMrk';    
    /*button.style.borderColor='rgb(255,204, 0)';    */
}

function unmarkSmall(button){    
    button.className = 'buttonSilverSmall';    
    /*button.style.borderColor='rgb(99,136, 203)';    */
}

function markMedium(button){    
    button.className = 'buttonSilverMediumMrk';    
    /*button.style.borderColor='rgb(255,204, 0)';    */
}

function unmarkMedium(button){    
    button.className = 'buttonSilverMedium';    
    /*button.style.borderColor='rgb(99,136, 203)';    */
}

function markLarge(button){    
    button.className = 'buttonSilverLargeMrk';    
    /*button.style.borderColor='rgb(255,204, 0)';    */
}

function unmarkLarge(button){    
    button.className = 'buttonSilverLarge';    
    /*button.style.borderColor='rgb(99,136, 203)';    */
}
function markHuge(button){    
    button.className = 'buttonSilverHugeMrk';    
    /*button.style.borderColor='rgb(255,204, 0)';    */
}

function unmarkHuge(button){    
    button.className = 'buttonSilverHuge';    
    /*button.style.borderColor='rgb(99,136, 203)';    */
}

function markStepButton(button){
    button.style.color='#043284';
    button.style.fontWeight='bold';
}
function unmarkStepButton(button){
    button.style.color='#223049';
    button.style.fontWeight='normal'
}
function markLogoutButton(button){
    button.style.color='#043284';
    button.style.fontWeight='bold'
}
function unmarkLogoutButton(button){
    button.style.color='#223049';
    button.style.fontWeight='normal'
}

/*
  
 
function colorate(id,idMax){            
    alert(lockColor);
    
    var realId = 'j_id8:' + id;    
    var obj = document.getElementById(realId);

    var color = obj.style.backgroundColor;    
    if (((color == '#ffcc00')||(color == 'rgb(255, 204, 0)'))&&(lockColor == 'false')){        
          //mette il blu
          obj.style.backgroundColor = '#043284';                
    }
    else {
        //mette il giallo                
        obj.style.backgroundColor = '#ffcc00';
        
    }
    if (id != 'btntst1')colorate(id.substring(0,id.length-1) + (id.substring(id.length-1)-1));
    
}

function clean(id){    
    var realId = 'j_id8:' + id;    
    var obj = document.getElementById(realId);
   
    obj.style.backgroundColor = '#043284';    
    if (id != 'btntst1')clean(id.substring(0,id.length-1) + (id.substring(id.length-1)-1));
}

function uncolorate(id){          
     
    if (lockColor != 'true'){
      var realId = 'j_id8:' + id;    
      var obj = document.getElementById(realId);

      var color = obj.style.backgroundColor;    
      if ((color == '#ffcc00')||(color == 'rgb(255, 204, 0)'))obj.style.backgroundColor = '#043284';
      else obj.style.backgroundColor = '#ffcc00';    
      if (id != 'btntst1')uncolorate(id.substring(0,id.length-1) + (id.substring(id.length-1)-1));    
    }
}

function total(id){
    lockColor = 'true';
    var realId = 'j_id8:' + id;    
    var obj = document.getElementById(realId);
    
    obj.style.backgroundColor = '#ffcc00';    
    if (id != 'btntst1')total(id.substring(0,id.length-1) + (id.substring(id.length-1)-1));
}

*/


