function TimestampToHuman(TmNow, TmSt, Eng, DateOnly)
{
    var Today = new Date(TmNow * 1000);
    var theDate = new Date(TmSt * 1000);    
    var Month = new Array(12);
    var FH;
    var FM;
    var Result = "";

    if(Eng) {
        Month[0] = "Jan";
        Month[1] = "Feb";
        Month[2] = "Mar";
        Month[3] = "Apr";
        Month[4] = "May";
        Month[5] = "Jun";
        Month[6] = "Jul";
        Month[7] = "Aug";
        Month[8] = "Sep";
        Month[9] = "Oct";
        Month[10] = "Nov";
        Month[11] = "Dec";
    } else {
        Month[0] = "ßíâ";
        Month[1] = "Ôåâ";
        Month[2] = "Ìàðò";
        Month[3] = "Àïð";
        Month[4] = "Ìàé";
        Month[5] = "Èþíü";
        Month[6] = "Èþëü";
        Month[7] = "Àâã";
        Month[8] = "Ñåí";
        Month[9] = "Îêò";
        Month[10] = "Íîÿ";
        Month[11] = "Äåê";
    }

    if(theDate.getHours().toString().length == 1) FH = "0" + theDate.getHours(); else FH = theDate.getHours();
    if(theDate.getMinutes().toString().length == 1) FM = "0" + theDate.getMinutes(); else FM = theDate.getMinutes();
    if(Today.getDate() != theDate.getDate() || Today.getMonth() != theDate.getMonth() || Today.getFullYear() != theDate.getFullYear()) Result = theDate.getDate() + " " + Month[theDate.getMonth()];
    if(Today.getFullYear() != theDate.getFullYear()) Result += " " + theDate.getFullYear();
    if(!DateOnly) {
        if(Result) Result += ",";
        Result += " " + FH + ":" + FM;
    }

    return Result;
} 
