/*
 * Uncheck checkbox
 */
function uncheckAll(name){
	for (i = 0; i < name.length; i++){
		name[i].checked = false;
	}
}
/**
 * Funcion que cambia de color un input a segun el maximo de caracteres que debe tener otro input
 */
function changeColor(e, input, maxlength){
	var current = e.value.length;
	var percent = (current * 100) / maxlength;
	var color = (percent * 255) / 100;
	input.value = current;
	input.style.background = 'rgb(255,' + Math.round(255 - color) + ',' + Math.round(255 - color) + ')';
}