// JavaScript Document
	function ValidaEmail(valor){
		validRegExp = /^[^@]+@[^@]+.[a-z0-9]{2,}$/i;
		if (valor.search(validRegExp) == -1)
			return false;
		else
			return true;
	}

	function numero(e){
		return !isNaN(String.fromCharCode(e.keyCode));
	}
	
/*	function numero(ev){
		return !(ev.keyCode < 48 || ev.keyCode > 57);
	}
*/

	function formatCep(t,teclapres) {
		var tecla = teclapres.keyCode;
		if ( tecla != 13 && tecla != 9 && tecla != 8 ) {
			t = t.replace(/[^0-9]/g,"");
			var n = t;
			if (t.length>=4) n =t.substr(0,5)+"-"+t.substr(5,3);
			if (t.length>=7) return n.substr(0,8);
			{
			}
			return n;
		}
		return t
	}

	function Inteiro(valor){
		for(var i=0; i<valor.length; i++){
			if(isNaN(parseInt(valor.charAt(i))))
				return false;
		}
		return true;
	}
	
	function popup(url,nome,parametro,erro){
		var abre = window.open(url,nome,parametro);
		if (abre==null || abre.closed ==true){
			if (erro!=""){
				eval(erro);
			}
		}
	}
	
	function erroBoleto()
	{
		alert("Por Favor, desabilite os bloqueadores de popup \nativos para imprimir seu boleto.");	
	}
