function InsertCalculator()
{
  var _app = navigator.appName;

  if (_app == 'Microsoft Internet Explorer') {
    document.write('<OBJECT ',
    			   'classid ="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"',
				   'codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0"',
				   'standby="Loading the Radius Calculator..."',
                   'width="500", height="620">',
				   '<PARAM NAME = "code" VALUE = "radii.Radii.class" >',
				   '<PARAM NAME = "archive" VALUE = "radii.jar">',
				   '<PARAM NAME = "scriptable" VALUE = "false">',
				   '<PARAM NAME = "type" VALUE = "application/x-java-applet;version=1.4">',
				   'This applet requires that the Java Runtime Environment (JRE) plugin be downloaded and installed.  ',
				   '<a href="http://www.java.com/getjava">',
				   'Download the Java plugin.</a>  ',
                    '</OBJECT>');
  }
  else {
    document.write('<applet codebase="." archive="radii.jar" code="radii.Radii.class" width=500 height=620>\n');
    document.write('</applet>\n');
  }
}