/**
 * Global Utility
 * @author: Adriano Di Pasquale 
 */

/**  
 * Set of global utilities 
 * @author Adriano Di Pasquale 
 */
var globalUtility = {
	nullFunction: function() {},

	isEmpty : function(value) {return(value == undefined || value.length == 0);},
	isNotEmpty : function(value) {return(value != undefined && value != '');},

	objDisable  : function(obj) {$(obj).style.cssText='display:none';},
	objEnable   : function(obj) {$(obj).style.cssText='';},
	objSetColor : function(obj,color) {$(obj).style.cssText='color:'+color;},

	DEBUG : function(str) {alert(str);},
	errorLevel : true,
	ERROR : function(str) {if(this.errorLevel) {alert('ERROR: ' + str);} }
};


/**  
 * Class responsible for StringBuffer tecnique.
 * @constructor
 * @author Adriano Di Pasquale 
 */
function StringBuffer() {
	this.__strings__ = new Array;
} 
StringBuffer.prototype.append = function (str) {
	this.__strings__.push(str);
};
StringBuffer.prototype.toString = function () {
	return this.__strings__.join("");
};
