/* confirm.js
 * Copyright (c) 2007 Noitulos GmbH, www.noitulos.com
 *
 * Version History:
 *
 * - v0.1, created on 12.08.07 by Chris Strobel <strobel@noitulos.com>
 *   Initial creation of the function.
 */


/* void showConfirm(msg, golink)
 *
 * Displays a confirm box and proceedes to the given link if
 * the user confirms and does nothing if the user aborts.
 *
 * Params:
 * string msg:  Message to be displayed
 * string golink:  Link to proceed to if the user confirms
 */
function showConfirm(msg, golink)
{
    var confirm = window.confirm(msg);
    if (confirm == true)
    {
        //window.open("http://localhost:8000/", "blubb");
        window.location = golink;
    }
    else
    {
        return;
    }
}
