// JavaScript Document
<!--
/* implementa paginação por POST no cliente */
function browse(page) {
	document.forms[0].method = "POST";
	document.forms[0].elements["frm_page"].value = page;
	document.forms[0].submit();
}

/* valida criação de novo verbete */
function criarVerbete(f) {
	if (!f.frm_verbete.value) {
		alert("Digite o nome do verbete.");
		f.frm_verbete.focus();
		return false;
	}
	
	if (!f.frm_desc.value) {
		alert("Digite o significado do verbete.");
		f.frm_desc.focus();
		return false;
	}	
	
	return true;
}

/* navegação */
function go(to) {	
	location.href = to;
}

/* adiciona página aos favoritos do navegador */
function addBookmark() {
    if (window.sidebar) {
    	window.sidebar.addPanel(document.title, document.location, "");
    }
    else if (window.opera && window.print) {
        var mbm = document.createElement('a');
        mbm.setAttribute('rel', 'sidebar');
        mbm.setAttribute('href', document.location);
        mbm.setAttribute('title', document.title);
        mbm.click();
    }
    else if (document.all) {
    	window.external.AddFavorite(document.location, document.title);
    }		
}
//-->