// JavaScript Document
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function isNumberInteger(nome){
	var elemento = document.getElementsByName(nome).item(0);
	if(isNaN(parseInt(elemento.value))){
		alert("Preencha somente com números");
		elemento.value = "";
	}
	/*else if(elemento.length != 8){
		alert("O Registro APTERJ possui oito números - Veja em sua carteira ou com seu Professor/Mestre");
		elemento.value = "";
	}*/
	else{
		return true;
	}
}
function clearField(elemento){
	var teste = document.getElementById(elemento)
	
	if(teste.value = 'registro'){
		teste.value = "";
		teste.style.color = "#000";
	}
	else{
		teste.style.color = "#000";
	}
}