﻿function CheckBrowser() {
    var CSSType = document.getElementById('CSSType');
    var CSSAdminType = document.getElementById('ctl00_CSSAdminType');
    var browserName = navigator.appName;
    switch (browserName) {
        case 'Microsoft Internet Explorer':
            if (CSSType != null)
                CSSType.href = 'StyleSheetIE.css';
            if (CSSAdminType != null) {
                CSSAdminType.href = '../StyleSheetIE.css';
            }
            break;
        case 'Netscape':
            if (CSSType != null)
                CSSType.href = 'StyleSheetFF.css';
            if (CSSAdminType != null) {
                CSSAdminType.href = '../StyleSheetFF.css';
            }
            break;
    }
}
