function browserVer4Detect() { if(navigator.appVersion.substring(0,1) < 4) URLStr = "1.html"; else URLStr = "2.html"; window.location = URLStr; }