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

@private
This function encode the identifier and data into a string .
Generates a hash for the given state data