if (/msie/i.test (navigator.userAgent)) //only override IE
{
  document.nativeGetElementById = document.getElementById; 
  document.getElementById = function(id)
  {
    var elem = document.nativeGetElementById(id);
    if(elem)
    {
      //make sure that it is a valid match on id
      if(elem.attributes['id'].value == id)
      {
        return elem;
      }
      else
      {
        //otherwise find the correct element
        for(var i=1;i<document.all[id].length;i++)
        {
          if(document.all[id][i].attributes['id'].value == id)
          {
            return document.all[id][i];
          }
        }
      }
    }
    return null;
  }
}

function LimpaLocalizar8()
	{
		if (document.form8.localizar1.value == "BUSCA NO BAIRRO")
		{
			document.form8.localizar1.value = "";
			document.form8.localizar1.focus();
			return;
		}
		else
		{
			return;
		}
	}
	
	function VeEnter8()
	{
		var keycode;
		if (window.event) keycode = window.event.keyCode;
	
		if (keycode == 13) <!-- corresponde ao codigo asc enter -->
		{
			document.form8.getElementById('procurar').value = 's';
			document.form8.submit();
		}
	}
	function LimpaLocalizar9()
	{
		if (document.form9.localizar2.value == "BUSCA NA CIDADE")
		{
			document.form9.localizar2.value = "";
			document.form9.localizar2.focus();
			return;
		}
		else
		{
			return;
		}
	}
	
	function VeEnter9()
	{
		var keycode;
		if (window.event) keycode = window.event.keyCode;
	
		if (keycode == 13) <!-- corresponde ao codigo asc enter -->
		{
			document.form9.getElementById('procurar').value = 's';
			document.form9.submit();
		}
	}
	function LimpaLocalizar10()
	{
		if (document.form10.localizar3.value == "BUSCA NO SITE")
		{
			document.form10.localizar3.value = "";
			document.form10.localizar3.focus();
			return;
		}
		else
		{
			return;
		}
	}
	
	function VeEnter10()
	{
		var keycode;
		if (window.event) keycode = window.event.keyCode;
	
		if (keycode == 13) <!-- corresponde ao codigo asc enter -->
		{
			
			document.form10.getElementById('procurar').value = 's';
			document.form10.submit();
		}
	}
	
	function EnviaForm(campo1) 
	{
		document.f_ati.atividade.value=campo1;
		//document.form4.action="zzzz.php";
		//document.getElementById('form4.atividade').value = campo1;
		//document.forms['form4'].submit();
		document.f_ati.submit();
	}
