// JScript File

 
        function busca_facil(tipo, transacao, estado, cidade){
            var _estado = document.getElementById(estado).value
            var _tipo = document.getElementById(tipo).value
            var _transacao = document.getElementById(transacao).value
            //var _cidade = document.getElementById(cidade).value
            var _cidade = ''
            
            if(_tipo > 0){
                if(_transacao > 0){
                    document.location.href = 'find_anuncio.aspx?tipo=' + _tipo + '&transacao=' + _transacao + '&estado=' + _estado + '&cidade=' + _cidade;
                }else{
                    alert('O tipo de transação deve ser selecionado.')
                }
            }else{
                alert('O tipo de transação deve ser selecionado.')
            }
        }
        
//        function busca_rapida(busca){
//            var _busca = document.getElementById(busca).value
//                    document.location.href = 'find_anuncio.aspx?busca=' + _busca;
//        }

function PopUp(url, larg, alt){
	if(navigator.appName=="Microsoft Internet Explorer")
	{
		window.open(url,'Popup','fullscreen=0,channelmode=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=' + larg + ',height=' + alt + ',top=50,left=100');
	}
	else
	{
		window.open(url,'Popup','location=0,fullscreen=0,menubar=0,toolbar=0,status=0,screenX=100,screenY=100,resizable=1,width=' + larg + ',height=' + alt);
	}
}

var url_site="http://www.clicouvendeu.com.br" 
var titulo_site=".:. Clicouvendeu.com.br - O seu classificado digital .:." 
function adiciona_bookmark(){
    if (document.all)window.external.AddFavorite(url_site,titulo_site)
}

function esconde_drop(){
    if(document.getElementById("banner").value == '1'){
        document.getElementById("ctl00_ContentPlaceHolder1_ddl_ordenacao").style.visibility = "hidden"
    }
}
function mostra_drop(){
    if(document.getElementById("banner").value == '1'){
        document.getElementById("ctl00_ContentPlaceHolder1_ddl_ordenacao").style.visibility = "visible"
    }
}
