function startApplet(IP, roomNumber, fullScreen) { var iframe = document.createElement("iframe"); iframe.id = "iframe"; document.body.appendChild(iframe); frames[frames.length - 1].document.write( "" + "" + "" + "" + "" + "" ); } function removeFrame () { var iframe = document.getElementById("iframe"); iframe.parentNode.removeChild(iframe); } function setScreenCoordinates(x, y) { return frames[frames.length - 1].document.DeskShareApplet.setScreenCoordinates(x,y); } function stopApplet(){ frames[frames.length - 1].document.DeskShareApplet.destroy(); removeFrame(); } function checkForJava(){ // if (navigator.javaEnabled() || window.navigator.javaEnabled()) return 1; }