function click(e) {
	if (document.all) {
		if (event.button==2||event.button==3) {
			alert("Procuradoria Geral do Estado do RN");
			return false;
		}
	}
	if (document.layers) {
		if (e.which == 3) {
			alert("Procuradoria Geral do Estado do RN");
			return false;
		}
	}
	if (document.layers) {
		document.captureEvents(Event.MOUSEDOWN);
	}
}
function enterTab(opcao,event){ 
	switch(event.keyCode){
		case 13 :
			submeter(opcao);
		break;
	}
}
function voltar(obj){
	obj.history.back();
}
function limpar(formulario,numero){
	var i;
	for (i=parseInt(0);i<parseInt(document.forms(parseInt(formulario)).length);i++){
		if 
		((((document.forms(parseInt(formulario)).elements(i).type=="text") ||
		(document.forms(parseInt(formulario)).elements(i).type=="password") ||
		(document.forms(parseInt(formulario)).elements(i).type=="textarea")) &&
        (document.forms(parseInt(formulario)).elements(i).readOnly==false)))
		{
			document.forms(parseInt(formulario)).elements(i).value = "";
		}
	}
	document.forms(parseInt(formulario)).elements(parseInt(numero)).focus();
}
/*function imprimir(ref) {
	switch (ref){
		case "funcionarios" :
			alert("Função indisponibilizada.");
		break
		default :
			alert("Função indisponibilizada.");
		break;
	}
}*/
function norefresh(){
	switch (event.keyCode){
		case 116 :
  		    window.close();
		break;
		default :
		  return false;
	}
}