/*function geraCombo(nivel) {
	//alert('');
	var sel = "<select name=\"serie\" class=\"form\" id=\"serie\">\n";
	switch (nivel) {
		case "cad":
			sel += "\t<option value=\"21\">1&ordf; Série</option>\n";
			sel += "\t<option value=\"22\">2&ordf; Série</option>\n";
			sel += "\t<option value=\"23\">3&ordf; Série</option>\n";
			sel += "\t<option value=\"24\">4&ordf; Série</option>\n";
			break;
		case "list":
			sel += "\t<option value=\"35\">5&ordf; Série</option>\n";
			sel += "\t<option value=\"36\">6&ordf; Série</option>\n";
			sel += "\t<option value=\"37\">7&ordf; Série</option>\n";
			sel += "\t<option value=\"38\">8&ordf; Série</option>\n";
			sel += "\t<option value=\"331\">1&ordf; Ano</option>\n";
			sel += "\t<option value=\"332\">2&ordf; Ano</option>\n";
			sel += "\t<option value=\"333\">3&ordf; Ano</option>\n";			
			break;
		case "4":
			sel += "\t<option value=\"41\">Pré-Vestibular Manhã</option>\n";
			sel += "\t<option value=\"42\">Pré-Vestibular Noite</option>\n";		
			break;
	}
	sel += "</select>";
	document.getElementById("series").innerHTML = sel;
}*/
// ComboBox com Link
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
// Aviso de Excluir com Redirecionamento escondido #
function excluir(theURL) { //v2.0
  if(confirm('Tem certeza que deseja excluir?'))
  window.location.href = (theURL);
}
// Alterar com Redirecionamento escondido #
function alterar(theURL) { //v2.0
  //if(confirm('Tem certeza que deseja excluir?'))
  window.location.href = (theURL);
}
// Alterar com Redirecionamento escondido #
function vizualizar(theURL) { //v2.0
  //if(confirm('Tem certeza que deseja excluir?'))
  window.location.href = (theURL);
}
//Função validação de login no formulario
function envia_login() {
	document.getElementById("btnEnviar").disable = true;
	if (document.getElementById("frm_login").value == "" || document.getElementById("frm_login").value == "seu login") {
		alert("Informe o Login");
		document.getElementById("frm_login").select();
		document.getElementById("btnEnviar").disable = false;
		return false;
	} else if (document.getElementById("frm_senha").value == "" || document.getElementById("frm_senha").value == "sua senha") {
		alert("Informe a Senha");
		document.getElementById("frm_senha").select();
		document.getElementById("btnEnviar").disable = false;
		return false;
	} else {
		document.form.submit();		
	}	
}