function Validar(){
	aInputs = document.getElementsByClassName("required");
	bError = false;
	for (i=0; i< aInputs.length; i++){
		if(aInputs[i].value == ""){
			aInputs[i].style.border = "1px solid #ff0000";
			aInputs[i].onfocus = function(){
				this.style.border = "";
			};
			bError = true;
		}
	}
	if(bError){
		$('error_display').style.display = 'block';
		return false;
	}else{
		return true;
	}
}