// JavaScript Document
function ValidaTexto(varcampo){
  valor = document.getElementById(varcampo).value;
  if( valor == '' || /^\s+$/.test(valor)){
	  document.getElementById(varcampo).focus();
	  document.getElementById('span'+varcampo).style.display = "block";
	  return false;
  }else{ 
	  return true;
  }
}
function ValidaCorreo(varcampo){
    valor = document.getElementById(varcampo).value;	
  if(valor == "" || valor.indexOf("@") == -1|| valor.indexOf(".") == -1 ){
	document.getElementById(varcampo).focus();
	document.getElementById('span'+varcampo).style.display = "block";
	return false;
  }else{		
	return true;  
  }
}
function blurValidaTexto(varcampo){
  valor = document.getElementById(varcampo).value;
  if( valor == '' || /^\s+$/.test(valor)){
	  /*document.getElementById(varcampo).focus();*/
	  document.getElementById('span'+varcampo).style.display = "block";
	  return false;
  }else{ 
	  return true;
  }
}
function blurValidaCorreo(varcampo){
    valor = document.getElementById(varcampo).value;	
  if(valor == "" || valor.indexOf("@") == -1|| valor.indexOf(".") == -1 ){
	/*document.getElementById(varcampo).focus();*/
	document.getElementById('span'+varcampo).style.display = "block";
	return false;
  }else{		
	return true;  
  }
}