			function processaBusca(src)
			{
				var oBusca = fn_getElementById("txtBusca");
				if (oBusca.value == "" || oBusca.value == "Faça sua busca")
				{
					oBusca.value = "Faça sua busca";
				}
				else
				{
					if(src == 'home')
					{
						document.location.href = "busca/index.asp?q=" + oBusca.value;					
					}
					else
					{
						document.location.href = "../busca/index.asp?q=" + oBusca.value;	
					}
				}
			}
			
			function startBusca()
			{
				fn_getElementById("txtBusca").value = "Faça sua busca";
			}
			
			function focusBusca()
			{
				var oBusca = fn_getElementById("txtBusca");
				if (oBusca.value == "" || oBusca.value == "Faça sua busca")
				{
					oBusca.value = "";
				}
			}
			
			function blurBusca()
			{
				var oBusca = fn_getElementById("txtBusca");
				if (oBusca.value == "" || oBusca.value == "Faça sua busca")
				{
					oBusca.value = "Faça sua busca";
				}
			}
			function fn_getElementById(id)
			{
				if(document.getElementById)
				{
					obj = document.getElementById(id);
				}
				else if(document.all)
				{
					obj = document.all[id];
				}
				return obj;
			}
			
			
			function showCatedraSubTemas(iIndex)
			{
				if(iIndex != "")
				{ 	
					for(iSubTema = 0; iSubTema < iCounter; iSubTema++) // cleanup
					{
						//alert("subtema_" + i);
						fn_getElementById("subtema_" + iSubTema).innerHTML = "";
					}
					fn_getElementById("subtema_" + iIndex).innerHTML = eval("sSubtema_" + iIndex);
				}
			}
			
			
			function buscarPublicacoes(sNome)
			{
				var aNome = sNome.split(' ');
				var oForm = fn_getElementById('formAcademicos');
				oForm.action = '../enerbiblio/index.asp?Passo=1&TP=Autores';

				var sUltimoNome = aNome.pop(); // tirei o ultimo!
				var sPenultimoNome = aNome.pop();

				// verificar excessoes
				var aExcessoes = Array("júnior", "junior", "jr", "jr.", "filho", "neto", "filha", "neta");
				for(i in aExcessoes)
				{
					if(sUltimoNome == aExcessoes[i])
					{
						sUltimoNome = sPenultimoNome + ' ' + sUltimoNome;
					}
				}
				//////////////////////

				fn_getElementById('txtExpressao').value = sUltimoNome;
				oForm.submit();
			}
			