• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 340
  • Last Modified:

Javascript error when processing HTML-file

I've got the following error-message:
An error has occured in the script on this page
Line 167
Char 7
Error: 'document.Frontpage_Form1.SIGNATURE' is not an object
Code: 0


This is the content of the HTML-page:

<html>

<head>
<title>itr_access</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<object id="MyId" classid="clsid:8FFB002F-CACE-11D1-B354-0020AFCA0C78"
codebase="http://spider.bc/cgi-bin/Components/WhoIsThis.ocx" align="baseline" border="0"
width="2" height="1">
</object>
<meta name="Microsoft Border" content="tl, default">
</head>

<body style="font-family: Arial; font-size: 8pt" background="_borders/rouages.jpg">

<table border="0" width="100%" bgcolor="#008080">
  <tr>
    <td width="100%"><h2 align="center"><font color="#FFFFFF">I want access rights to ITR:</font></h2>
    </td>
  </tr>
</table>

<form METHOD="POST" onsubmit="mailto:Geert.robberechts@belgacom.be" action="test2.asp">
  <input type="hidden"
  name="ACTION ------&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;"
  value="User wants a new access ITR please sign and forward to ISD Client Helpcenter"><div
  align="left"><h5>&nbsp;<img src="_borders/red_ball.gif" alt="red_ball.gif (263 bytes)"
  WIDTH="14" HEIGHT="14"> Please enter <em>your name:</em></h5>
  </div><div align="left"><p><input type="text" name="Naam" size="30"></p>
  </div><h5><img src="_borders/red_ball.gif" alt="red_ball.gif (263 bytes)" WIDTH="14"
  HEIGHT="14"><em> </em>Please enter<em> your PER-number:</em></h5>
  <p><input type="text" name="Per_number" size="20" maxlength="6"></p>
  <h5><img src="_borders/red_ball.gif" alt="red_ball.gif (263 bytes)" WIDTH="14" HEIGHT="14"><em>
  </em>Please enter <em>your coach:</em></h5>
  <p><select name="Coaches" size="5">
    <option value="CAR  Van Droogenbroeck Erik">CAR Van Droogenbroeck Erik</option>
    <option value="COR/FIN/IT Vermeulen Koen">COR/FIN/IT Vermeulen Koen</option>
    <option value="NTS/FIN Luystermans Johan">NTS/FIN Luystermans Johan</option>
    <option value="NTS/NAD/CHT/IAC1 Cavents Luc">NTS/NAD/CHT/IAC1 Cavents Luc</option>
    <option value="NTS/NAD/CHT/IAC2 Cavents Luc">NTS/NAD/CHT/IAC2 Cavents Luc</option>
    <option value="NTS/NAD/CHT/IAC3 Dusquesne Yves">NTS/NAD/CHT/IAC3 Dusquesne Yves</option>
    <option value="NTS/NAD/CHT/MGR Daniel Laermans">NTS/NAD/CHT/MGR Daniel Laermans</option>
    <option value="NTS/NAD/TCA Vandesompele Geert">NTS/NAD/TCA Vandesompele Geert</option>
    <option value="NTS/NAD/CTL1 Cuvelier Jean-Claude">NTS/NAD/CTL1 Cuvelier Jean-Claude</option>
    <option value="NTS/NAD/CTL2 Coucke Tim">NTS/NAD/CTL2 Coucke Tim</option>
    <option value="NTS/NAD/NMC Christiaens Jacques">NTS/NAD/NMC Christiaens Jacques</option>
    <option value="NTS/NAD/TSH Jacques Claude">NTS/NAD/TSH Jacques Claude</option>
    <option value="NTS/NAD/QUA Jan Willems">NTS/NAD/QUA Jan Willems</option>
    <option value="NTS/NPE/TP  Area Oost-VL De Roo José">NTS/NPE/TP Area Oost-VL De Roo José</option>
    <option value="NTS/NPE/BBN Desplanques Guido">NTS/NPE/BBN Desplanques Guido</option>
    <option value="NTS/NPE/INA Vande Keere Valentijn">NTS/NPE/INA Vande Keere Valentijn</option>
    <option value="NTS/NPE/LPE/Area1-2 Dhaeseleer Frank">NTS/NPE/LPE/Area1-2 Dhaeseleer Frank</option>
    <option value="NTS/NPE/LPE/Area3 Geets Olivier">NTS/NPE/LPE/Area3 Geets Olivier</option>
    <option value="NTS/NPE/LPE/Area4 Dufour Bernard">NTS/NPE/LPE/Area4 Dufour Bernard</option>
    <option value="NTS/NPE/NTI Hensmans Marc">NTS/NPE/NTI Hensmans Marc</option>
    <option value="NTS/NPE/PRO Desplanques Guido">NTS/NPE/PRO Desplanques Guido</option>
    <option value="NTS/NPE/SWE Rijckaert Gino">NTS/NPE/SWE Rijckaert Gino</option>
    <option value="NTS/PMC/HDQ/PRO De Doncker Hans">NTS/PMC/HDQ/PRO De Doncker Hans</option>
    <option value="NTS/PMC/HDQ/WFM Chauvier Jean-Pierre">NTS/PMC/HDQ/WFM Chauvier Jean-Pierre</option>
    <option value="NTS/PMC/Inside1-2 Carmans Jozef">NTS/PMC/Inside1-2 Carmans Jozef</option>
    <option value="NTS/PMC/Inside3-4 Gondry Eric">NTS/PMC/Inside3-4 Gondry Eric</option>
    <option value="NTS/PMC/Outside1 Vandeginste Johan">NTS/PMC/Outside1 Vandeginste Johan</option>
    <option value="NTS/PMC/Outside2 Cauwenberghs Luc">NTS/PMC/Outside2 Cauwenberghs Luc</option>
    <option value="NTS/PMC/Outside3 Casteleyn Luc">NTS/PMC/Outside3 Casteleyn Luc</option>
    <option value="NTS/PMC/Outside4 Jorion Jean-Paul">NTS/PMC/Outside4 Jorion Jean-Paul</option>
    <option value="NTS/TPM/BCL Loterie Claude">NTS/TPM/BCL Loterie Claude</option>
    <option value="NTS/TPM/CSS Corveleyn Filip">NTS/TPM/CSS Corveleyn Filip</option>
    <option value="NTS/TPM/DNM Dekoster Egied">NTS/TPM/DNM Dekoster Egied</option>
    <option value="NTS/TPM/INS Tilmans Renaud">NTS/TPM/INS Tilmans Renaud</option>
    <option value="NTS/TPM/LLC Deroo Diane">NTS/TPM/LLC Deroo Diane</option>
    <option value="NTS/TPM/NAD-Sup Normand Alain">NTS/TPM/NAD-Sup Normand Alain</option>
    <option value="NTS/TPM/NMG Depuydt Francis">NTS/TPM/NMG Depuydt Francis</option>
    <option value="NTS/TPM/NPE-Sup Decaluwe Yvan">NTS/TPM/NPE-Sup Decaluwe Yvan</option>
    <option value="NTS/TPM/PMC-Sup Van Der Stuyft Marc">NTS/TPM/PMC-Sup Van Der Stuyft Marc</option>
    <option value="NTS/TPM/SCG Vanden Broeck Wilfrid">NTS/TPM/SCG Vanden Broeck Wilfrid</option>
    <option value="NTS/TPM/SIL Olemans Gerrit">NTS/TPM/SIL Olemans Gerrit</option>
    <option value="NTS/TPM/SWI Michaux Jacques">NTS/TPM/SWI Michaux Jacques</option>
    <option value="NTS/TPM/TRM Daspremont Bernard">NTS/TPM/TRM Daspremont Bernard</option>
    <option value="Other Division/Departement">Other Division/Departement</option>
  </select></p>
  <h5><img src="_borders/red_ball.gif" alt="red_ball.gif (263 bytes)" WIDTH="14" HEIGHT="14"><em>
  Which security level do you want (default = code 172)&nbsp; Please click checkbox for
  other security codes:</em></h5>
  <table border="1" width="100%" height="111">
    <tr>
      <td width="33%" height="19"><input type="checkbox" name="*)Military_clearing _(Code81)"
      value="=&gt;OK 81">Military clearing (code 81)</td>
      <td width="33%" height="19"><input type="checkbox" name="*)Failure_management_(code104)"
      value="=&gt;OK 104">Failure management (code 104)</td>
      <td width="34%" height="19"><input type="checkbox"
      name="*)Notification_management_of_fixed_circuits_(code157)" value="=&gt;OK 157">Notification
      management of fixed circuits&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (code 157)</td>
    </tr>
    <tr>
      <td width="33%" height="19"><input type="checkbox"
      name="*)Cable_and_cable_bundles_(code83)" value="=&gt;OK 83">Cables and cablebundles (code
      83)</td>
      <td width="33%" height="19"><input type="checkbox" name="*)Transfert_management_(code103)"
      value="=&gt;OK 103">Transfert management (code 103)</td>
      <td width="34%" height="19"><input type="checkbox" name="*)P3_P9_(code158)"
      value="=&gt;OK 158">Deletion or putting in service of a routing&nbsp; P3,P9 (code 158)</td>
    </tr>
    <tr>
      <td width="33%" height="33"><input type="checkbox"
      name="*)Fixed_Circuits_and_commutation_bundles_(code84)" value="=&gt;OK 84">Fixed circuits
      and commutation bundles&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (code 84)</td>
      <td width="33%" height="33"><input type="checkbox"
      name="*)Notification_management_for_transmission_systems_(code128)" value="=&gt;OK 128">Notification
      management for transmission&nbsp;&nbsp; systems (code 128)</td>
      <td width="34%" height="33"><input type="checkbox"
      name="*)Correction_of_actual_routing_(code159)" value="=&gt;OK 159">Correction of actual
      routing (code 159)</td>
    </tr>
    <tr>
      <td width="33%" height="16"><input type="checkbox" name="*)Transmission_systems_(code85)"
      value="=&gt;OK 85">Transmission systems (code 85)</td>
      <td width="33%" height="16"><input type="checkbox"
      name="*)Notification_management_for_commutation_bundles_(code129)" value="=&gt;OK 129">Notification
      management for commutation&nbsp;&nbsp; bundles (code 129)</td>
      <td width="34%" height="16"><input type="checkbox"
      name="*)Confirmation_of_fixed_circuits_notification_(code160)" value="=&gt;OK 160">Confirmation
      of fixed circuits notification (code 160)</td>
    </tr>
    <tr>
      <td width="33%" height="16"><input type="checkbox" name="*)Equipments_(code102)"
      value="=&gt;OK 102">Equipments (code 102)</td>
      <td width="33%" height="16" valign="top"><input type="checkbox"
      name="*)Confirmation_of_notifications_(code130)" value="=&gt;OK 130">Confirmation of
      notifications transmission&nbsp;&nbsp;&nbsp; systems or commutation bundles (code 130)</td>
      <td width="34%" height="16"><input type="checkbox" name="*)SDH_management_(code171)"
      value="=&gt;OK 171">SDH management&nbsp; (code 171)</td>
    </tr>
    <tr>
      <td width="33%" height="16"><input type="checkbox"
      name="*)BDD_BLS_Fault_Management_(code66)" value="=&gt;OK 66">BDD/BLS fault management
      (code 66)</td>
      <td width="33%" height="16"></td>
      <td width="34%" height="16" valign="middle"></td>
    </tr>
    <tr>
      <td width="33%" height="16"><input type="checkbox" name="*)Consultation_(code172)"
      value="=&gt;OK 172" checked>Consultation (code 172)</td>
      <td width="33%" height="16"><input type="checkbox"
      name="*)International_cables_management_(code173)" value="=&gt;OK 173">International
      cables management (code 173)</td>
      <td width="34%" height="16" valign="middle"><input type="checkbox"
      name="*)Reservation_of_accesses_to_equipments_(code174)" value="=&gt;OK 174">Reservation
      of accesses to equipments (code 174)</td>
    </tr>
  </table>
  <h5><img src="_borders/red_ball.gif" alt="red_ball.gif (263 bytes)" WIDTH="14" HEIGHT="14">
  <em>Do you want to be a member of the ITR_User mailing list ? So you get informed by mail
  when there's a new migration of ITR ....etc</em></h5>
  <blockquote>
    <p><input type="radio" value="Yes" name="Mailing_list_ITR" checked><strong>YES</strong>=&gt;
    I want to be informed by mail</p>
    <p><input type="radio" value="NO" name="mailing_list_ITR"><strong>NO</strong>=&gt; I don't
    want to receive mail.</p>
  </blockquote>
  <p>&nbsp;</p>
  <p><input type="text" name="SIGNATURE"
  value="Attention Your request is not anonymus it is signed by your Per-number and IP-address !!"
  size="77" style="font-size: 5pt"> </p>
  <p><input type="submit" name="B1" value="Send this Form" onclick="getper()"><input
  type="reset" value="Reset this Form" name="B2"></p>
  <font face="Arial"><p><script language="JavaScript">
  <!--
      function getper()
      {
      
                document.FrontPage_Form1.SIGNATURE.value = MyId.pernumber ;
      }
  -->
  </script>&nbsp;</p>
</form>

<p> </p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</font>
</body>
</html>
0
geertrobberechts
Asked:
geertrobberechts
1 Solution
 
aarieCommented:
Because your form has no name assigned to it... There is no form called "FrontPage_Form1" in the code you posted above...

You can fix this by usign this line of html:

<form name="FrontPage_Form1" METHOD="POST" onsubmit="mailto:Geert.robberechts@belgacom.be" action="test2.asp">


Arjan.
0

Featured Post

2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

Tackle projects and never again get stuck behind a technical roadblock.
Join Now