HEX
Server: Apache/2.2.15 (CentOS)
System: Linux ip-10-0-2-146.eu-west-1.compute.internal 2.6.32-754.35.1.el6.centos.plus.x86_64 #1 SMP Sat Nov 7 11:33:42 UTC 2020 x86_64
User: root (0)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: /www/exchange0old/exchange/cache/%%49^492^492A098D%%addinvestor.html.php
<?php /* Smarty version 2.6.19, created on 2024-06-25 12:42:20
         compiled from intermediary/addinvestor.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'siteUrl', 'intermediary/addinvestor.html', 3, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<link type="text/css" href="<?php echo ((is_array($_tmp='/css/bootstrap.min.css')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
" rel="stylesheet" />
<script type="text/javascript" src="<?php echo ((is_array($_tmp='/js/bootstrap.min.js')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
"></script>


<table cellspacing="0" cellpadding="0" border="0" width="100%">

  <tr>
  <td align="left" valign="top">
  
  <table cellspacing="0" cellpadding="0" border="0" width="100%">
    <tr>
      <td align="center" valign="top">&nbsp;</td>
    </tr>
    <tr>
      <td align="left" valign="middle" class="login_bg"><table cellspacing="0" cellpadding="0" border="0" width="100%">
          
            <tr>
              <td align="left" width="52%" valign="middle" class="login_bg_t">Exchange Trade Centre | Create New Investor</td>
              <td align="right" width="48%" valign="middle" class="txt_11"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'originator_top_dashboard_links.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
            </tr>
          
        </table>
       </td>
       </tr>
    <tr> 
    
    <td align="center" valign="top" class="about_c">
    
    <table cellspacing="5" cellpadding="5" border="0" width="100%">
      
      <tr>
      
      <td align="left" width="18%" valign="top"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'left_sidebar.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
      <td align="right" width="82%" valign="top" id="tool">
      
	<form action="index.php?do=savenewinvestor" method="post" enctype="multipart/form-data" onsubmit="return submitForm(this);">
        <table cellspacing="0" cellpadding="3" border="0" width="100%" class="table table-hover table-striped table-responsive">
            <tr>
              <td align="left" valign="middle" class="inves_top1" colspan="3">Retailer Investor Details</td>
              <td colspan="2" valign="top" class="inves_top1">Capital & Quote Details</td>
            </tr>
          <tr>
            <td colspan="5">
			<?php if ($_SESSION['message'] != ''): ?>
			<div class="success-msgbox"><?php echo $_SESSION['message']; ?>
</div>
			<?php endif; ?>

</td>
          </tr>

					<tr>				
				        <td align="center" valign="top" class="txt_11_red" width="2">*</td>
					<td width="23%" valign="top" align="left">First Name :</td>
					<td width="38%" valign="top" align="left"><input type="text" tabindex="1" size="30" class="text_b" value="<?php echo $this->_tpl_vars['errval']['first_name']; ?>
" name="first_name"> <a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['0']['content']; ?>
">(?)</a><br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['first_name']; ?>
<!--<p class="txt_11_cute"> Spaces are allowed; punctuation is not allowed except for periods, hyphens and underscores.</p>--></td>
					<td width="14%" valign="top" align="left" class="clsRghtBdr">Completed :</td>
					<td width="25%" valign="top" align="left">	
					<input type="radio" tabindex="23" style="vertical-align:middle;" id="confirm_type" name="confirm_type" value="0" onclick="javascript:loadFields(0);" <?php if ($this->_tpl_vars['errval']['confirm_type'] == '0'): ?>checked="checked"<?php endif; ?>checked="checked" /> Online &nbsp;&nbsp;&nbsp;<input type="radio" tabindex="24" style="vertical-align:bottom;" id="confirm_type" name="confirm_type" value="1" onclick="javascript:loadFields(1);" <?php if ($this->_tpl_vars['errval']['confirm_type'] == '1'): ?>checked="checked"<?php endif; ?> /> Manually  <a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['14']['content']; ?>
">(?)</a><br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['confirm_type']; ?>
</td>
					</tr>

					<tr>
				        <td align="center" valign="top" class="txt_11_red" width="2">&nbsp;</td>
					<td width="22%" valign="top" align="left">Middle Name :</td>
					<td width="38%" valign="top" align="left"><input type="text" tabindex="2" size="30" class="text_b" value="<?php echo $this->_tpl_vars['errval']['middle_name']; ?>
" name="middle_name"> <a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['1']['content']; ?>
">(?)</a><br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['middle_name']; ?>
</td>
					<td valign="top" align="left"><sup style="color: red;">*</sup>  Currency </td>
                    <td valign="top" align="left">
                        <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../admin/templates/common/currencies.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>    
                    </td>
					</tr>
                    
					<tr>	
				        <td align="center" valign="top" class="txt_11_red" width="2">*</td>
					<td  valign="top" align="left">Last Name :</td>
					<td  valign="top" align="left"><input type="text" tabindex="3" size="30" class="text_b" value="<?php echo $this->_tpl_vars['errval']['last_name']; ?>
" name="last_name"> <a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['2']['content']; ?>
">(?)</a><br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['last_name']; ?>
</td>
					<td width="14%" valign="top" align="left" class="clsRghtBdr">Amount :</td>
                    <td width="25%" valign="top" align="left">
                        <input name="amount" tabindex="25" type="text" class="text_ph_code text_seven" style="width:105px;font-weight:bold;" value="<?php echo $this->_tpl_vars['errval']['amount']; ?>
"  size="30" maxlength="13"> <a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['15']['content']; ?>
">(?)</a><br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['amount']; ?>
</td>
					</tr>

					<tr>		
				        <td align="center" valign="top" class="txt_11_red" width="2"><span id="mand_id" class="txt_11_red">*</span></td>
					<td  valign="top" align="left">Email Address : </td>
					<td  valign="top" align="left"><input type="text" tabindex="4" size="30" class="text_b" value="<?php echo $this->_tpl_vars['errval']['email']; ?>
" name="email"> <a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['3']['content']; ?>
">(?)</a><br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['email']; ?>
</td>
					<td valign="top" align="left" class="clsRghtBdr" colspan="2"></td>
                     
					</tr>

					<tr>			
				        <td align="center" valign="top" class="txt_11_red" width="2">*</td>
					<td  valign="top" align="left">Date Of Birth :</td>
					<td  valign="top" align="left"><input type="text" tabindex="5" size="30" class="text_b_small" value="<?php echo $this->_tpl_vars['errval']['dob']; ?>
" name="dob"> 
					<a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['4']['content']; ?>
">(?)</a>  <span>Use format: 1980-11-21</span><br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['dob']; ?>
</td>
                    <td valign="top" align="left" class="clsRghtBdr">Quoted Rate :</td>
                    <td valign="top" align="left">
                    <input type="text" tabindex="28" size="30" class="text_ph_code text_seven" value="<?php echo $this->_tpl_vars['errval']['quote_rate']; ?>
" name="quote_rate"> % <a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['17']['content']; ?>
">(?)</a><br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['quote_rate']; ?>
</td>
					
					</tr>

					<tr>			
				        <td align="center" valign="top" class="txt_11_red" width="2">*</td>
					    <td  valign="top" align="left">Home Address 1st Line :</td>
					    <td  valign="top" align="left"><input type="text" tabindex="6" size="30" class="text_b" value="<?php echo $this->_tpl_vars['errval']['address_one']; ?>
" name="address_one"> <a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['5']['content']; ?>
">(?)</a><br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['address_one']; ?>
</td>
					<td valign="top" align="left" class="clsRghtBdr" colspan="2"><input type="radio" tabindex="29" style="vertical-align:middle;" onclick="javascript:getdpval(0);" id="dp_type" name="dp_type" value="0" <?php if ($this->_tpl_vars['errval']['dp_type'] == '0'): ?>checked="checked"<?php endif; ?>checked="checked" /> Deposit &nbsp;&nbsp;&nbsp;<input type="radio" tabindex="30" style="vertical-align:bottom;" onclick="javascript:getdpval(1);" id="dp_type" name="dp_type" value="1" <?php if ($this->_tpl_vars['errval']['dp_type'] == '1'): ?>checked="checked"<?php endif; ?> /> Pension <?php echo $this->_tpl_vars['trustee_organisation']; ?>
 <a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['18']['content']; ?>
">(?)</a><br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['dp_organisation']; ?>
</td>
					</tr>

					<tr>			
				        <td align="center" valign="top" class="txt_11_red" width="2">&nbsp;</td>
		
					<td  valign="top" align="left">Home Address 2nd Line :</td>
					<td  valign="top" align="left"><input type="text" tabindex="7" size="30" class="text_b" value="<?php echo $this->_tpl_vars['errval']['address_two']; ?>
" name="address_two"> <a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['6']['content']; ?>
">(?)</a><br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['address_two']; ?>
</td>
                    <td id="rpa_row2" valign="top" align="left" class="clsRghtBdr" colspan="2">&nbsp;</td>
                    <td id="rpa_row" style="display:none;" valign="top" align="left" class="clsRghtBdr" colspan="2">Signed&nbsp;RPA&nbsp;Agreement :</td>
					
					</tr>
					<tr>			
				        <td align="center" valign="top" class="txt_11_red" width="2">*</td>
		
					<td  valign="top" align="left">Postcode :</td>
					<td  valign="top" align="left"><input type="text" tabindex="8" size="30" class="text_b_small" value="<?php echo $this->_tpl_vars['errval']['postal_code']; ?>
" name="postal_code"> <a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['7']['content']; ?>
">(?)</a><br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['postal_code']; ?>
</td>
					<td id="rpa_row1" style="display:none;" valign="top" align="left" class="clsRghtBdr" colspan="2"><input type="file"  tabindex="31" class="browse" name="signed_rpa" size="22"><br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['signed_rpa']; ?>
</td>
					</tr>

					<tr>				
				        <td align="center" valign="top" class="txt_11_red" width="2">&nbsp;</td>
	
					<td  valign="top" align="left">Town/City :</td>
					<td  valign="top" align="left"><input type="text" tabindex="9" size="30" class="text_b" value="<?php echo $this->_tpl_vars['errval']['city']; ?>
" name="city"> <a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['8']['content']; ?>
">(?)</a><br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['city']; ?>
</td>
					<td valign="top" align="left">&nbsp;</td>
					<td valign="top" align="left">&nbsp;</td>
					</tr>
					<tr>
				        <td align="center" valign="top" class="txt_11_red" width="2">&nbsp;</td>
					<td  valign="top" align="left">County/Area :</td>
					<td  valign="top" align="left"><span id="dropState"><input type="text" tabindex="10" size="30" class="text_b" value="<?php echo $this->_tpl_vars['errval']['state']; ?>
" name="state"> <a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['9']['content']; ?>
">(?)</a><br/><span style="color:#FF0000"><?php echo $this->_tpl_vars['errmsg']['state']; ?>
</td>
					<td valign="top" align="left">&nbsp;</td>
					<td valign="top" align="left">&nbsp;</td>
					</tr>

					<tr>			
				        <td align="center" valign="top" class="txt_11_red" width="2">*</td>
					    <td  valign="top" align="left">Country :</td>
					    <td  valign="top" align="left"><?php 
					$errors=$this->get_template_vars('errval');

					 echo  CreateOption('country',$errors['country'],'country_mas')  ?> <a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['10']['content']; ?>
">(?)</a><br><span style="color: rgb(255, 0, 0);"><?php echo $this->_tpl_vars['errmsg']['country']; ?>
</span>

					</td>
					<td valign="top" align="left">&nbsp;</td>
					<td valign="top" align="left">&nbsp;</td>
					</tr>

					<tr>		
				        <td align="center" valign="top" class="txt_11_red" width="2">*</td>
			
					<td  valign="top" align="left">Home Phone Number :</td>
					<td align="left" valign="top"><input type="text" tabindex="12" maxlength="5" size="5" class="text_c_code" value="<?php if ($this->_tpl_vars['errval']['hc_code'] != ''): ?><?php echo $this->_tpl_vars['errval']['hc_code']; ?>
<?php else: ?>00353<?php endif; ?>" name="hc_code">&nbsp;&nbsp;<input type="text"  tabindex="13" maxlength="3" size="3" class="text_area_code" value="<?php echo $this->_tpl_vars['errval']['ha_code']; ?>
" name="ha_code">&nbsp;&nbsp;<input type="text" tabindex="14" maxlength="8" size="8" class="text_ph_code" value="<?php echo $this->_tpl_vars['errval']['hph_code']; ?>
" name="hph_code"><a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['11']['content']; ?>
">(?)</a><br/>
					  <?php if ($this->_tpl_vars['errmsg']['hc_code'] == '' || $this->_tpl_vars['errmsg']['ha_code'] == '' || $this->_tpl_vars['errmsg']['hph_code'] == ''): ?>
					  <span style="color:#FF0000;"><?php echo $this->_tpl_vars['errmsg']['directdial']; ?>
</span>
					  <?php endif; ?>
					  </td>
                      <td valign="top" align="left">&nbsp;</td>
                      <td valign="top" align="left">&nbsp;</td>
					</tr>
					<tr style="margin-top:0px;">
				        <td align="center" valign="top" class="txt_11_red" width="2"> </td>
					<td  valign="top" align="left">&nbsp;</td>
					<td colspan="3" align="left" valign="top">&nbsp;&nbsp;<input type="label" size="6" class="txt_11_cute" value="Country">&nbsp;&nbsp;<input type="label" size="3" class="txt_11_cute" value="Area">&nbsp;&nbsp;
					  <input type="label"  class="txt_11_cute" value="Phone Number" /></td>
					</tr>


					<tr>	
				        <td align="center" valign="top" class="txt_11_red" width="2">&nbsp;</td>
					    <td  valign="top" align="left">Official Phone Number (Direct Dial) :</td>
					    <td colspan="3" align="left" valign="top"><input type="text" tabindex="15" maxlength="5" size="5" class="text_c_code" value="<?php echo $this->_tpl_vars['errval']['oc_code']; ?>
" name="oc_code">&nbsp;&nbsp;<input type="text" tabindex="16" maxlength="3" size="3" class="text_area_code" value="<?php echo $this->_tpl_vars['errval']['oa_code']; ?>
" name="oa_code">&nbsp;&nbsp;<input type="text" tabindex="17" maxlength="8" size="8" class="text_ph_code" value="<?php echo $this->_tpl_vars['errval']['oph_code']; ?>
" name="oph_code"> <a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['12']['content']; ?>
">(?)</a><br/>
					  </td>
					</tr>

 					<tr style="margin-top:0px;">
				        <td align="center" valign="top" class="txt_11_red" width="2"> </td>
					<td  valign="top" align="left">&nbsp;</td>
					<td colspan="3" align="left" valign="top">&nbsp;&nbsp;<input type="label" size="6" class="txt_11_cute" value="Country">&nbsp;&nbsp;<input type="label" size="3" class="txt_11_cute" value="Area">&nbsp;&nbsp;<input type="label"  class="txt_11_cute" value="Phone Number"></td>
					</tr>
					
 
					<tr>					
				        <td align="center" valign="top" class="txt_11_red" width="2">*</td>
					<td  valign="top" align="left">Mobile Phone Number :</td>
					<td colspan="3" align="left" valign="top"><input type="text" tabindex="18" maxlength="5" size="5" class="text_c_code" value="<?php if ($this->_tpl_vars['errval']['mc_code'] != ''): ?><?php echo $this->_tpl_vars['errval']['mc_code']; ?>
<?php else: ?>00353<?php endif; ?>" name="mc_code">&nbsp;&nbsp;<input type="text" tabindex="19" maxlength="3" size="3" class="text_area_code" value="<?php echo $this->_tpl_vars['errval']['ma_code']; ?>
" name="ma_code">&nbsp;&nbsp;<input type="text" tabindex="20" maxlength="8" size="8" class="text_ph_code" value="<?php echo $this->_tpl_vars['errval']['mph_code']; ?>
" name="mph_code"> <a href="javascript:void(0);" class="under" title="<?php echo $this->_tpl_vars['help']['13']['content']; ?>
">(?)</a><br/>
					  <?php if ($this->_tpl_vars['errmsg']['mc_code'] == '' || $this->_tpl_vars['errmsg']['ma_code'] == '' || $this->_tpl_vars['errmsg']['mph_code'] == ''): ?>
					  <span style="color:#FF0000;"><?php echo $this->_tpl_vars['errmsg']['mobile']; ?>
</span>
					  <?php endif; ?>
					  </td>
					</tr>

					


					<tr>
				        <td align="center" valign="top" class="txt_11_red" width="2">&nbsp;</td>
					<td colspan="4" valign="top" align="center"><b>Know Your Customer [KYC] & Anti-Money Laundering [AML] Documentation</b></td>
					</tr>



				<tr>
                                <td align="center" valign="middle" colspan="5"><table cellspacing="0" cellpadding="0" border="0" width="100%">
                                    <tbody>
                                      <tr >
                                        <td align="right" width="25%" valign="middle" >Passport/Driving&nbsp;License&nbsp;:</td>
                                        <td align="left" width="25%" valign="middle"><input type="file"  tabindex="21" class="browse" name="p_passport" size="13"></td>
                                        <td align="right" width="25%" valign="middle">
                                            <span data-toggle="tooltip" data-placement="top" title="Bank statement must match the bank details on the application." >
                                                <i class="glyphicon glyphicon-info-sign"></i>
                                            </span>
                                            Bank Statement :
                                        </td>
                                        <td align="left" width="25%" valign="middle"><input type="file"  tabindex="22" class="browse" name="b_bill" size="13"></td>
                                      </tr>
                                    </tbody>
                                  </table>
								<?php if ($this->_tpl_vars['errmsg']['p_passport'] != '' || $this->_tpl_vars['errmsg']['b_bill'] != ''): ?>
                                  <br/>
                                  <span style="color:#FF0000;float:left;">
                                  <?php echo $this->_tpl_vars['errmsg']['p_passport']; ?>

                                  </span>

                                  <span style="color:#FF0000;float:right;">
                                  <?php echo $this->_tpl_vars['errmsg']['b_bill']; ?>

                                  </span>

				<?php endif; ?>
				</td>
    </tr>
    
    <tr>
        <td align="left" valign="top" class="inves_top1" colspan="5">
            Additional Names
            
            <button type="button" class="btn btn-sm btn-primary" onclick="addNewName()">
                <i class="glyphicon glyphicon-plus" style="color: white;"></i> Add name
            </button>
        </td>
     </tr>
     <tr>
        <td colspan="2"><strong>First Name</strong></td>
        <td><strong>Last Name</strong></td>
        <td colspan="3"></td>
     </tr>
 
                              
    <tr  id="submit_section">
        <td colspan="5" align="center" valign="top">
            <input type="submit" tabindex="32" name="submit" value="Submit" class="login_bttn" id="submitFrm"><div class="regsubRight"><img src="<?php echo ((is_array($_tmp='/images/loading.gif')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
" id="selLoading" width="26" height="26"  style="display:none;"/></div>
        </td>
	</tr>

	<tbody id="txtHint">
					<tr class="row1">
				        <td align="center" valign="top" class="txt_11_red" width="2"> </td>
					<td  valign="top" align="right" class="txt_11_red" style="font-weight:bold;">IMPORTANT:-</td>
					<td colspan="3" align="left" valign="top"><span>Clicking the 'Submit' button, will invite your client to complete an online form to confirm the details entered above. It is important that you have entered all their details correctly.</span></td>
					</tr>
					</tbody>

                    
        </table>
      </form>
      </td>
      
      </tr>
      
      
      
    </table>
    </td>
    
    </tr>
     
     
    
  </table>
  </td>
  
  </tr>
  
  <tr>
    <td align="left" valign="top">&nbsp;</td>
  </tr>
  
  
</table>

<style>
.row9 td {
    background: none repeat scroll 0 0 #F5F5F5;
    font-size: 11px;
    line-height: 18px;
    padding: 5px 10px;
}
.row9 td td {
    background: none repeat scroll 0 0 #F5F5F5;
    font-size: 11px;
    line-height: 18px;
    padding: 5px 0px;
}
</style>


<?php 
	function CreateOption($cboname,$curid,$tablename) {
	if($curid=='')
	$curid='104';
 
		echo '<select tabindex="11" name='.$cboname.' class=cmb_bx1 id='.$cboname.'>';
		echo '<option value="104">Ireland</option>';
			$optSql="select * from $tablename";
			$optResult=mysql_query($optSql);
			while($optRow=mysql_fetch_array($optResult)) {
				if($optRow[0]==$curid)
				echo '<option value='.$optRow[0].' selected>'.$optRow[1].'</option>';
				else
				echo '<option value='.$optRow[0].'>'.$optRow[1].'</option>';
			}
			echo '</select>';
	}

	function CreateOptionSecret($cboname,$curid,$tablename) {

		echo '<select name='.$cboname.' class=cmb_bx1 id='.$cboname.'>';
		echo '<option value="">Select</option>';
			 $optSql="select * from $tablename WHERE label_type ='4'";
			$optResult=mysql_query($optSql);
			while($optRow=mysql_fetch_array($optResult)) {
				if($optRow[0]==$curid)
				echo '<option value='.$optRow[0].' selected>'.$optRow[2].'</option>';
				else
				echo '<option value='.$optRow[0].'>'.$optRow[2].'</option>';
			}
			echo '</select>';
	}
 ?>

<script type="text/javascript">
function getdpval(val){

	var str = document.getElementById("confirm_type").checked ? '0' : '1';

	if(val=='0'){

		document.getElementById('dp_type').value = '0';
		loadFields(str);
	}else{
		document.getElementById('dp_type').value = '1';
		loadFields(str);
	}

}


<?php if ($this->_tpl_vars['errval']['confirm_type'] != ''): ?>
loadFields(<?php echo $this->_tpl_vars['errval']['confirm_type']; ?>
);
<?php endif; ?>


<?php if ($this->_tpl_vars['errval']['dp_type'] != ''): ?>
getdpval(<?php echo $this->_tpl_vars['errval']['dp_type']; ?>
);
<?php endif; ?>



function loadFields(str)
{

	document.getElementById('confirm_type').value = str;

	
	var dp_type= $("#dp_type").val();

	if(str=='1'){
		$("#rpa_row").show();
		$("#rpa_row1").show();
		$("#rpa_row2").hide();
		$("#txtHint").hide();
		$("#mand_id").hide();
	}else{
		$("#rpa_row").hide();
		$("#rpa_row1").hide();
		$("#rpa_row2").show();
		$("#txtHint").show();
		$("#mand_id").show();
	}

	
}

<?php 
if ($country !='')  {
echo '$(function() {
	$.post(  
		"<AJDF:output>$smarty.session.base_url</AJDF:output>/originator/state.php",  
		{groupid: '.$country.',label: "stateid",
		num: "'.$stateid.'"},  
		function(responseText){  
			$("#dropState").html(responseText);  
		},  
		"html"  
	);
});';

}
 ?>

</script>

<script type="text/javascript">

var additionalNames=0;

$(function() {

	$("#country").change(function(){  
		$.post(  
		"?do=getcurrencybycountry",  
		{id: $("#country").val()},  
		function(responseText){  
			$("#dropCurrency").html(responseText);  
		},  
		"html"  
		);  
	}); 
	
	<?php if ($this->_tpl_vars['errval']['country'] != ''): ?>
		//Durin validation: Change Nace by Nace Group Id 
		$.post(  
			"?do=getcurrencybycountry",  
			{id: <?php echo $this->_tpl_vars['errval']['country']; ?>
},  
			function(responseText){  
				$("#dropCurrency").html(responseText);  
			},  
			"html"  
		);
	<?php endif; ?>

});





function passwordStrength(pwd) 
{	
	document.getElementById('passwordDescription').style.display = "block";
	var strength = document.getElementById('passwordDescription');
	var strongRegex = new RegExp("^(?=.{8,})(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*\\W).*$", "g");
	var mediumRegex = new RegExp("^(?=.{7,})(((?=.*[A-Z])(?=.*[a-z]))|((?=.*[A-Z])(?=.*[0-9]))|((?=.*[a-z])(?=.*[0-9]))).*$", "g");
	var enoughRegex = new RegExp("(?=.{6,}).*", "g");
	if(pwd.length==0)
	{
		strength.innerHTML = 'Type Password';
		strength.className = 'txt_12_blue';
	}
	else if (false == enoughRegex.test(pwd)) 
	{
		strength.innerHTML = 'More Characters';
		strength.className = 'txt_12_blue';
	}
	else if (strongRegex.test(pwd))
	{
		strength.innerHTML = 'Strong!';
		strength.className = 'txt_12_red';
	}
	else if (mediumRegex.test(pwd))
	{
		strength.innerHTML = 'Medium!';
		strength.className = 'txt_12_org';
	}
	else
	{ 
		strength.innerHTML = 'Weak!';
		strength.className = 'txt_12_blue';
	}
}
//checkLoadErrors();


function removeName(contact_id)
{
    $('#additional_name_'+contact_id).remove();
}

function addNewName()
{
    additionalNames++;
    $('#submit_section').before('<tr id="additional_name_'+additionalNames+'"><td colspan="2"><input type="text" class="text_b" name="new_additonal_names['+additionalNames+'][first_name]"></td><td><input type="text" class="text_b" name="new_additonal_names['+additionalNames+'][last_name]">&nbsp;<button type="button" class="btn btn-sm btn-default remove_name" title="Remove" onclick="removeName('+additionalNames+')"><i class="glyphicon glyphicon-remove"></i></button></td><td colspan="3"></td></tr>');
}

    $('document').ready(function(){
        $('[data-toggle="tooltip"]').tooltip({html:true});
    })

</script>
<style>
.cmb_bx5 {
    border: 1px solid #999999;
    font-size: 11px;
    height: 20px;
    width: 100px;
}

#digi table{
	width:100% !important;
}
#digi table .ftdleft{
	width:38%;
}
#box{	margin: auto;	left: 0;	right: 0;	top: 0;	bottom: 0; vertical-align:middle; background:#FFF !important; border:2px solid #808080 !important;}
#box table, #box ul { margin:10px 0 0 0; font-family: Verdana; } 
 #box li  { line-height:25px; font-family: Verdana;  } 
 #box a { text-decoration:underline; font-family: Verdana;  } 

.regsubRight{
    float: right;
    padding-right: 400px;
}
.clsRghtBdr{
	border-left:4px solid #FFF;
}
.clsHeadRght{
	float:right;
	width:282px; /* all browsers, of course */  
 	width : 288px\9; /* IE8 and below */  
 	*width : 290px; /* IE7 and below */  
}

.under{ 
font-weight:normal !important;
}
</style>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>