function envia(url, metodo, modo)
{
    var cpf = document.getElementById('form1').cpf.value;
    remoto  = new ajax();
    xmlhttp = remoto.enviar(url + "?cpf=" + cpf, metodo, modo );
    if(xmlhttp) {
        document.getElementById('cpf').className = 'erro';
        document.getElementById('alerta').className = 'alerta2';
        document.getElementById("cpf").value = alert('Inscrição já realizada.');
		document.getElementById("cpf").value = '';
		document.getElementById("cpf").focus();
    } else {
        document.getElementById('cpf').className = 'texto';
        document.getElementById('alerta').className = '';
        document.getElementById("nome").value = "";
    }    
}