//-------------------------

function dpis() {

  var browserVer = navigator.appVersion.toLowerCase();
  var isOSX = (browserVer.indexOf("mac os x") != -1);
  if(isOSX) {
    // alert("Whah, way cool ... OS X!!");
	return;
  }
  var applet = document.detector;
  if(applet != null) {
    var torf = applet.hasMinJavaVersion();
    if(torf) {
	  // good, an apropriate version of Java is installed.
	  // alert( "Cool, you have Java version: " + applet.getSysJavaVersion() );
	  // return;
    }
	
	else {
	// nope, need plug-in or later version of plug-in
	  javaVer = applet.getMinJavaVersion();
	  var s = "You need at least Java version " + javaVer +
	          " to view this page." + '\n' + "Would you like to install" +
			  " the latest version of the Java Plugin?"; 

	  var torf2 = confirm(s)
      if (torf2 == true) {
        window.location.replace("http://www.java.com");
      }
      else {
        alert("We are sorry, but the contents of this page will not" + '\n' +
		      " function correctly without the proper version of Java.");
      }

	}
		  
  }
  else {
    // need to turn on Java, or get plug-in
	  var t = "We are unable to detect Java in your browser." + "\n" +
			  "Please check to be sure that Java is not disabled and" + "\n"+ "\'Reload\' the page."; 
	  alert(t); 
  }
  
}
//-------------------------

