/*
 * MapObject - The JavaScript Mapping Library.
 * http://MapObject.net
 * 
 * Copyright (c) 2006-2007, Mashup Technologies, LLC
 * All rights reserved.
 * http://www.MashupTechnologies.com
 * 
 * The JavaScript code distributed with Google Maps Samples (the "Software") is licensed under the
 * Lesser GNU (LGPL) open source license version 3.
 * 
 * http://www.gnu.org/licenses/lgpl.html
 * 
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 */

Ext.namespace('MapObject.util');
/**
* @class MapObject.util.Lang
* Utility class for language extensions
* @singleton
*/
MapObject.util.Lang = function(){

	//
	// Object namespace. Private properties go here.
	//

	
	//
	//	Public methods and constants
	//

	return {
		/**
		* check if value is set or not and is not empty
		* @param mix value to check
		* @return boolean
		*/
		isEmpty: function (value) {
			return !((typeof value != "undefined") && (value !== null) && (value != ""));
		},

		redirect: function (url) {
			window.location = url;
		}
	}
}(); // the parens here cause the anonymous function to execute and return



