function Jscalendario_resultados( div , loading , izq  ) { 
	
	this.izq = izq === true ?true:false  ; 
	try
	{
		this.div = $(div) 
		
	}
	catch (e)
	{
		this.div = null 
		return false 
	}
	
	try
	{
		this.div_loading = $(loading) 
		
	}
	catch (e)
	{
		this.div_loading = null 	
	}
	
	//alert( this.div)
	
	
}

Jscalendario_resultados.prototype.actualiza = function(dia) {
		if( !dia || this.div == null  )
			return false 
		if( this.div_loading != null  ) { 
			this.div_loading.setStyle( 'display' , 'block')
			//this.div_loading.setStyle( 'height' ,  )
			this.div.setStyle( 'display' , 'none')
		}
		//_class = this ; 
		/*new Ajax( '_calendario_resultados.php?dia=' + escape(dia)  ,
					  { method: 'post',
						update: this.div , onComplete: this.completado.bind(this) } ).request() ;*/
		if( this.izq )
			mi_url = '_calendario_resultados_izq.php'
		else 
			mi_url = '_calendario_resultados.php'
		

		new Request.HTML({ method: 'get',
						  url: mi_url
						  , update: this.div , 
						  onComplete: this.completado.bind(this) 
						}).send( 'dia=' + escape(dia) );
}

Jscalendario_resultados.prototype.completado = function() { 
		
		if( this.div_loading != null  ) { 
			this.div_loading.setStyle( 'display' , 'none')
			this.div.setStyle( 'display' , 'block')
		}
}
