function browser_compAlert(browserName, errorCode, checkVar)
{
    var browserAlert            =   document.createElement('div');
    
    browserAlert.setAttribute('id', "alert");
    browserAlert.setAttribute('class', "browserAlert");
    
    switch(browserName)
    {
        case "msie":
            browserImg          =   "ie_logo.png";
            updateURL           =   "http://www.microsoft.com/windows/internet-explorer/";
            break;
        
        case "safari":
            browserImg          =   "safari_logo.png";
            updateURL           =   "http://www.apple.com/safari/";
            break;
        
        case "chrome":
            browserImg          =   "chrome_logo.png";
            updateURL           =   "http://www.google.com/chrome/";
            break;
        
        case "netscape":
            browserImg          =   "firefox_logo.png";
            updateURL           =   "http://www.mozilla.com/en-US/firefox/";
            break;
    }
    
    var redirectURL             =   location + "?" + checkVar + "=y";
    
    var alertText               =   '<div class="browserAlert"><div><a class="alert_header">You Are Running An Incompatible Browser</a>' +
    '<a class="alert_text_left"><img src="/wd_javaToolKit/images/browser_logos/' + browserImg + '" width="150"></a>' + 
    '<a class="alert_text_right">The current browser you are using may not show the webpage you are trying to view correctly. <br /><br />' + 
    'To resolve this issue, upgrade your browser to a newer version or use a different browser.<br /><br /> ' +
    'You can also ignore this warning and view the site with your current browser. <br /><br />' + 
    'WD-JTK Alert: ' + errorCode + '</a></div><br /><br />' +
    '<div class="toolbar"><center><a class="wd_button" target="_blank" href="' + updateURL + '">Upgrade</a><a class="wd_button" style="color:#000000;" href="' + redirectURL + '">Continue Without Upgrading</a>' +
    '</center></div>' +
    '<div class="toolbar"><center><font size="1" color="#AAAAAA">Windermere Design JavaScriptToolKit (WD-JsTK) version 0.1 Beta</font></center></div>';
    
    browserAlert.innerHTML		=	alertText;
    
    document.getElementById("alert_box").style.display      =   "block";
    
    document.getElementById("alert_box").appendChild(browserAlert);
}

function browser_slowSpeedAlert(regularURL, redirectURL)
{
    var browserAlert            =   document.createElement('div');
    
    browserAlert.setAttribute('id', "alert");
    browserAlert.setAttribute('class', "browserAlert");
    
    var alertText               =   '<div class="browserAlert"><div><a class="alert_header">It Is Determined You Are On A Slow Network</a>' +
    '<a class="alert_text_left"><img src="/wd_javaToolKit/images/wdjstk_icons/connection_icon.png" width="150"></a>' + 
    '<a class="alert_text_right">The current connection speed may not load the webpage you are trying to view at the right speed. This may result in a reduced viewing experience.<br /><br />' + 
    'If you are sure that your connection speed is fast enough, click "Ignore" to proceed to the regular site.<br /><br /> ' +
    'You can also navigate to a modified page for your current speed by clicking "Slower Connection Site". <br /><br />' + 
    'WD-JTK Alert: br_err(Cs105);</a></div><br /><br />' +
    '<div class="toolbar"><center><a class="wd_button" href="' + regularURL + '">Ignore</a><a class="wd_button" style="color:#000000;" href="' + redirectURL + '">Slower Connection Site</a></div>' +
    '<div class="toolbar"><center><font size="1" color="#AAAAAA">Windermere Design JavaScriptToolKit (WD-JsTK) version 0.1 Beta</font></center></div>';
    
    browserAlert.innerHTML		=	alertText;
    
    document.getElementById("alert_box").style.display      =   "block";
    
    document.getElementById("alert_box").appendChild(browserAlert);
}