$(function(){ $("#headerSearchForm").on("submit", function(event) { event.preventDefault(); var query = $.trim($("#headerSearchQ").val());if (query.length == 0) {return false;} location.href = "https://buscador.rincondelvago.com/" + query.replace(/[^ a-záâàäéêèëíîìïóôòöúûùüçñA-ZÁÂÀÄÉÊÈËÍÎÌÏÓÔÒÖÚÛÙÜÇÑ0-9'"]/g,"").replace(/ /g,"+"); }); $("#bodySearchForm").on("submit", function(event) { event.preventDefault(); var query = $.trim($("#bodySearchQ").val());if (query.length == 0) {return false;} location.href = "https://buscador.rincondelvago.com/" + query.replace(/[^ a-záâàäéêèëíîìïóôòöúûùüçñA-ZÁÂÀÄÉÊÈËÍÎÌÏÓÔÒÖÚÛÙÜÇÑ0-9'"]/g,"").replace(/ /g,"+"); }); }); // // Begin comScore Tag var _comscore = _comscore || []; _comscore.push({ c1: "2", c2: "5641052" }); (function() { var s = document.createElement("script"), el = document.getElementsByTagName("script")[0]; s.async = true; s.src = (document.location.protocol == "https:" ? "https://sb" : "https://b") + ".scorecardresearch.com/beacon.js"; el.parentNode.insertBefore(s, el); })(); // End comScore Tag // var domain= "rincondelvago.com"; //-->