//___________________________________________________________________________________________________________________________
//	  			 			                     BLOQUEAR EL BOTON DERECHO Y LA SELECCION	
//___________________________________________________________________________________________________________________________

	document.onselectstart = selecionar; 
	document.oncontextmenu = menu_Derecho; 
	
	function selecionar() { 
		return false; 
	} 
	
	function menu_Derecho() { 
		return false 
	}
//___________________________________________________________________________________________________________________________


//___________________________________________________________________________________________________________________________
//	  			 			                     CAPTURA SOLO LETRAS CON ESPACIO EN BLANCO 	
//___________________________________________________________________________________________________________________________
	
	var caracter = window.Event ? true : false; 
	
	function esLetraB(evento){ //	function alfanumerico(evento){ 
		if (caracter) 
			var tecla = evento.which; 
		else 
			var tecla = evento.keyCode; 
		return (tecla == 32 || (tecla >= 65 && tecla <= 90) || (tecla >= 97 && tecla <= 122) || tecla == 209 || tecla == 241); 
		 
	} // funtion 
	
// 	NOTA :  A-Z 65 al 90, a-z : 97 al 122, ñ = 209, Ñ = 241, espacios en blanco 32	
//___________________________________________________________________________________________________________________________
	
//___________________________________________________________________________________________________________________________
//	  			 			                     CAPTURA SOLO LETRAS SIN ESPACIO EN BLANCO
//___________________________________________________________________________________________________________________________
	
	var caracter = window.Event ? true : false; 
	
	function esLetra(evento){ //	function alfanumerico(evento){ 
		if (caracter) 
			var tecla = evento.which; 
		else 
			var tecla = evento.keyCode; 
		return ((tecla >= 65 && tecla <= 90) || (tecla >= 97 && tecla <= 122) || tecla == 209 || tecla == 241 || tecla == 32); 
		 
	} // funtion 
	
// 	NOTA :  A-Z 65 al 90, a-z : 97 al 122, ñ = 209, Ñ = 241
//___________________________________________________________________________________________________________________________
	
	
//___________________________________________________________________________________________________________________________
//	  			 			                     CAPTURA SOLO NUMEROS 	
//___________________________________________________________________________________________________________________________

	var numeritos = window.Event ? true : false; 
	
	function esNumero(evento){ 
		if (numeritos) 
			var tecla = evento.which; 
		else 
			var tecla = evento.keyCode; 
		return ((tecla >= 48 && tecla <= 57)); 
	} // funtion

// 	NOTA : 0-9  del 48 al 57
//___________________________________________________________________________________________________________________________
	

//___________________________________________________________________________________________________________________________
//	  			 			         CAPTURA SOLO LETRAS Y NUMEROS SIN ESPACIO EN BLANCO SIN Ñ
//___________________________________________________________________________________________________________________________

	var alfaNum = window.Event ? true : false; 

	function esAlfanumerico(evento){ 
		if (alfaNum) 
			var tecla = evento.which; 
		else 
			var tecla = evento.keyCode; 
		return ((tecla >= 48 && tecla <= 57) || (tecla >= 65 && tecla <= 90) || (tecla >= 97 && tecla <= 122));  
	}
	
//	NOTA : 0-9  del 48 al 57, A-Z 65 al 90, a-z : 97 al 122 		
//____________________________________________________________________________________________________________________________	

//___________________________________________________________________________________________________________________________
//	  			 			            CAPTURA LETRAS Y NUMEROS CON ESPACIO EN BLANCO
//___________________________________________________________________________________________________________________________

	var alfaNum = window.Event ? true : false; 

	function esAlfanumericoB(evento){ 
		if (alfaNum) 
			var tecla = evento.which; 
		else 
			var tecla = evento.keyCode; 
		return (tecla == 32 || (tecla >= 48 && tecla <= 57) || (tecla >= 65 && tecla <= 90) || (tecla >= 97 && tecla <= 122) || tecla == 209 || tecla == 241);  
	}
	
//	NOTA : 0-9  del 48 al 57, A-Z 65 al 90, a-z : 97 al 122, espacios en blanco 32, ñ = 209, Ñ = 241			
//____________________________________________________________________________________________________________________________	


//___________________________________________________________________________________________________________________________
//												VALIDAR CORREO
//___________________________________________________________________________________________________________________________
	function validarEmail(valor) {
	  if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(valor)){
	   //alert("La direccion de correo " + valor + " es correcta");
	  } else {
	   alert("La dirección de email es incorrecta.");
	   document.form1.txt_correo.focus();
	   return (false);
	  }
	 }
//___________________________________________________________________________________________________________________________

//___________________________________________________________________________________________________________________________
//												VALIDAR CORREO
//___________________________________________________________________________________________________________________________
	function esCorreo(valor,pagina) {
		if (valor.search(/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/ig)){
	 // if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(valor)){
	   alert("La direccion de correo " + valor + " es correcta");
	  } else {
	  	  if (pagina=="contratacion" && document.form1.email.value!=""){
		     alert("La dirección de email es incorrecta.");
			 document.form1.email.focus();
		  }
		  if (pagina=="reportes" && document.form1.temailrep.value!=""){
		     alert("La dirección de email es incorrecta.");
			 document.form1.temailrep.focus();
		  }
  		  if (pagina=="aclaraciones" && document.form1.temailaclara.value!=""){
		     alert("La dirección de email es incorrecta.");
			 document.form1.temailaclara.focus();
		  }
		 if (pagina=="buzon" && document.form1.temailb.value!=""){
		     alert("La dirección de email es incorrecta.");
			 document.form1.temailb.focus();
		  }
	   return (false);
	  }
	 }
//___________________________________________________________________________________________________________________________


//___________________________________________________________________________________________________________________________
//									ABRIR VENTANAS PARA CUENTAS PUBLICAS Y DICTAMENES DE TRANSPARENCIA
//___________________________________________________________________________________________________________________________

	function Abrir_Ventana(selObj) { 
		var dominio="http://www.aguasdesaltillo.com";
		var rutaParcial=dominio+"/documentos/transparencia/"; 
		var especificaciones="top=0, left=0, toolbar=no,location=no, status=no,menubar=no,scrollbars=no, resizable=no, width=400,height=400"; 	
		var titulo="Titulo";
		archivo=selObj.options[selObj.selectedIndex].value;
		rutaCompleta = rutaParcial + archivo;
		selObj.selectedIndex=0;
		window.open(rutaCompleta,titulo,especificaciones); 
	}
	
//___________________________________________________________________________________________________________________________
