
function MenuImage(ogg, nome, quale) { 
	ogg.style.background = 'url(images/'+nome+'_'+quale+'.png) no-repeat 0 0px';
}
function Gox(coc) {window.location.href='index.php?pp='+coc;}
function Goxy(coc,width) {window.location.href='index.php?pp='+coc+'&newsize='+width;}  // Usata per ridimensionare l'editor 
function Goxk(coc,width) {window.location.href='index.php?pp='+coc+'&newtipo='+width;}  // Usata per ridimensionare l'editor 
function Goxy2(coc,id) {window.location.href='index.php?pp='+coc+'&idtml='+id;}         // Usata per caricare un template nell'editor
function Calendario(campo,td) {
   var dt=document.getElementById(campo).value;
   var h=155;
   if(td=='dt'){h=175;}
   myWindow = window.open('calendario_pop.php?cm=d1.'+campo+'&dt='+dt+'&td='+td,'Finestra','toolbar=no,scrollbars=no,resizable=no,directories=no,menubar=no,status=no,width=183,height='+h);
}
function FileUp(tipo) {
   var h=100; if(tipo=='F'){h=200;}
   myWindow = window.open('allega_file.php?tipo='+tipo,'Finestra2','toolbar=no,scrollbars=no,resizable=no,directories=no,menubar=no,status=no,width=300,height='+h);
}
function FileDel(id,n) {
   myWindow = window.open('allega_del.php?id='+id+'&n='+n,'Finestra3','toolbar=no,scrollbars=no,resizable=no,directories=no,menubar=no,status=no,width=300,height=100');
}
function FileLink(tipo,n) {
  axLoader('allega_link.php?tipo='+tipo+'&n='+n,'allegati');
}
function Elimina(tbl,id) {
   myWindow = window.open("","Conferma","toolbar=no,scrollbars=no,resizable=no,directories=no,menubar=no,status=no,width=300,height=50");
   myWindow.document.open();
   myWindow.document.write('<HTML><HEAD><TITLE>Conferma elimina</TITLE></HEAD>');
   myWindow.document.write('<BODY bgcolor=#ffffff link=#000000 text=#000000 vlink=#000000 alink=#000000>');
   myWindow.document.write('<center><br><FORM name=d1 METHOD=POST action="elimina.php?tbl='+ tbl +'&id='+ id +'">');
   myWindow.document.write('<input type=submit value="Elimina">');
   myWindow.document.write('</FORM></center></BODY></HTML>');
   myWindow.document.close();
   myWindow.focus()
}
function checkMail(mail) {
  return checkEmail(email);
}
function checkDate(data){
  return checkData(data);
}

