Registration Wine Club

<!-- Note :
   - You can modify the font style and form style to suit your website. 
   - Code lines with comments “Do not remove this code”  are required for the form to work properly, make sure that you do not remove these lines of code. 
   - The Mandatory check script can modified as to suit your business needs. 
   - It is important that you test the modified form before going live.-->
<div id='crmWebToEntityForm' style='width:600px;margin:auto;'>
   <META HTTP-EQUIV ='content-type' CONTENT='text/html;charset=UTF-8'>
   <form action='https://crm.zoho.com/crm/WebToContactForm'  name=WebToContacts1414651000001842027 method='POST' onSubmit='javascript:document.charset="UTF-8"; return checkMandatory()' accept-charset='UTF-8'>

     <!-- Do not remove this code. -->
    <input type='text' style='display:none;' name='xnQsjsdp' value='16baae245de850681a5fd4b4aa7908a7e2e8551586d2b868efdf3734e2d5380d'/>
    <input type='hidden' name='zc_gad' id='zc_gad' value=''/>
    <input type='text' style='display:none;' name='xmIwtLD' value='33af1988ca9ae9e2632c741a27ded68f42ff5211e8d64430ead9ef6e3a77b17c'/>
    <input type='text' style='display:none;'  name='actionType' value='Q29udGFjdHM='/>

    <input type='text' style='display:none;' name='returnURL' value='https&#x3a;&#x2f;&#x2f;www.winesargentinaexpress.com' /> 
     <!-- Do not remove this code. -->
    <style>
        tr , td { 
            padding:6px;
            border-spacing:0px;
            border-width:0px;
            }
    </style>
    <table style='width:600px;background-color:white;color:black'>

    <tr><td colspan='2' style='text-align:left;color:black;font-family:Arial;font-size:14px;'><strong>Registration Wine Club</strong></td></tr>

    <tr><td  style='nowrap:nowrap;text-align:left;font-size:12px;font-family:Arial;width:200px;'>Apellidos<span style='color:red;'>*</span></td><td style='width:250px;' ><input type='text' style='width:250px;'  maxlength='80' name='Last Name' /></td></tr>

    <tr><td  style='nowrap:nowrap;text-align:left;font-size:12px;font-family:Arial;width:200px;'>Nivel de Contacto para wine<span style='color:red;'>*</span></td><td style='width:250px;'>
        <select style='width:250px;' name='CONTACTCF9'>
            <option value='-None-'>-None-</option>
            <option value='contacto&#x20;face&#x20;'>contacto face </option>
            <option value='Contacto&#x20;General'>Contacto General</option>
            <option value='Contacto&#x20;de&#x20;Bodega&#x20;'>Contacto de Bodega </option>
            <option value='Contacto&#x20;de&#x20;Hotel'>Contacto de Hotel</option>
            <option value='Amigo&#x20;de&#x20;un&#x20;amigo'>Amigo de un amigo</option>
            <option value='cliente&#x20;de&#x20;Wine&#x20;flite&#x20;'>cliente de Wine flite </option>
            <option value='Ciiente&#x20;de&#x20;achaval&#x20;'>Ciiente de achaval </option>
            <option value='Cliente&#x20;de&#x20;Wines&#x20;Argentina&#x20;Express'>Cliente de Wines Argentina Express</option>
            <option value='Contacto&#x20;de&#x20;Linkeding&#x20;'>Contacto de Linkeding </option>
            <option value='Otra&#x20;Fuente&#x20;Posible&#x20;Cliente&#x20;'>Otra Fuente Posible Cliente </option>
            <option value='Contacto&#x20;por&#x20;mailing&#x20;'>Contacto por mailing </option>
            <option value='Contacto&#x20;por&#x20;internet&#x20;'>Contacto por internet </option>
        </select></td></tr>

    <tr><td  style='nowrap:nowrap;text-align:left;font-size:12px;font-family:Arial;width:200px;'>Contacto para campa&ntilde;as<span style='color:red;'>*</span></td><td style='width:250px;'>
        <select style='width:250px;' name='CONTACTCF10'>
            <option value='-None-'>-None-</option>
            <option value='Activo'>Activo</option>
            <option value='Para&#x20;Contactar'>Para Contactar</option>
            <option value='Suscripci&oacute;n&#x20;cancelada'>Suscripci&oacute;n cancelada</option>
        </select></td></tr>

    <tr><td colspan='2' style='text-align:center; padding-top:15px;'>
        <input style='font-size:12px;color:#131307' type='submit' value='Enviar' />
        <input type='reset' style='font-size:12px;color:#131307' value='Restablecer' />
        </td>
    </tr>
   </table>
    <script>
       var mndFileds=new Array('Last Name','CONTACTCF9','CONTACTCF10');
       var fldLangVal=new Array('Apellidos','Nivel de Contacto para wine','Contacto para campañas');
        var name='';
        var email='';

       function checkMandatory() {
        for(i=0;i<mndFileds.length;i++) {
          var fieldObj=document.forms['WebToContacts1414651000001842027'][mndFileds[i]];
          if(fieldObj) {
            if (((fieldObj.value).replace(/^s+|s+$/g, '')).length==0) {
             if(fieldObj.type =='file')
                { 
                 alert('Seleccione un archivo para cargar.'); 
                 fieldObj.focus(); 
                 return false;
                } 
            alert(fldLangVal[i] +' no puede estar vacío.'); 
                      fieldObj.focus();
                      return false;
            }  else if(fieldObj.nodeName=='SELECT') {
                     if(fieldObj.options[fieldObj.selectedIndex].value=='-None-') {
                alert(fldLangVal[i] +' no puede ser nulo.'); 
                fieldObj.focus();
                return false;
               }
            } else if(fieldObj.type =='checkbox'){
                if(fieldObj.checked == false){
                alert('Please accept  '+fldLangVal[i]);
                fieldObj.focus();
                return false;
               } 
             } 
             try {
                 if(fieldObj.name == 'Last Name') {
                name = fieldObj.value;
                   }
            } catch (e) {}
            }
        }
         }
       
</script>
    </form>
</div>