/*
 * cg.js
 * Copyright (c) 2009, ComGate Interactive s.r.o. All rights reserved
 * Code licensed under the BSD License
 */

if (typeof CG == "undefined" || !CG) {
    var CG = {};
}

/*
 * JSON request/response handling code.
 */
CG.Json = {};

/**
 * Class representing incoming Json response.
 */
CG.Json.Response = function(payload) {
	
}

/**
 * Gets random token based on system time.
 * @param suffix		token value suffix
 */
CG.Json.getRandomToken = function(suffix) {
	var strToken = new Date().getTime();
	if(suffix != null)
		strToken = strToken + '_' + suffix;
	
	return strToken;
}
