function PrSch(url){myWindow = window.open(url,'scheda','toolbar=no,scrollbars=yes,resizable=no,directories=no,menubar=no,status=no,width=610,height=550');}
function PrZoo(vurl){axLoader('scripts/scheda_img_zoom.php?'+vurl,'ImgZommy'); document.getElementById('ImgZommy').style.display="block";}
function PrZooH(){document.getElementById('ImgZommy').innerHTML="&nbsp;"; document.getElementById('ImgZommy').style.display="none";}

function CatOn(id){ document.getElementById("DIVcat"+id).className='CategBoxON'; document.getElementById("TDcat"+id).className='CategTxtON'; }
function CatOff(id){ document.getElementById("DIVcat"+id).className='CategBox'; document.getElementById("TDcat"+id).className='CategTxt'; }

function CrImgOff(id){ document.getElementById("CrI"+id).src='images/carr-off.png'; document.getElementById("CrTD"+id).className='TDoff';}
function CrImgOn(id){ document.getElementById("CrI"+id).src='images/carr-on.png';  document.getElementById("CrTD"+id).className='TDon';}

function ScImgOff(id,s){ document.getElementById("ScI"+id).src='images/scheda_'+s+'.gif'; document.getElementById("ScTD"+id).className='TDoff';}
function ScImgOn(id){ document.getElementById("ScI"+id).src='images/scheda_on.gif'; document.getElementById("ScTD"+id).className='TDon';}

function CrrImgOff(id){ document.getElementById("CrrI"+id).src='images/cestino-off.gif'; document.getElementById("CrrTD"+id).className='TDoff';}
function CrrImgOn(id){ document.getElementById("CrrI"+id).src='images/cestino-on.gif';  document.getElementById("CrrTD"+id).className='TDon';}

function SchedaImgChange(bodys){ 
  var imgs=bodys.split("||LKJ||");
  document.getElementById("scbigimg").innerHTML=imgs[0];
  document.getElementById("scfotine").innerHTML=imgs[1];
}
function ShowFormDesty(id,id2){
  var vall=document.getElementById(id2).value;
  var divv=document.getElementById(id);
  if(vall=='C2'){divv.style.display="block"}else{divv.style.display="none"}
}
function ShowHideRegme() {
  var rdo=document.getElementById('B2B2');
  var regm=document.getElementById('reg_mediv');
  if(rdo.checked==true){regm.style.display="block"}else{regm.style.display="none"}
}
function ShowHide(id) {
  var divv=document.getElementById(id);
  divv.style.display=(divv.style.display=="block") ? "none" : "block";
}
function PagBanca(url){window.location.href=url;}
