function lon_encode(str) { if (str == null) {str = ""}; if (typeof(encodeURIComponent) == 'function') { return encodeURIComponent(str); } else { return escape(str); } } document.write(' ');