function ustawDate(r, m, d)
{
  var tfData = document.getElementById('tfData');
  if(tfData){
    m = m < 10 ? "0" + m : "" + m;
    d = d < 10 ? "0" + d : "" + d;
    tfData.value = r + "/" + m + "/" + d;
  }
}