function getVestibular(){
	acessaAjax('GET', '', window.location+"?func=setOptionVestibular&param="+getElement('tipo').value, 'vestibular', 4);
}
function defineSimulado(obj, prm){
	if(getElement('materia').value != "null" && getElement('ano').value != "null" && getElement('tipo').value != "null" && getElement('vestibular').value != "null")
	{
		if(typeof(prm) != "undefined"){
			acessaAjax('POST:formulario:NOESCAPE', '', window.location+prm, obj, 3);				
		}else{
			alert("Nenhum parâmetro foi definido para está ação.\nTente novamente, caso está mensagem seja visualizada novamente contate o administrador do sistema.");
		}	
	}else{
		alert("Para iniciar o simulado é necessário preencher todos os campos de formulário: \nMATÉRIA, ANO, TIPO DE PROVA E VESTIBULAR.");
	}
}
function redefineConteudo () {
	getElement("conteudo").innerHTML = '<p class="texto1">&nbsp;</p>';
}
function visualizaQuestao(obj, prm){
	acessaAjax('POST:formulario', '', window.location+prm, obj, 1);
}

function visualizaDetalhes(param){
	openWindow(window.location+param, "visualizaDetalhes",  "460", "300", "");
}

function defineResposta(qst, rsp){		
	if(qst.value = qst.value.replace(/[^rspU\]=]*$/, rsp.value))
		qst.parentNode.className = "botaoqst2";
}