/* Filename:    J023_date_timeSuffix.js
 * Description: store.processData overload to include date and time as a suffix
 * Copyright:   2006 The Code Corporation. Please see http://www.codecorp.com/jsLicensing.html for information regarding copyright and grant of license.
 * $Revision: 118 $
 * $Date: 2006-12-05 16:26:51 -0700 (Tue, 05 Dec 2006) $
 */
include(".crx.js");        //overload .crx- Change .default.js to replace .crx.js with this file

store.oldprocessData = store.processData; //rename .crx function

//variables
var now = new Date();
var month = (now.getMonth() +1).toString();
var day = now.getDate().toString();
var year = now.getFullYear().toString();
var hours = now.getHours();
var min = now.getMinutes();
var sec = now.getSeconds();

//function to add date and time as a suffix
store.processData = function(data)
{
    if (store.processData !="");
    {
    data = data + "  \t" + month  + "-" + day + "-" + year + ";  " + hours + ":" + min + ":" + sec;
    }
    
return this.oldprocessData(data); //let the original onDecode function handle everything else.
}


//EOF
