To check the browser version, here is the function written is Javascript
function CheckBrowser()
{
// convert all characters to lowercase to simplify
testing var agt=navigator.userAgent.toLowerCase();
this.major = parseInt(navigator.appVersion);
this.minor = parseFloat(navigator.appVersion);
this.nav = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1)));
if (this.nav)
{
BrowserType='NS';
}
this.ie = (agt.indexOf("msie") != -1);
if (this.ie)
{
BrowserType='IE';
}
if (agt.indexOf("netscape6")!=-1)
{
BrowserType='NS6';
}
get_os();
}