if (GetCookie("ReferrerSet") != "yes")
{
    SetCookie("ReferrerSet", "yes");
    SetCookie("Referrer", document.referrer);
}
