﻿function showFreshEyeModalException(message)
{
    $("#ExceptionMessage").html(message);
    
    $("#Exception").dialog({
        height: 200,
        width: 400,
        modal: true,
        overlay: "background-color: #EEE; opacity: 0.9"
    });
}

function showFreshEyeModalHelp(message) {
    $("#HelpMessage").html(message);

    $("#Help").dialog({
        height: 600,
        width: 500,
        modal: true,
        overlay: "background-color: #EEE; opacity: 0.9"
    });
}

function showFreshEyeModalConfirmation(message, callback, arg1)
{
    $("#ConfirmationMessage").html(message);

    $("#ConfirmOkButton").bind("click", function () {
        callback(arg1);
    });

    $("#Confirmation").dialog({
        height: 200,
        width: 400,
        modal: true,
        overlay: "background-color: #EEE; opacity: 0.9"
    });
}

function freshEyeNavigation(url)
{
    window.location.href = url;
}

function fresheyeConfirm(message, callback, arg1)
{
    showFreshEyeModalConfirmation(message, callback, arg1);

    return false;
}
