<!--

function validate_coms(coms_form)
{  
 
  name_title_test = new RegExp(/^[^ ]/);
  var csUserAgent2 = String(navigator.userAgent);

  {
    
    if ((coms_form.coms_name.value==''))
    { 
      alert("Fill up your name.");
      coms_form.coms_name.focus();
      return false;
    }
    
    else if ((!name_title_test.test(coms_form.coms_name.value)))
    { 
      alert("Name was filled in unacceptable format. Check blank in name beginning.");
      coms_form.coms_name.focus();
      return false;
    }
    
    else if ((coms_form.coms_title.value==''))
    { 
      alert("Fill up your title.");
      coms_form.coms_title.focus();
      return false;
    }
    
    else if ((!name_title_test.test(coms_form.coms_title.value)))
    { 
      alert("Title was filled in unacceptable format. Check blank in title beginning.");
      coms_form.coms_title.focus();
      return false;
    }
    
    else if ((coms_form.coms_text.value==''))
    { 
      alert("Fill up your comment.");
      coms_form.coms_text.focus();
      return false;
    }
    
    else if ((!name_title_test.test(coms_form.coms_text.value)))
    { 
      alert("Comment was filled in unacceptable format. Check blank in comment beginning.");
      coms_form.coms_text.focus();
      return false;
    }
    else if ((coms_form.security_code.value==''))
    { 
      alert("Fill up characters from the image (anti-spam protection).");
      coms_form.security_code.focus();
      return false;
    }
   
    
    if ((csUserAgent2.indexOf("MSIE 5") > -1) || (csUserAgent2.indexOf("MSIE 6") > -1) || (csUserAgent2.indexOf("MSIE 7") > -1))  
		{
       
       if ((!document.coms_form.coms_zasady.checked))
       {
         alert("For comment dispatch you must agree with comments insertion rules.");
         return false;
       }
    
    }
    else
    {
       if ((coms_form.coms_zasady.checked!="1"))
       {
         alert("For comment dispatch you must agree with comments insertion rules.");
         return false;
       }
    
    }
    

  } 

return true;  
 
}

// -->
