
    // check if current JRE version is greater than 1.6.0 
    //alert("versioncheck " + deployJava.versionCheck('1.6.0_14'));

    if (deployJava.versionCheck('1.6.0+') == false) {                   
        userInput = confirm("To run MeshViewer live demo you need the latest Java(TM) Runtime Environment. \n\nIf you confirm this question, your system will be updated automatically and you can continue with MeshViewer demo, otherwise you will be redirected to Sun Microsystems website to check your Java version installed on your operating system.\n\nWould you like to update your system now?\n");   
		
        if (userInput == true) {  
    
            // Set deployJava.returnPage to make sure user comes back to 
            // your web site after installing the JRE
            deployJava.returnPage = location.href;
            
            // install latest JRE or redirect user to another page to get JRE from.
            deployJava.installLatestJRE(); 
        } else {
			window.location = "http://java.com/en/download/installed.jsp"
		}
    }

