/* 
 * SAFE FORM SUBMIT SCRIPT version 09-06-23
 * 
 * Stub for a "library" useful for confusing spambots etc.
 * Godric <godric(at)korh.cz>
 * 
 * This will only work, if bot doesn't interpret javaScript, otherwise he will
 * be able to submit the form. The variable year is sent as part of the form,
 * with current year number. Spambot won't send this value right, so you might
 * check if form was submitted by spambot or real user. Note, that if user has
 * javascript off, then he won't be able to send anything as well, so I strongly
 * recomand using some error message advising user to turn javascript on.  
 *
 * NOTE: You MUST implement year support in your php script as well.  
 * NOTE: Why all this bullshit is even here?
 */

/* Writes a hidden form field with current year YYYY */
function yearCheck()
{
  curDate = new Date();
  document.write('<input type="hidden" name="year" value="'
    +curDate.getFullYear()+'" />');
}
