var ns6=document.getElementById&&!document.all
var ie=document.all

function changeto(e,highlightcolor){
source=ie? event.srcElement : e.target
if (source.tagName=="TR"||source.tagName=="TABLE" ||source.tagName=="DIV")
return
// nella riga seguente se metto < source.tagName!="TD" > l'effetto ce l'ho solo sulla colonna
// se metto < source.tagName!="TR" > l'effetto è su tutta la riga
while(source.tagName!="TR" &&source.tagName!="HTML")
source=ns6? source.parentNode : source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}

function changetoxdiv(e,highlightcolor){
source=ie? event.srcElement : e.target
if (source.tagName=="TR"||source.tagName=="TABLE" ||source.tagName=="DIV")
return
// nella riga seguente se metto < source.tagName!="TD" > l'effetto ce l'ho solo sulla colonna
// se metto < source.tagName!="TR" > l'effetto è su tutta la riga
while(source.tagName!="DIV" &&source.tagName!="HTML")
source=ns6? source.parentNode : source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}

function contains_ns6(master, slave) {
while (slave.parentNode)
if ((slave = slave.parentNode) == master)
return true;
return false;
}

function changeback(e,originalcolor){
if (ie&&(event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore"))
return
else if (ns6&&(contains_ns6(source, e.relatedTarget)||source.id=="ignore"))
return
if (ie&&event.toElement!=source||ns6&&e.relatedTarget!=source)
source.style.backgroundColor=originalcolor
}

  function posiziona() {
  if (document.findform)  {
     document.findform.find.focus();
     document.findform.find.select();
     }
  if (document.editform)  {
     //document.editform.destinatario.focus();
     //document.editform.destinatario.select();
     }
  }

  function show(pagina) {
  w = window.open(pagina,'Customer','status=no,toolbar=no,menubar=no,location=no,height=800,width=600,scrollbars=no');
  w.moveTo(0,0);
  }

  function show2(pagina,larghezza, altezza) {
  w = window.open(pagina,'popup','status=no,toolbar=no,menubar=no,location=no,height='+altezza+',width='+larghezza+',scrollbars=no');
  w.moveTo(0,0);
  }

  function ShowHideInfo(id,id_liv_con_foto){
//  var el2=document.getElementById("id_liv_con_foto");
//  el2.style.display = "block" ;

   if(document.getElementById){
    var el=document.getElementById(id);
    el.style.display = (el.style.display=="block") ? "none" : "block";


    var el2=document.getElementById(id_liv_con_foto);
    el2.style.display = (el2.style.display=="block") ? "none" : "none";
   }

  }

  function ShowHide(id){
   if(document.getElementById){
    var el=document.getElementById(id);
    el.style.display = (el.style.display=="block") ? "none" : "block";
   }
  }


function credits(){
window.open("credits.htm","Credits","status=no,toolbar=no,menubar=no,location=no,height=220,width=350,scrollbars=no");
}

function showpag(pagina){
window.open(pagina,"info","status=yes,toolbar=no,menubar=no,location=no,height=600,width=800,scrollbars=no,resizable=yes");
}




