function Utils() {

	this.addClass = function(el,cl) {
	
		classe = this.getClassName(el);
		
		if (!this.search(classe,cl)) {
		
			if (classe=="") {
				el.className =cl;
			} else {
				el.className+=" "+cl;
				}
		}
		
				
	}
	
	this.search = function(string,search) {
		
		return string.indexOf(search)>-1?true:false;
	
	}
	
	this.getClassName = function(el) {
	
		if (typeof el =="object") {
			
			return el.className;
			
		} else {
		
			return $(el).className;			
			
		}
	
	}
	
	this.removeSelection = function(el,tag) {
	
		element = tags(el,tag);
		
		for(var i=0;i<element.length;i++) {
		
			element.item(i).className = "";
			
		}
	}
	
	this.hideElement = function(obj) {
	
		$(obj).style.display = "none";
	}
	
	this.showElement = function(obj) {
	
		$(obj).style.display = "block";
	}
	
	this.trim = function(obj) {
		
		return obj.replace(/^\s+|\s+$/g, '');
	
	}
	
}
utils = new Utils();