function check()
{
    // if there is a cookie with the name redirect.. set the window location to the sales page
    if (document.cookie.indexOf("confirmed") != -1)
    {
        window.location = "http://athleanx.com/getripped.html";
    }
}

window.onload = check;
