/**************************************************************************
 Function:	enter
 Purpose:	utiliza a função do teclado
 **************************************************************************/

function enter(event){
 
	Tecla = event.which;
	if (Tecla == null)
	   Tecla = event.keyCode;
	if (Tecla == 13)
	   Pesquisa();
	return false;
}

function Pesquisa()
{
	var sParametros;
	
	if(document.getElementById("uf").value == 0)
	{
		alert("Preenchimento do campo Estado é obrigatório");
		document.getElementById("uf").focus();
		return;
	}
	else if(document.getElementById("no_municipio").value == 0)
	{
		alert("Preenchimento do campo Cidade é obrigatório");
		document.getElementById("no_municipio").focus();
		return;
	}
	else if(document.getElementById("no_bairro").value == 0)
	{
		alert("Preenchimento do campo Bairro é obrigatório");
		document.getElementById("no_bairro").focus();
		return;
	}

	sParametros="v_uf="+document.getElementById('uf').value;
	sParametros+="&v_municipio="+document.getElementById('no_municipio').value;
	sParametros+="&v_bairro="+document.getElementById('no_bairro').value;
	//sParametros+="&valorParametro="+document.getElementById('valorParametro').value;
	//sParametros+="&tipoParametro="+document.getElementById('tipoParametro').value;
	
	//window.location="<%=proto_http & transacional%>/loterias/asp/rede_casas_lotericas.asp?"+sParametros;
	document.getElementById('frmPortal').submit();
}
function setanomecidade(strTexto)
{
	//alert(strTexto);
	document.getElementById("nomecidadade").value=strTexto;
}