CDateTime.prototype.HTML
=//=====================
function ()
{

	var sDay = "giorno";
	var sMonth = "mese";
	var sYear = "anno";
	var sHours = "ore";
	var sMinutes = "minuti";
	var sSeconds = "secondi";
	if (this.lang.toUpperCase() != "IT")
	{
		this.lang = "GB";
		sDay = "day";
		sMonth = "month";
		sYear = "year";
		sHours = "hours";
		sMinutes = "minutes";
		sSeconds = "seconds";
	}
		
	var HTML = '<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 CLASS="'+ this.cls +'-clsTABLE" ID="'+ this.id +'_idTABLE"><TR>';
	var disabled = this.disabled ? "DISABLED" : "";
	if (this.type == "date" || this.type == "datetime")
	{
		HTML += '\n<TD CLASS="'+ this.cls +'-clsFont '+ this.cls +'-clsTD-day" NOWRAP>';
		HTML += '<INPUT NAME="' + this.id + '_idINPUT_day" TYPE="text" CLASS="'+ this.cls +'-clsFont '+ this.cls +'-clsINPUT" ID="'+ this.id +'_idINPUT_day" VALUE="'+ this.day +'" TITLE="'+ sDay +'" MAXLENGTH=2 '+ disabled +'></TD>';
		HTML += '<TD CLASS="'+ this.cls +'-clsFont '+ this.cls +'-clsTD-datesep" NOWRAP>/</TD>';
		HTML += '\n<TD CLASS="'+ this.cls +'-clsFont '+ this.cls +'-clsTD-month" NOWRAP>';
		HTML += '<INPUT NAME="' + this.id +'_idINPUT_month" TYPE="text" CLASS="'+ this.cls +'-clsFont '+ this.cls +'-clsINPUT" ID="'+ this.id +'_idINPUT_month" VALUE="'+ this.month +'" TITLE="'+ sMonth +'" MAXLENGTH=2 '+ disabled +'></TD>';
		HTML += '<TD CLASS="'+ this.cls +'-clsFont '+ this.cls +'-clsTD-datesep" NOWRAP>/</TD>';
		HTML += '\n<TD CLASS="'+ this.cls +'-clsFont '+ this.cls +'-clsTD-year" NOWRAP>';
		HTML += '<INPUT NAME="' + this.id +'_idINPUT_year" TYPE="text" CLASS="'+ this.cls +'-clsFont '+ this.cls +'-clsINPUT" ID="'+ this.id +'_idINPUT_year" VALUE="'+ this.year +'" TITLE="'+ sYear +'" MAXLENGTH=4 '+ disabled +'></TD>';
		if (IE)
		{
			HTML += '<TD CLASS="'+ this.cls +'-clsFont '+ this.cls +'-clsTD-picksep" NOWRAP>&nbsp;</TD>';
			HTML += '<TD CLASS="'+ this.cls +'-clsFont '+ this.cls +'-clsTD-pickdate" NOWRAP>';
			HTML += '<INPUT TYPE=button CLASS="clsINPUT-ellipses" ID="'+ this.id +'_idBUTTON_pickdate" HIDEFOCUS VALUE="..." '+ disabled +' onclick="'+ this.id + '.bindCalendar();">';
			HTML += '<INPUT type=button CLASS="clsINPUT-cancel" HIDEFOCUS VALUE="X" onclick="'+ this.id +'.cancel();"></TD>';
		}
	}
	if (this.type == "datetime")
		HTML += '<TD CLASS="'+ this.cls +'-clsFont '+ this.cls +'-clsTD-datetimesep" NOWRAP>&nbsp;</TD>';
	if (this.type == "time" || this.type == "datetime")
	{
		HTML += '\n<TD CLASS="'+ this.cls +'-clsFont '+ this.cls +'-clsTD-hour" NOWRAP>';
		HTML += '<INPUT TYPE="text" CLASS="'+ this.cls +'-clsFont '+ this.cls +'-clsINPUT" ID="'+ this.id +'_idINPUT_hour" VALUE="'+ this.hour +'" TITLE="'+ sHours +'" MAXLENGTH=2 '+ disabled +'></TD>';
		HTML += '<TD CLASS="'+ this.cls +'-clsFont '+ this.cls +'-clsTD-timesep" NOWRAP>:</TD>';
		HTML += '\n<TD CLASS="'+ this.cls +'-clsFont '+ this.cls +'-clsTD-min" NOWRAP>';
		HTML += '<INPUT TYPE="text" CLASS="'+ this.cls +'-clsFont '+ this.cls +'-clsINPUT" ID="'+ this.id +'_idINPUT_min" VALUE="'+ this.min +'" TITLE="'+ sMinutes +'" MAXLENGTH=2 '+ disabled +'></TD>';
		HTML += '<TD CLASS="'+ this.cls +'-clsFont '+ this.cls +'-clsTD-timesep" NOWRAP>:</TD>';
		HTML += '\n<TD CLASS="'+ this.cls +'-clsFont '+ this.cls +'-clsTD-sec" NOWRAP>';
		HTML += '<INPUT TYPE="text" CLASS="'+ this.cls +'-clsFont '+ this.cls +'-clsINPUT" ID="'+ this.id +'_idINPUT_sec" VALUE="'+ this.sec +'" TITLE="'+ sSeconds +'" MAXLENGTH=2 '+ disabled +'></TD>';
	}	
	HTML += '</TR></TABLE>';
	return HTML;
	
	
}


CDateTime.prototype.focus
=//========================
function ()
{
	document.getElementById(this.id+"_idINPUT_day").focus();
}
