function UpdateTrainings() {
        /*** Configs ***/
        // note: month argument is zero-based. 5 -> June
        var INIT_DATE        = new Date(2007,5,28);
        var INIT_TRAINED     = 497960;
        var TRAINED_PER_DAY  = 148;


        var MSEC_PER_DAY     = 24*3600*1000;
        var elapsedDays      = 0;
        var trainedNow       = 0;
        var JMToday          = new Date();
        var ralph            = 0;

        elapsedDays = Math.floor( (JMToday - INIT_DATE) / MSEC_PER_DAY );

        // note: final contains the total traingings done and
        // its value can be assigned to any object you chose.

        ralph = Math.floor( INIT_TRAINED  + (elapsedDays * TRAINED_PER_DAY)  )

        //
        document.getElementById("counterDigits").innerHTML = ralph;

} // end of UpdateTraining function