
    function recordReferrer(content){
        var today = new Date();
        var expiry = new Date(today.getTime() + 30 * 24*60*60*1000); // 1 month
        var cookieString ="JWF_REFERER=" + content + "; expires=" + expiry.toGMTString();
 	    document.cookie = cookieString;
    }

    function getRecord() {
        var index = document.cookie.indexOf("JWF_REFERER=");
        if (index == -1) { return null;}
        index = document.cookie.indexOf("=", index) + 1;
        var endString = document.cookie.indexOf(";", index);
        if (endString == -1) { endString = document.cookie.length; }
        return unescape(document.cookie.substring(index, endString));
    }

