Browser redirection script

I’m looking for a simplified browser redirection script. This is the one I pulled from another site. Does it seem like a nice simplified version? or is there a better one?

with (navigator) {
if(appName==“Netscape”) {
// easy check
if(appVersion.substring(0,1) < “5” ) {
window.location.replace(“docs/badbrowser.html”);
}

// if( userAgent.indexOf(“Netscape6/6.2”) == -1 &&
// userAgent.indexOf(“rv:0.9.8”) == -1 &&
// userAgent.indexOf(“rv:0.9.9”) == -1 &&
// userAgent.indexOf(“rv:1.0”) == -1 &&
// // if you’re running it, you should know enough to have
// // a recent version… Viva Linux!
// userAgent.indexOf(“Galeon”) == -1 &&
// userAgent.indexOf(“SkipStone”) == -1) {
// window.location.replace(“docs/badbrowser.html”);
// }

}
}

// --></script>