function Calendar(id, elemID, index, day, month, year, elemDay, elemMonth, elemYear, lowerLimit, upperLimit, defaultDelay, searchMinDelay, maxRange, selectIndexOnly, type, windowMainTable, defaultWindowWidthInc, defaultWindowHeightInc, divID, hideableElems)
{	
	this.id = String(id);
	this.elem = elemID;
	this.index = String(index);
	
	if (ValidObj(defaultDelay))
	{
		var dateAux = new Date();
		dateAux.setDate(dateAux.getDate() + Number(defaultDelay));
		
		var day = dateAux.getDate();
		var month = dateAux.getMonth();
		var year = dateAux.getFullYear();
	}
	
	this.defaultDay = Number(day);
	this.defaultMonth = Number(month);
	this.defaultYear = Number(year);		
	this.day = Number(day);
	this.month = Number(month);
	this.year = Number(year);
	
	this.elemDay = elemDay;
	this.elemMonth = elemMonth;
	this.elemYear = elemYear;		
	this.lowerLimit = Number(lowerLimit);
	this.upperLimit = Number(upperLimit);		
	
	this.searchMinDelay = searchMinDelay;
	this.maxRange = maxRange;
	this.selectIndexOnly = selectIndexOnly;
	
	// 0 - normal  1 - popup   2 - DIV
	this.type = type;
	
	this.windowMainTable = windowMainTable;
	this.defaultWindowWidthInc = defaultWindowWidthInc;
	this.defaultWindowHeightInc = defaultWindowHeightInc;
	
	this.divID = divID;
	this.hideableElems = hideableElems;
			
	return this;
}

