
/* Note that the logic below always launches the JNLP application
 *if the browser is Gecko based. This is because it is not possible
 *to detect MIME type application/x-java-jnlp-file on Gecko-based browsers. 
 */
function jawsLaunch(linkURL,imgURL,linkINSTALL){
    if (javawsInstalled || (navigator.userAgent.indexOf("Gecko") !=-1)) {
        document.write("<p>Simply click the button below and download, install and run The Loans Tool Box.</p>");
        document.write("<p>When prompted choose 'run' or 'open' (rather than 'save'), and the installation should proceed automatically. </p>");
        document.write("<a href='" + linkURL + "'><img src='" + imgURL + "' alt='Launch!' /></a>");
    } else {
        document.write("<p>We have detected that you do not yet have the required software to run The Loans Tool Box.</p>");
        document.write("<p>Click ");
        document.write("<a href=http://java.sun.com/PluginBrowserCheck?pass=" + linkINSTALL + "&fail=http://java.sun.com/javase/downloads/index.jsp>here</a> ");
        document.write("to download and install the Java Runtime Environment and the Loans Tool Box.");
    }
} 

