// JavaScript Document
function ValidaCadastro()
{
      
     if (document.getElementById("tbUsuario").value == "")
     {
       alert("Usuário não Informado!");
       return false;
     }
     else if (document.getElementById("tbUsuario").value == "")
     {
       alert("Senha não informada!");
       return false;
     }else
	 	document.frmBusca.action = "Valida_login.asp";
		document.frmBusca.submit();
}

function detalhes(valor){
	//alert(valor);
	//document.getElementById("HdAnuncioId").value = valor;
	document.frmBusca.action = "Detalhe.asp?HdAnuncioId="+valor;
	document.frmBusca.submit();
}
function filtrar(){

		document.frmBusca.action = "../Capa/Buscar.php";
		document.frmBusca.submit();

}
function voltar(){
	history.back(-1);
}

function limpar(valor){
document.getElementById(valor).value = "";
}

function escreveUsuario(){
document.getElementById(tbUsuario).value = "Usuário";
}
function escreveSenha(){
document.getElementById(tbSenha).value = "Senha";
}