function getCookie(Ckcookie) {
    var cookies = document.cookie;
    if (cookies.indexOf(Ckcookie) != -1) {
        //alert(cookies.indexOf(Ckcookie)); 
        var startpos = cookies.indexOf(Ckcookie) + (Ckcookie.length) + 1;
        var endpos = cookies.indexOf(";", startpos) - 1;
        if (endpos == -2) endpos = cookies.length;
        //alert(cookies.substring(startpos, endpos));
        //return unescape(cookies.substring(startpos,endpos)); 
    }
    else {

        var url = window.location;
        //alert(url);
        window.location = '/disclaimer.html?&ReturnUrl=' + url + '.html';
        //return false; // the cookie couldn't be found! it was never set before, or it expired. 
    }
}
