title: I am getting an error: "Unexpected token <" in a javascript file that i used as part of an online banking project.I have attached the file below
body: <pre><code>&lt;SCRIPT LANGUAGE="JavaScript"&gt;
  
              function num_only()
                      {
                          var keyASCII = window.event.keyCode;
                          var keyValue = String.fromCharCode(keyASCII);
                              if (!(keyValue &gt;= '0' &amp;&amp; keyValue &lt;= '9'))
                                  {
                                      window.event.keyCode=0;
                                      alert ("please enter numeric value");
                                  }
                      }
  function check()
      {
          var td=document.dfrm.tdd.value; var tm=document.dfrm.tmm.value; var ty=document.dfrm.tyy.value;
          var fd=document.dfrm.fdd.value; var fm=document.dfrm.fmm.value; var fy=document.dfrm.fyy.value; 
          if(td=="" ){
              alert("Please Enter All Fields");
              //td.select();
              return false;
              } 
          else if(tm=="" ){
              alert("Please Enter All Fields");
              //tm.select();
              return false;
              } 
  
          else if (ty=="") {
              alert("Please Enter All Fields");
              //ty.select();
              return false;
              } 
  
          else if(fd=="") {
              alert("Please Enter All Fields");
              //fd.select();
              return false;
              } 
           else if(fm=="" ){
              alert("Please Enter All Fields");
              //fm.select();
              return false;
              } 
              else if( fy==""){
              alert("Please Enter All Fields");
              //fy.select();
              return false;
              } 
      }
  &lt;/SCRIPT&gt;
  </code></pre>