
/**
 * Add trim method to string
 */
String.prototype.Trim = function(){
  	return this.replace(/(^\s*)|(\s*$)/g, "");
};

/**
 * Whether the txt is blank 
 * @param {Object} txt
 */
function isBlank(txt) {
	return /^\s*$/.test(txt);
};

/**
 * Logout trigger
 */
function logout() {
	Order.logout(function(data) {
		location.href = contextPath + "/j_spring_security_logout";
	});
};
