function office_email(el){
    var emailriddlerarray=[111,102,102,105,99,101,64,99,101,110,116,114,97,108,119,97,121,46,99,111,109]
    var encryptedemail_id61='' //variable to contain encrypted email
    for (var i=0; i<emailriddlerarray.length; i++)
        encryptedemail_id61+=String.fromCharCode(emailriddlerarray[i])

    $(".office_email").html('<a href="mailto:'+encryptedemail_id61+'">'+encryptedemail_id61+'</a>')
}
function disclaimer(){
    $("#disclaimer").dialog({
        bgiframe: true,
        resizable: false,
        autoOpen: false,
        height: 353,
        width:600,
        modal: true,
        buttons: {
            'Accept': function() {
                $.ajax({
                    type: "POST",
                    url: "ajax/disclaimer.php",
                    data: "text=" + $(this).text(),
                    success: function(msg){
                        window.location.reload()
                    }
                });
                //$(this).dialog('close');
            },
            'Deny': function() {
                window.location = 'https://www.centralway.com/exit/logout/';
            }
        },
        open: function() {
            $(".ui-widget-overlay").fadeTo(8, 1);
            $(".ui-widget-overlay").css("height","10000px");
            $(".ui-widget-overlay").css("background","#fff");
        }
    });
    $("#disclaimer").dialog("open");
}

function warning(theMessage){
    $('#dialog').html(theMessage);
    $("#dialog").dialog('open');
}
function success(theMessage){
    $('#dialog3').html(theMessage);
    $("#dialog3").dialog('open');
}
