' + $(this).attr('alt')); });*/ if ($('#estoy').val() == "situacion") { initialize(); } $('#frminmueble #provincias').change(function(){ var t = this; $.ajax({ url: 'includes/ajax.php?', data: 'action=provincia&v=' + t.value, dataType: 'html', type: 'get', success: function(j){ $('#poblacion').html(j); $('#cp').val(''); } }); }); $('#frminmueble #poblacion').change(function(){ var t = this; $.ajax({ url: 'includes/ajax.php?', data: 'action=poblacion&v=' + t.value, dataType: 'html', type: 'get', success: function(j){ $('#cp').html(j); } }); }); actualizar_poblacion = function (){ var pr =$('#provincias').val(); var p = $('#h_poblacion').val(); var cp = $('#h_cp').val(); $.ajax({ url: 'includes/ajax.php?', data: 'action=provincia&v=' + pr, dataType: 'html', type: 'get', success: function(j){ $('#poblacion').html(j); $('#poblacion').val(p); $('#cp').val('') $.ajax({ url: 'includes/ajax.php?', data: 'action=poblacion&v=' + p, dataType: 'html', type: 'get', success: function(j){ $('#cp').html(j); $('#cp').val(cp); } }); } }); } if($('#frminmueble #h_poblacion').val()!="" && $('#frminmueble #h_poblacion').val()!=undefined){ actualizar_poblacion(); } $('#frminmueble #promocion').change(function(){ var t = this; $.ajax({ url: 'includes/ajax.php?', data: 'action=promocion&v=' + t.value, dataType: 'json', type: 'get', success: function(j){ $('#provincias').html(j[0]); $('#poblacion').html(j[1]); $('#cp').html(j[2]); $('#numero').val(j[3]); $('#direccion').val(j[4]); $('#tipovia').html(j[5]); } }); }); //prettyphoto para imagenes $("a[rel^='prettyPhoto']").prettyPhoto(); });

www.casasnuevasen.com


Casas Nuevas En es un portal inmobiliario gratuito, para inmobiliarias, promotoras, constructoras y particulares que deseen anunciarse en uno de los mayores portales inmobiliarios que existen en internet, podra anunciar tantos inmuebles como desee, con toda la información de su casa y totalmente gratuito para darle un gran servicio sin coste alguno.