%D \module
%D   [       file=java-ans,
%D        version=1998.06.01,
%D          title=\CONTEXT\ JavaScript Macros,
%D       subtitle=Answer Analyzation,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA / Hans Hagen \& Ton Otten}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See licen-en.pdf for 
%C details. 

\startJSpreamble{Do_Check_Answer} used later 

  function Do_Check_Answer (field, value) 
   { if (event.value.toLowerCase()==value.toLowerCase())
       { event.target.hidden = true }
     return("\040") } // funny, "" does not work

\stopJSpreamble

\startJScode{Check_Answer} uses {Do_Check_Answer}
  event.value = Do_Check_Answer(JS_S_1, JS_S_2) ; 
\stopJScode

\endinput
