'); frames[1].document.close(); } var detect = navigator.userAgent.toLowerCase(); var windowsIE = (checkPlatform("msie") && checkPlatform("win")); var thisLocation = location.href.substring(0,location.href.lastIndexOf('/')+1); // relative location needed; see "http://forum.java.sun.com/thread.jspa?threadID=776748&messageID=4421956" //alert("This location is \""+thisLocation+"\""); if (windowsIE) { //alert("Is windowsIE"); document.write(""); } else { //alert("Is not windowsIE"); if (webstartVersionCheck("1.5")) { //alert("Already correct JRE version ... just launching app"); window.location = thisLocation+ourWebstartApplicationName; } else { // could do window.open("http://jdl.sun.com/webapps/getjava/BrowserRedirect?locale=en&host=java.com","needdownload"); // but better to do it as two frames, to avoid triggering pop up blocker and user having to deal with that // (could also check if window.open() returns null which means popup blocker fired) document.write('