	function mascaraData(campoData){
		var data = campoData.value;
		if (data.length == 2){
			data = data + '/';
			document.forms[0].nasc.value = data;
			return true;
		}
		if (data.length == 5){
			data = data + '/';
			document.forms[0].nasc.value = data;
			return true;
		}
	}
	
	function mascaraCEP(campoCEP){
		var cep = campoCEP.value;
		if (cep.length == 2){
			cep = cep + '.';
			document.forms[0].cep.value = cep;
			return true;
		}
		if (cep.length == 6){
			cep = cep + '-';
			document.forms[0].cep.value = cep;
			return true;
		}
	}
	
	function mascaraCPF(campoCPF){
		var cpf = campoCPF.value;
		if (cpf.length == 3){
			cpf = cpf + '.';
			document.forms[0].cpf.value = cpf;
			return true;
		}
		if (cpf.length == 7){
			cpf = cpf + '.';
			document.forms[0].cpf.value = cpf;
			return true;
		}
		if (cpf.length == 11){
			cpf = cpf + '-';
			document.forms[0].cpf.value = cpf;
			return true;
		}
		
	}
	
	function mascaraCNPJ(campoCNPJ){
		var cnpj = campoCNPJ.value;
		if (cnpj.length == 2){
			cnpj = cnpj + '.';
			document.forms[0].cnpj.value = cnpj;
			return true;
		}
		if (cnpj.length == 6){
			cnpj = cnpj + '.';
			document.forms[0].cnpj.value = cnpj;
			return true;
		}
		if (cnpj.length == 10){
			cnpj = cnpj + '/';
			document.forms[0].cnpj.value = cnpj;
			return true;
		}
		if (cnpj.length == 15){
			cnpj = cnpj + '-';
			document.forms[0].cnpj.value = cnpj;
			return true;
		}
	}
	
	function jNumerico(e)
	{
		if(document.all) // Internet Explorer
			var tecla = event.keyCode;
			else if(document.layers) // Nestcape
			var tecla = e.which;
			
			if(tecla > 47 && tecla < 58) // numeros de 0 a 9
			return true;
		else
		{
			if (tecla != 8) // backspace
			return false;
			else
			return true;
		}
	}
	
	function openBrWindow(theURL,winName,features) {
		window.open('help/online.asp','Help','width=300,height=400'); 
}
