  function ProcessCalendar(y,m,dfield)
  {
     if (http == null) http =createObject();
	 var filtrub=document.frmFilter.filtRUB.value;	
     // Set te random number to add to URL request
     nocache = Math.random();
     http.open('get',  global_base_path+'ajaxrout.php?routtip=lentacalendar&year='+y+'&month='+m+'&datefield='+dfield+'&filtrub='+filtrub+'&nocache='+nocache);
     http.onreadystatechange = inProcessCalendarReply;
     http.send(null);
  }

  function ProcessCalendarField(dfield,dat,d,m,y)
  {
    document.frmFilter.cday.value=d;
    document.frmFilter.cmonth.value=m;
    document.frmFilter.cyear.value=y;
  }

  function inProcessCalendarReply()
  {
    if(http.readyState == 4)
    {
     var response = http.responseText;
     document.getElementById('lenta_calendar').innerHTML = response;
    }
  }

