	function swapDisplay(object, displaied){ //v1.1
		var obj = document.getElementById(object);
		if (displaied == undefined) {
			if (obj.style.display == 'block') { obj.style.display = 'none'; } else { obj.style.display = 'block'; }
		} else {
			if (displaied) { obj.style.display = 'block'; } else { obj.style.display = 'none'; }
		}
	}

	/**
	* FUNCIONES STRING
	*/
	String.prototype.trim = function() {
		// s = s.replace(/\s+/gi, ' '); // sacar espacios repetidos dejando solo uno
		return this.replace(/^\s+|\s+$/g, '');
	}

	/**
	* FUNCIONES VALIDACION
	*/
	function isValidEmail(str) {
		return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
	}
