﻿function fBrowserCheck(strVer) {
    appname = navigator.appName;
    useragent = navigator.userAgent;

    if (strVer == "") {
        if (appname == "Microsoft Internet Explorer") appname = "IE";
        IE55 = (useragent.indexOf('MSIE 5.5') > -1);
        IE6 = (useragent.indexOf('MSIE 6') > -1);
        IE7 = (useragent.indexOf('MSIE 7') > -1);
        IE8 = (useragent.indexOf('MSIE 8') > -1);

        if ((appname == "IE" && IE55) || IE6 || IE7 || IE8)
            return true
        else
            return false;
    }
    else {
        return (useragent.indexOf(strVer) > -1);
    }
} 
