
/************************************************************************
'	PROCEDURE DI INIZIALIZZAZIONE DELLA PAGINA  ---FINE---
************************************************************************/
function Data() {
now = new Date();
   yyyy = now.getYear();
            mm = now.getMonth();
           gg = now.getDate(); 
Data = gg + "/" + mm + "/" + yyyy;
return(Data);
} 
var xxx_CampoData;
function GestioneCalendario(CampoData)
{
	//var GiornoScelto=showModalDialog('/Macrofunzioni/Utility/calendario.htm','','status=0;dialogWidth=187pt;dialogHeight=205pt;help:no;');
	xxx_CampoData = CampoData;
	window.open("/Macrofunzioni/Utility/calendario.html","","width=215pt, height=215pt, status=yes,toolbar=no,menubar=no,location=no");
	/*if ((GiornoScelto!=null) && (GiornoScelto!='')) 
		{ 
		 document.getElementById(CampoData).value = GiornoScelto;
		 if (arguments[1]) Converti(GiornoScelto,arguments[1]);
		 }*/
}

function arci(pippo){
    var GiornoScelto=pippo;
    if ((GiornoScelto!=null) && (GiornoScelto!='')) 
		{ 
		 document.getElementById(xxx_CampoData).value = GiornoScelto;
		 if (arguments[1]) Converti(GiornoScelto,arguments[1]);
		 }
}

function Converti(DataDaConvertire,CampoData)
{
 var stringadata,gg,mm,yyyy;
 stringadata= DataDaConvertire;
 gg=stringadata.substr(0,2);
 mm=stringadata.substr(3,2);
 yyyy=stringadata.substr(6,4); 
 document.getElementById(CampoData).value=gg+"/"+mm+"/"+yyyy;
}




