
function highlight(sender, classBase, highClass) {
	sender.className= classBase +' '+ highClass;
}

function lowlight(sender, classBase, lowClass) {
	sender.className= classBase +' '+ lowClass;
}

function moveToFieldOnEnter(evt,nextField)
{
    var key;              
    if (evt.which) {
    	key = evt.which; // standard method        	
    } else {
    	key = event.keyCode; // IE hack
    }    
    //13 is the keycode of the 'Enter' key        
    if (key == 13) {
    	document.getElementById(nextField).focus();
    	return false;
    }
}

function excluirPeticao() {
	return confirm('Deseja realmente excluir? Todos os arquivos enviados serão automaticamente excluídos e não será possível desfazer.');
}

function removerPush() {
	return confirm('Deseja realmente excluir esta inscrição do Push?');
}

function someneteNumero(campo) {
	var digits = "0123456789";
	var i;
	for (i = 0; i < campo.value.length; i++){
		campo_temp = campo.value.substring(i, i+1) ;
		if (digits.indexOf(campo_temp) == -1) {
			campo.value = campo.value.substring(0, i) + campo.value.substring(i+1);
		}
	}
}