(function(window) {

	window.u = function(str) {
		if (typeof str=="string") {
			str = tools.ascii_remove_control_chars(str);
			str = tools.url_encode(str);
		}
		if (typeof str=="object") {
			str = tools.ascii_remove_control_chars_recursive(str);
			str = tools.url_encode_recursive(str);			
		}
		return str;
	}
	window.uu = function(str) {
		str = tools.ascii_remove_control_chars(str);
		str = tools.url_encode_extended(str);
		return str;
	}
	window._u = function(str) {
		str = tools.url_decode(str);
		return str;		
	}
	window._uu = function(str) {
		str = tools.url_decode_extended(str);
		return str;		
	}
	
})(window);