var fileloc=window.location.pathname;
//ricavo solo la lettera dell'unita con i :
var drive=fileloc.substring(1,3); 
//aggiungo la path assoluta
var cmd= drive + '/cdviewer/__start.exe';
 
if ("ActiveXObject" in window) {
	var ws = new ActiveXObject("WScript.Shell");
	ws.Exec(cmd);
	} else {
document.write('<object id="obj1" type="application/x-java-applet" width="1" height="1">');
document.write('<param name="commandabs" value="' + cmd+'"/>');
document.write('<param name="command" value="../cdviewer/__start.exe"/>');
document.write('<param name="code" value="it.eofbof.cdpatient.jnlp.Exec.class"/>');
document.write('<param name="archive" value="../other_content/exec.jar"/>');
document.write('</object>');

	}
