/*<![CDATA[*/
var UrlUtil = {
	formatUrl: function (url, preventCaching, version){
		if(location.href.indexOf('http://') == -1){
			return url;
		}
		preventCaching = typeof(preventCaching) != 'undefined' ? preventCaching : false;
		version = typeof(version) != 'undefined' ? version : 0;
		if(preventCaching){
			if (url.indexOf('?') == -1) {
				url += '?';
			}
			url += '&scriptiris_unique_id=' + (new Date()).getTime();
		}
		if(version != 0){
			if (url.indexOf('?') == -1) {
				url += '?';
			}
			url += '&scriptiris_version_id=' + version;
		}
		return url;
	}
}
/*]]>*/
