Sample code to assign device names

<script language="JavaScript">
<!-- Comment for non-JavaScript browsers.  
// Add JavaScript code here to determine the device name.
    function getDeviceName()
    {
        return "myDevicePool";
    }

document.writeln( '<applet mayscript name="IBM3287Device"' );
document.writeln( ' code="com.wrq.rweb.Launcher.class"' );
document.writeln( ' codebase="./ex/"' );
document.writeln( ' width="0" height="0"' );
document.writeln( ' archive="Launcher.jar">' );
// Get the value for deviceName and put it into the applet parameter.
device = getDeviceName();
document.writeln( '<param name="deviceName" value="' + device + '">' );
// In the hostURL parameter, replace myHost with a valid host name or URL.
document.writeln( '<param name="hostURL" value="myHost">' );
document.writeln( '<param name="autoconnect" value="true">' );
document.writeln( '<param name="frame" value="true">' );
document.writeln( '<param name="menuType" value="advanced">' );
document.writeln( '<param name="autoDetect" value="true">');
document.writeln( '<param name="launcher.sessions" value="IBM3287">');
document.writeln( '</applet>' );
    
// End of comment -->
</script>