﻿function showIEBrowserWarning() {
    PositionMessage();
    
    $("#IEMessageBox").show();    
}

function showFirefoxBrowserWarning() {
    $("#FirefoxMessageBox").show();
}

function CloseBrowserCheck() {
    $("#IEMessageBox").hide();
    $("#FirefoxMessageBox").hide();
}

function PositionMessage()
{
    var windowWidth = $(window).width(); 
    var windowHeight = $(window).height();
    var messageHeight = $(".general-message").height();
    var messageWidth = $(".general-message").width();
    
    
    
    var newHeight = (windowHeight/2) - (messageHeight/2);
    newHeight = Math.round(newHeight - (newHeight * .25)); 
    
    var newWidth = (windowWidth/2) - (messageWidth/2);
    newWidth = Math.round(newWidth);
    
    $(".general-message").css("top", newHeight);
    $(".general-message").css("left", newWidth);

}