fnSetCounter = function (iReplaceStateCounter) {
		try {
			sessionStorage.setItem('iReplaceStateCounter', iReplaceStateCounter);
			sessionStorage.setItem('iReplaceStateCounterTimestamp', Date.now());
		} catch (e) {
			Log.info("SessionStorage not supported.");
		}
	}
Sets the counter to the given <code>iReplaceStateCounter</code> value in the session storage

@param {int} iReplaceStateCounter The counter value