<HTML>
<body>

<!-- name, url und error Message setzen -->

<SCRIPT LANGUAGE="Javascript"> 
          var webStart = 0; 
          iExplorer = "false"; 
		
	  name = "StartEnigma";
	  url = "enigma.jnlp";
	  error ="JAVA Web Start could not be detected. Please ensure to have the latest JRE Version installed.";	
			
          if (navigator.mimeTypes && navigator.mimeTypes.length) { 
             x = navigator.mimeTypes['application/x-java-jnlp-file']; 
             if (x) webStart = 1; 
          } else { 
             iExplorer = "true"; 
          } 
</SCRIPT> 

<SCRIPT LANGUAGE="VBScript"> 
          on error resume next 
          If iExplorer = "true" Then 
            If Not(IsObject(CreateObject("JavaWebStart.IsInstalled"))) Then 
                  webStart = 0 
            Else 
                  webStart = 1 
            End If 
          End If 
</SCRIPT>

<SCRIPT LANGUAGE="Javascript"> 
         
        if (webStart) { 
                document.write("<a href=" + url + ">"  + name + "</a>"); 
                 
             } else { 
                document.write(error); 
		document.write("<br>And Java , Javascript , and in case your using IE VBScript is enabled too. (Javascript ,VBScript is only needed to run this test Script.So this script may not be able to determine if webstart is available even if Java WebStart is installed.  )")
             document.write("<p>You can download WebStart (JRE 1.4.x) from the Sun(TM) Server <br>" +
                                " <form action=" +
                              "'http://java.sun.com/webapps/download/Display\' METHOD=\'POST\'>" +
                                "<input type=\'hidden\' name=\'BundleId\' value=\'7140\'>" +
                           "for Windows (InternetExplorer and Netscape): " +
                           "<input type=\'submit\' name=\'sub1\' value=\'Download\'>" +
                                 "</form></p>" +
                           " <p>If you are using a different System or want more information about JAVA (TM) you can follow this Link to a  <a href=\'http://java.sun.com/j2se/1.4.1/download.html\'>" +
                           " List for all Systems.</a></p>");
          }  
</SCRIPT> 


</body>
</HTML>