function calendario(id,campdia,campmes,p_top,p_left) {
	this.id=id;
	this.campdia=campdia;
	this.campmes=campmes;
	this.mesany="";
	this.mostraoculta=function () { 
						Element.toggle($(this.id)); 
						if (Element.visible($('calenini'))||Element.visible($('calenfin')))
						Element.hide($('f2hide')); else Element.show($('f2hide'));
						
					  }
	this.update=function (mesany) { 
					this.mesany=mesany;
					c = new Ajax.Updater( this.id, '../include/calendario.php', { method: 'get', parameters: 'ido='+this.id+'&mesany='+mesany }); 
					delete c; 
				}
	this.clickdia=function (dia,mesany) {
						this.dia=dia;
						this.mesany=mesany;
						$(this.campdia).value=dia;
						$(this.campmes).value=mesany;
						this.mostraoculta();
				  }
	this.selectmesany=function (mesany) {
						this.update(mesany);
					  }	
	$(this.id).style.cssText += "display:block; position:absolute; top:"+p_top+"px; left:"+p_left+"px;";
	this.update('');
	this.mostraoculta();
}