code: function preGenHash(sIdf, oStateData){
  			var sEncodedIdf = window.encodeURIComponent(sIdf);
  			var sEncodedData = window.encodeURIComponent(window.JSON.stringify(oStateData));
  			return sEncodedIdf + sIdSeperator + sEncodedData;
  		}
docs: This function encode the identifier and data into a string.
  
  @private