function rh(COOKIE_NAME) { 
var URL_SITIO, reemplazo, protocol, referer
URL_SITIO="www.santandersantiago.cl";
reemplazo=location.hostname;

if (location.port!=80) reemplazo=reemplazo+":"+location.port; 
reemplazo=reemplazo+location.pathname;

protocol="http://";
if (location.protocol=="https:") protocol="https://";

referer=document.referrer; index=referer.indexOf(URL_SITIO);
if ((index>0)&&(index<=9)) setCookie(COOKIE_NAME,protocol+reemplazo, null, '/');
}
