function openExternalWin(product, url) {
    if(! confirm('This link will take you to a Web site maintained by a third party who is responsible for its content and privacy policy. Our privacy policy does not apply to this site. We encourage you to read the privacy policy of every Web site you visit.\n\nClick "Cancel" to return to JustAskAboutUC.com or "OK" to continue.'))
        return;

    var externalWin = window.open(url,null,"toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=970,height=600");
    if (externalWin.opener == null)
        externalWin.opener=window;
        externalWin.opener.name="opener";
}

function leaveTool() {
    if(! confirm('You are about to leave the Just Ask About UC Flare Assessment Tool without printing or e-mailing your results. Your total score and answers can help your doctor better understand the severity of your ulcerative colitis symptoms. However, your results will no longer be available if you do not print or e-mail them now.\n\nIf you would like to print or e-mail your assessment results, click "Cancel."')){
        return false;
    }
    return true;
    
}
function leaveDDG() {
    if(! confirm('You have not printed or e-mailed your custom Doctor Discussion Guide.\nIf you leave this page now, your selections will be lost. Are you sure you want to leave?')){
        return false;
    }
    return true;
    
}

function productExit(product, url) {

if(! confirm('This link will take you to a product Web site where you will find information about a treatment option for the induction of remission in patients with active, mild to moderate ulcerative colitis.\n\nClick "Cancel" to return to JustAskAboutUC.com or "OK" to continue.'))
        return;

    var externalWin = window.open(url,null,"toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=970,height=600");
    if (externalWin.opener == null)
        externalWin.opener=window;
        externalWin.opener.name="opener";
}
