﻿/*
 *    Legenda Begin
 */

function legenda_click(id)
{
	var todate = $(id + "_todate");
alert(todate.value);

}
 
function Legenda(id)
{
    this.Container = $(id);
    this.FromValue = $(id + "_from_value");
    this.ToValue = $(id + "_to_value");
    this.ResultsValue = $(id + "_results_value");
    this.FromDate = $(id + "_fromdate");
    this.ToDate = $(id + "_todate");
}

Legenda.prototype.SetFromValue = function(date)
{
    if (this.FromValue != null)
        this.FromValue.innerHTML = date;
    if (this.FromDate != null)
        this.FromDate.value = date;
}

Legenda.prototype.SetToValue = function(date)
{
    if (this.ToValue != null)
        this.ToValue.innerHTML = date;
    if (this.ToDate != null)
        this.ToDate.value = date;
}

Legenda.prototype.SetResultsValue = function(count)
{
    if (this.ResultsValue != null)
        this.ResultsValue.innerHTML = count;
}

/*
 *    Legenda End
 */