My web form required fields are not working

My web form required fields are not working

Our form was working for some time and now it will not validate the required fields. In other words, you can just click submit and the form goes through. 

Here is the source code. Notice the word Mandatory is spelled wrong. Not sure if that is an issue. We actually corrected it in our code to see if that fixed it and it did not. 

<div id='crmWebToEntityForm' align='center'><META HTTP-EQUIV ='content-type' CONTENT='text/html;charset = UTF-8'>  <form action='https://crm.zoho.com/crm/WebToLeadForm' name=WebToLeads860326000000064001 method='POST' onSubmit='javascript:document.charset="UTF-8"; return checkMandatery()' accept-charset='UTF-8'>  <input type='text' style='display:none;' name='xnQsjsdp' value='wfU19@tKjulthYo@kRl79w$$'/>  <input type='hidden' name='zc_gad' id='zc_gad' value=''/>  <input type='text' style='display:none;' name='xmIwtLD' value='kNwTZYpnvQZGDX@tVLTfIG-@B6-MHnNR'/>  <input type='text'  style='display:none;' name='actionType' value='TGVhZHM='/> <input type='text' style='display:none;' name='returnURL' value='http&#x3a;&#x2f;&#x2f;www.brochure-design-service.com&#x2f;' /> <br><table border=0 cellspacing=0 cellpadding='6' width=600 style='background-color:white;color:black'><tr><td colspan='2' align='left' style='color:black;font-family:Arial;font-size:14px;'><strong>New Toolkits</strong></td></tr> <br><tr><td><span owrap='nowrap'  style='font-size:12px;font-family:Arial;width:200px;line-height: 22px;'>First Name<span style='color:red;'>*</span></span><br><input type='text' maxlength='40' style='width:250px;' name='First Name'></input></td></tr><tr><td><span owrap='nowrap'  style='font-size:12px;font-family:Arial;width:200px;line-height: 22px;'>Last Name<span style='color:red;'>*</span></span><br><input type='text' maxlength='80' style='width:250px;' name='Last Name'></input></td></tr><tr><td><span owrap='nowrap'  style='font-size:12px;font-family:Arial;width:200px;line-height: 22px;'>Email<span style='color:red;'>*</span></span><br><input type='text' maxlength='100' style='width:250px;' name='Email'></input></td></tr><tr><td><span owrap='nowrap'  style='font-size:12px;font-family:Arial;width:200px;line-height: 22px;'>Company</span><br><input type='text' maxlength='100' style='width:250px;' name='Company'></input></td></tr><tr><td colspan='2'style='padding-top: 15px;' ><input   style='font-size:12px;color:black' type='submit'  value='Get Catalog' /> <input type='reset'  style='font-size:12px;color:black' value='Reset' /> </td></tr></table><script> var mndFileds=new Array('First Name','Last Name','Email');var fldLangVal=new Array('First Name','Last Name','Email');function reloadImg(){if(document.getElementById('imgid').src.indexOf('&d') !== -1 ){document.getElementById('imgid').src=document.getElementById('imgid').src.substring(0,document.getElementById('imgid').src.indexOf('&d'))+'&d'+new Date().getTime();}else{document.getElementById('imgid').src = document.getElementById('imgid').src+'&d'+new Date().getTime();}}function checkMandatery(){for(i=0;i<mndFileds.length;i++){ var fieldObj=document.forms['WebToLeads860326000000064001'][mndFileds[i]];if(fieldObj) {if(((fieldObj.value).replace(/^\s+|\s+$/g, '')).length==0){alert(fldLangVal[i] +' cannot be empty'); fieldObj.focus(); return false;}else if(fieldObj.nodeName=='SELECT'){if(fieldObj.options[fieldObj.selectedIndex].value=='-None-'){alert(fldLangVal[i] +' cannot be none'); fieldObj.focus(); return false;}} else if(fieldObj.type =='checkbox'){ if (fieldObj.checked == false){     alert('Please accept  '+fldLangVal[i]); fieldObj.focus();return false;}}}}}</script>  </form></div> 


Moderation Update:


The primary reason behind the submissions through webform not coming into CRM is when the mandatory components of the script from CRM are disturbed when embedding to the website. We want to inform you that it is not an issue. Therefore, if you face the challenge of submissions from the webform not coming in, please feel free to start a new post or reach our support. We will help sort it out.
Thank you.