function validaOnKeyDown()
{			
	with(busca)
	{
		if (navigator.appName == 'Netscape')
		{	
			
			if(39 == e.which || 34 == e.which ||  45 == e.which ||  59 == e.which )
			{
				e.which = 0;
				return false;
			}
			else
				return true;		
		}
		else
		{
			if(39 == window.event.keyCode || 34 == window.event.keyCode || 45 == window.event.keyCode || 59 == window.event.keyCode)
			{	
				window.event.keyCode = 0;
				return false;
			}
			else
				return true;							
		}
	}
}

function validaOnBlur(objTxt)
{
	with(busca)
	{
		if(null != objTxt)
		{
			if(-1 != objTxt.value.indexOf("'") || -1 != objTxt.value.indexOf("\"") || -1 != objTxt.value.indexOf(";") || -1 != objTxt.value.indexOf("-"))
			{							
				objTxt.value = "";
				objTxt.focus();
			} 
		}
	}
}

function mascaraCPF(CPF) 
{
	with (CPF) 
    { 
            value = value.substr(0, 3) + '.' +  
                            value.substr(3, 3) + '.' +  
                            value.substr(6, 3) + '-' + 
                            value.substr(9, 2); 
    } 
}




var PAGINA_CARREGADA = false;

function altera()
{
	/*// Valida números
	if (isNaN(parseInt(document.servicosForm.cpf.value))) 
	{
		alert("CPF/CNPJ inválido.");
		document.servicosForm.cpf.focus()
		return;
	}

	if (isNaN(parseInt(document.servicosForm.cdic.value))) 
	{
		alert("CDIC inválido.");
		document.servicosForm.cdic.focus()
		return;
	}
	
	document.servicosForm.dowhat.value="alterar"
	
	if(document.servicosForm.cpf.value=="") 
	{
		alert("Por favor, informe o seu CPF/CNPJ.");
		document.servicosForm.cpf.focus()
	}
	else if(document.servicosForm.cdic.value=="")
	{
		alert("Por favor, informe o seu CDIC.");
		document.servicosForm.cdic.focus()
	}
	else
	{
		document.servicosForm.submit()
	}
	*/

}

function DFonlyNumbers(e)
{
	if(window.event)
		key=window.event.keyCode
	else if (e)
		key=e.which
	else 
		return true
	
	S='0123456789*'
	
	if(key==null||key==0||key==8||key==9||key==13||key==27)
		return true
	else if(S.indexOf(String.fromCharCode(key))!=-1)
		return true
	else 
		return false
}

