// Telexnet.org (c) ee.js,v 1.0 2006/02/26 20:30:13 - 2006/04/16 20:20:20 // www.Extratex.co.uk (c) Copyright // Detect Browser Redirect function detectBrowser() // telexnet index.html { var browser=navigator.appName var b_version=navigator.appVersion var version=parseFloat(b_version) if ((browser=="Microsoft Internet Explorer") && (version>=4)) {window.status='Welcome to Telexnet.......Using Microsoft Internet Explorer.........';return true} else { window.location = "http://www.2try4.org"; } } function detectBrowser1() // 2try4 /live/2try4_1.2/index.html { var refURL = 'http://www.2y4.net' var browsername=navigator.appName var browser=navigator.appName var b_version=navigator.appVersion var version=parseFloat(b_version) if((browsername.indexOf("Netscape")!= -1) && (navigator.userAgent.indexOf("Firefox") != -1)) {window.location = "http://www.2try4.org";} if (document.referrer.indexOf(refURL) != -1) { if((browsername.indexOf("Netscape")!= -1) && (navigator.userAgent.indexOf("Netscape") != -1)) {window.status='Welcome to 2try4.......Netscape using Internet Explorer.........';return true} } if ((browser=="Microsoft Internet Explorer") && (version<=2)) {window.location = "http://www.2try4.org"; } if ((browser=="Microsoft Internet Explorer") && (version>=4)) {window.status='Welcome to 2try4.......Using Microsoft Internet Explorer.........';return true} else { // alert(Basic); window.status='Welcome to 2try4.......Using Basic or test browser, please send feedback to info@2try4.net.........';return true } } function detectBrowser2() // 2y4.net and 2try4.org 2try4/index.html { var refURL = 'www.2try4.org' var browsername=navigator.appName var browser=navigator.appName var b_version=navigator.appVersion var version=parseFloat(b_version) if (document.referrer.indexOf(refURL) != -1) { //alert("Sorry !Enhanced features are limited to users with the Microsoft Internet Explorer browser! Users with the Netscape browser can enable Internet Explorer compatibility, to use some enhanced features, you will be sent to a compatible version then refresh the site ."); if((browsername.indexOf("Netscape")!= -1) && (navigator.userAgent.indexOf("Netscape") != -1)) {window.location = "http://www.2t4.co.uk"; } if((browsername.indexOf("Netscape")!= -1) && (navigator.userAgent.indexOf("Firefox") != -1)) {window.status='Welcome to 2try4.......';return true } if ((browser=="Microsoft Internet Explorer") && (version<=2)) {window.status='Welcome to 2try4.......';return true } if ((browser=="Microsoft Internet Explorer") && (version>=4)) {window.location="http://www.2try4.net/";} } else { if (browsername.indexOf("Netscape")!=-1) { // alert("Sorry !All features are limited to users with the Microsoft Internet Explorer browser! Users with the Netscape browser can enable Internet Explorer compatibility, to use some enhanced features, you will be sent to a compatible version then refresh the site ."); window.location = "http://www.2t4.co.uk"; } if ((browser=="Microsoft Internet Explorer") && (version<=2)) {window.status='Welcome to 2try4.......';return true } if(navigator.userAgent.indexOf("Firefox") != -1) {window.status='Welcome to 2try4.......';return true } window.status='Welcome to 2try4.......Using Basic or test browser, please send feedback to info@2try4.net.........';return true } } // END Detect Browser function handleT(){ window.location="http://www.telexnet.co.uk/2try4-1search.htm?"+searchitTxt.value } function xCH(event) { // if (moz) else ie if(event.which) Tkey = event.which; else Tkey = event.keyCode; // if chr(13) a.k.a ENTER is pressed if(Tkey == 13) { // show me that it's trying to stop it handleT() window.status='Searching by 2try4.net.......Using Microsoft Internet Explorer.........';return true } }