// JScript File
function MostraSezione(sez, txt){
    document.getElementById(txt + sez).style.display="block";
    ifun=0;
    for (ifun=0;ifun<=5;ifun++)
    {
        if(ifun!=parseInt(sez))
        {
            document.getElementById(txt + ifun).style.display="none";   
        }                     
    }   
    return false;       
}
function openwin(url, name, attr)
{	
    window.open(url, name, attr);
}


  
function addClassName(e,t) {
  if (typeof e == "string") {
      e = document.getElementById(e);
  }
  //code to change and replace strings
  var ec = ' ' + e.className.replace(/^s*|s*$/g,'') + ' ';
  var nc = ec;
  t = t.replace(/^s*|s*$/g,'');
  //check if not already there
  if (ec.indexOf(' '+t+' ') == -1) {
      //not found, add it
      nc = ec + t;
  }
  //return the changed text!
  e.className = nc.replace(/^s*|s*$/g,''); //trimmed whitespace
}



