script -- explain


  
  <script language="JavaScript">
  /*
   * This is the JavaScript function that makes the example work. Note that
   * this script defines the calculate() function called by the event
   * handlers in the form. The function reads values from the form
   * <input> fields using the names defined in the HTML code above.  It outputs
   * its results into the named <span> elements.
   */