// --------------------------------------------------------------------------
function CreateDate(str_date)
{
  if (str_date == "" || str_date == null) return new Date();
  arr_date = str_date.split(".");

  cur_year = arr_date[2];  
  if (arr_date[2].length == 2) 
    cur_year = "20" + arr_date[2];

  return new Date(cur_year, arr_date[1]-1, arr_date[0]);
}

// --------------------------------------------------------------------------
function FullDate(obj_date)
{
  Month = new Array("января", "февраля", "марта", "апреля", "мая", "июня",
                    "июля", "августа", "сентября", "октября", "ноября", "декабря");

  return obj_date.getDate() + " " + Month[obj_date.getMonth()] + " " + obj_date.getFullYear();
}
