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/exchange2/exchange/templates/originator_application_form_4.html
<AJDF:output>include file="header.html"</AJDF:output>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="left" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td align="center" valign="top">&nbsp;</td>
              </tr>
              <tr>
                <td class="login_bg" align="left" valign="middle"><table width="100%" border="0" cellpadding="0" cellspacing="0">
				
				<tr>
					<td align="left" valign="top" class="login_bg_t">Exchange Trade Centre | Create Organisation Application Form</td> 
					<td width="" align="left" valign="middle" class="txt_11">Originator Organisation ID: <AJDF:output>$smarty.session.user.org_ref_id</AJDF:output>  </td>
                    <td class="txt_11" align="right"><AJDF:output>include file='originator_top_dashboard_links.html'</AJDF:output></td>
				</tr>
			</table></td>
              </tr>
              <tr>
                <td align="center" valign="top" class="about_c" id="tool"><table width="100%" border="0" cellspacing="5" cellpadding="5">
                    <tr>
                      <td width="18%" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td align="left" valign="top">
                            	<AJDF:output>include file='left_sidebar_small.html'</AJDF:output></td>
                          </tr>
                        </table></td>
                      <td width="82%" align="right" valign="top">
			<form class="form-originator-application-documents" method="POST" action="index.php?do=saveapplication4" name="sub" enctype="multipart/form-data">
				<table cellspacing="0" cellpadding="0" border="0" width="100%">
              <tbody><AJDF:output>if $smarty.session.org_notify !=''</AJDF:output>
				<AJDF:output>$smarty.session.org_notify</AJDF:output>
			<AJDF:output>/if</AJDF:output><tr>
                <td align="left" valign="top" class="inves_top_bg">
	
			<table cellpadding="0" cellspacing="0" border="0" width="100%">
                                <tr>
                                  <td align="left" valign="top" class=""><span>Originator Accounting Information Form  :</span></td>
                                  <td align="right" valign="top" class="inves_top_bg_hide">Step 4 of 7  &nbsp;</td>
                                </tr>
                              </table></td>
              </tr>
              <tr>
                <td align="center" valign="top" class="about_c"><table cellspacing="0" cellpadding="0" border="0" width="100%">
                    <tbody><tr>
                      <td align="left" valign="top" class="about_c_1"><table cellspacing="0" cellpadding="0" border="0" width="100%">
  <tbody><tr class="very_lite_gray">
    <td align="left" valign="top">&nbsp;</td>
  </tr>
  <tr class="very_lite_gray">
    <td align="left" valign="top" class="txt_12_red">&nbsp;&nbsp;<b>Please Note:</b> All fields marked with * require an input </td>
  </tr>
  <tr class="very_lite_gray">
    <td align="left" valign="top">&nbsp;</td>
  </tr>
</tbody></table></td>
                    </tr>
                    
                    <tr>
                      <td align="left" valign="top"></td>
                    </tr>

<tr>
                      <td valign="top" align="left"><table width="100%" cellspacing="0" cellpadding="0" border="0">
<!--                      
                          <tr>
                            <td align="left" valign="top" class="inves_top"> All Fields are required unless indicated</td>
                          </tr>
-->                          <tbody>
                          <tr class="very_lite_gray">
                            <td valign="top" align="center"><table width="100%" cellspacing="0" cellpadding="0" border="0">
                                <tbody><tr>
                                  <td width="50%" valign="top" align="center"><table width="100%" cellspacing="0" cellpadding="5" border="0">
                                      <tbody><tr>
                                      <td valign="top" align="left" class="txt_11_red" width="1%">*</td>
                                        <td width="33%" valign="top" align="left">
                                                            Fiscal Year end Date:
                                                          </td>
                                        <td width="62%" valign="top" align="left" colspan="2"><table width="100%" cellspacing="3" cellpadding="0" border="0">
                                          <tbody><tr>
                                            <td width="10%" valign="top" align="left"><input type="text" class="text_dd_code" tabindex="1" maxlength="2" size="2" name="f_date" value="<AJDF:output>$values.f_date</AJDF:output>"><br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.f_date</AJDF:output></span></td>
                                            <td width="40%" valign="top" align="left"><input type="text" class="text_dd_code" tabindex="2" maxlength="2" size="2" name="f_month" value="<AJDF:output>$values.f_month</AJDF:output>"> <a class="under" href="#" title="<AJDF:output>$help.0.content</AJDF:output>">(?)</a><br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.f_month</AJDF:output></span></td>
                                            <td width="1%" valign="top" align="left"><input type="hidden" class="text_c_code" maxlength="4" size="4" name="f_year" value="2012"> <br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.f_year</AJDF:output></span></td>
                                          </tr>
                                          <tr>
                                            <td valign="top" align="left" class="txt_11_cute">DD</td>
                                            <td valign="top" align="left" class="txt_11_cute">MM</td>
                                            <td valign="top" align="left" class="txt_11_cute"></td>
                                          </tr>
                                        </tbody></table></td>
 
                                      </tr>
                                    </tbody></table></td>
                                    <td valign="top" align="center" class="gray_1"></td>
                          </tr>
                        </tbody></table></td>
                    </tr>
			<tr>
                            <td valign="top" align="left" class="inves_top1">Billing Practices</td>
                          </tr>
			<tr class="very_lite_gray">
                            <td valign="top" align="center"><table width="100%" cellspacing="0" cellpadding="5" border="0">
                                <tbody><tr><td valign="top" align="left" class="txt_11_red">*</td>
                                  <td width="53%" valign="top" align="left">Do you offer any rebates, discounts or other incentives to customers? </td>
                                  <td width="42%" valign="top" align="left"><span>
                                    <input type="radio" tabindex="10" onclick="loadshow(this.value,'rebate','f_allowance');" value="1" name="allowance" id="allowance" <AJDF:output>if $values.allowance == "1"</AJDF:output> checked="true"<AJDF:output>/if</AJDF:output>>
                                    Yes </span> <span>
                                    <input type="radio" tabindex="11" value="2" onclick="loadshow(this.value,'rebate','f_allowance');" name="allowance" id="allowance" <AJDF:output>if $values.allowance == "2"</AJDF:output> checked="true"<AJDF:output>/if</AJDF:output>>
                                    No </span> <a class="under" title="<AJDF:output>$help.7.content</AJDF:output>" href="#">(?)</a><br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.allowance</AJDF:output></span></td>
                                  <td width="3%" valign="top" align="right"></td>
                                </tr>

                                <tr id="rebate" <AJDF:output>if $values.allowance != "1"</AJDF:output> style="display:none;" <AJDF:output>/if</AJDF:output>><td valign="top" align="left" class="txt_11_red">*</td>
                                  <td width="" valign="top" align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Describe process</td>
                                  <td width="" valign="top" align="left"><input type="text" class="text_b" tabindex="12" value="<AJDF:output>$values.f_allowance</AJDF:output>" name="f_allowance" id="f_allowance">  <a class="under" href="#" title="<AJDF:output>$help.8.content</AJDF:output>">(?)</a><br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.f_allowance</AJDF:output></span></td>
                                  <td valign="top" align="right"></td>
                                </tr>
                                <tr><td valign="top" align="left" class="txt_11_red">*</td>
                                  <td width="" valign="top" align="left"><p>Do your customers pay for percentage of work contracted as </p>
                                    <p>opposed to actual work completed / delivered?</p></td>
                                  <td width="" valign="top" align="left"><span>
                                    <input type="radio" tabindex="13" value="1" name="f_paywork" <AJDF:output>if $values.f_paywork == "1"</AJDF:output> checked="true"<AJDF:output>/if</AJDF:output>>
                                    Yes </span> <span>
                                    <input type="radio" tabindex="14" value="2" name="f_paywork" <AJDF:output>if $values.f_paywork == "2"</AJDF:output> checked="true"<AJDF:output>/if</AJDF:output>>
                                    No </span> <a class="under" title="<AJDF:output>$help.9.content</AJDF:output>" href="#">(?)</a><br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.f_paywork</AJDF:output></span></td>
                                  <td valign="top" align="right"></td>
                                </tr>
                                <tr><td valign="top" align="left" class="txt_11_red">*</td>
                                  <td width="" valign="top" align="left">Are you using any Accounting Software?</td>
                                  <td width="" valign="top" align="left"><span>
                                    <input type="radio" value="1" tabindex="15" onclick="loadshow(this.value,'account','f_system');" name="system" id="system" <AJDF:output>if $values.system == "1"</AJDF:output> checked="true"<AJDF:output>/if</AJDF:output>>
                                    Yes </span> <span>
                                    <input type="radio" tabindex="16" onclick="loadshow(this.value,'account','f_system');" value="2" name="system" id="system" <AJDF:output>if $values.system == "2"</AJDF:output> checked="true"<AJDF:output>/if</AJDF:output>>
                                    No </span> <a class="under" title="<AJDF:output>$help.10.content</AJDF:output>" href="#">(?)</a><br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.system</AJDF:output></span></td>
                                  <td valign="top" align="right"></td>
                                </tr>
                                <tr id="account" <AJDF:output>if $values.system != "1"</AJDF:output> style="display:none;" <AJDF:output>/if</AJDF:output>><td valign="top" align="left" class="txt_11_red">*</td>
                                  <td width="" valign="top" align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If Yes, Which one?</td>
                                  <td width="" valign="top" align="left"><input type="text" class="text_b" tabindex="17" value="<AJDF:output>$values.f_system</AJDF:output>" name="f_system" id="f_system"> <a class="under" href="#" title="<AJDF:output>$help.11.content</AJDF:output>">(?)</a><br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.f_system</AJDF:output></span></td>
                                  <td valign="top" align="right"></td>
                                </tr>
                                <tr><td valign="top" align="left" class="txt_11_red">*</td>
                                  <td width="" valign="top" align="left">Do you ever invoice on consignment?</td>
                                  <td width="" valign="top" align="left"><span>
                                    <input type="radio" tabindex="18" value="1" name="f_sell" <AJDF:output>if $values.f_sell == "1"</AJDF:output> checked="true"<AJDF:output>/if</AJDF:output>>
                                    Yes </span> <span>
                                    <input type="radio" tabindex="19" value="2" name="f_sell" <AJDF:output>if $values.f_sell == "2"</AJDF:output> checked="true"<AJDF:output>/if</AJDF:output>>
                                    No </span> <a class="under" href="#" title="<AJDF:output>$help.12.content</AJDF:output>">(?)</a><br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.f_sell</AJDF:output></span></td>
                                  <td valign="top" align="right"></td>
                                </tr>
                                <tr><td valign="top" align="left" class="txt_11_red">*</td>
                                  <td width="" valign="top" align="left">Do your offer any warranties?</td>
                                  <td width="" valign="top" align="left"><span>
                                    <input type="radio" tabindex="20" value="1" onclick="loadshow(this.value,'warran','warranty');"  name="f_warranty" <AJDF:output>if $values.f_warranty == "1"</AJDF:output> checked="true"<AJDF:output>/if</AJDF:output>>
                                    Yes </span> <span>
                                    <input type="radio" tabindex="21" onclick="loadshow(this.value,'warran','warranty');"  value="2" name="f_warranty" <AJDF:output>if $values.f_warranty == "2"</AJDF:output> checked="true"<AJDF:output>/if</AJDF:output>>
                                    No </span><a class="under" href="#" title="<AJDF:output>$help.13.content</AJDF:output>">(?)</a><br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.f_warranty</AJDF:output></span></td>
                                  <td valign="top" align="right"></td>
                                </tr>
				
				  <tr id="warran" <AJDF:output>if $values.f_warranty != "1"</AJDF:output> style="display:none;" <AJDF:output>/if</AJDF:output>><td valign="top" align="left" class="txt_11_red">*</td>
                                  <td width="" valign="top" align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Describe type of warranty offered</td>
                                  <td width="" valign="top" align="left"><input type="text" class="text_b" tabindex="22" value="<AJDF:output>$values.warranty</AJDF:output>" name="warranty" id="warranty">  <a class="under" href="#" title="<AJDF:output>$help.14.content</AJDF:output>">(?)</a><br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.warranty</AJDF:output></span></td>
                                  <td valign="top" align="right"></td>
                                </tr>




                                <tr><td valign="top" align="left" class="txt_11_red">*</td>
                                  <td width="" valign="top" align="left">Do your offer any return rights?</td>
                                  <td width="" valign="top" align="left"><span>
                                    <input onclick="loadshow(this.value,'rights','f_details');" type="radio" tabindex="23" onclick="" value="1" name="f_return" class="f_return" <AJDF:output>if $values.f_return == "1"</AJDF:output> checked="true"<AJDF:output>/if</AJDF:output>>
                                    Yes </span> <span>
                                    <input type="radio" onclick="loadshow(this.value,'rights','f_details');" value="2" tabindex="24" name="f_return" class="f_return" <AJDF:output>if $values.f_return == "2"</AJDF:output> checked="true"<AJDF:output>/if</AJDF:output>>
                                    No </span> <a title="<AJDF:output>$help.15.content</AJDF:output>" class="under" href="#">(?)</a><br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.f_return</AJDF:output></span></td>
                                  <td valign="top" align="right"></td>
                                </tr>
                                <tr id="rights" <AJDF:output>if $values.f_return != "1"</AJDF:output> style="display:none;" <AJDF:output>/if</AJDF:output>><td valign="top" align="left" class="txt_11_red"></td>
                                  <td width="" valign="top" align="left"> Please provide any additional comments regarding your organisation’s billing procedures</td>
                                  <td width="" valign="top" align="left"><textarea cols="35" rows="4" name="f_details" tabindex="25" id="f_details"><AJDF:output>$values.f_details</AJDF:output></textarea> <br><span style="color: rgb(255, 0, 0);"><AJDF:output>$errmsg.f_details</AJDF:output></span></td>
                                  <td valign="top" align="right"><a class="under" href="#" title="<AJDF:output>$help.16.content</AJDF:output>">(?)</a></td>
                                </tr>
                              </tbody></table></td>
                          </tr>

		    <tr>
                      <td align="left" valign="top"></td>
                    </tr>
                    <tr>
                        <td align="center" valign="middle" class="about_c_1"><table cellspacing="0" cellpadding="0" border="0" width="100%" id="tool">
                            <tr>
                                <td align="left" valign="top"><table cellspacing="0" cellpadding="3" border="0" width="100%">
                                    <tbody>
                                    <tr>
                                        <td align="left" valign="top" class="inves_top"><b>Director’s Passport/Driving License Document</b></td>
                                    </tr>
                                    <tr class="very_lite_gray">
                                        <td align="center" valign="top"><table cellspacing="0" cellpadding="0" border="0" width="99%">
                                            <tbody>
                                            <tr>
                                                <td align="right" valign="middle">&nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td>&nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td align="center" valign="middle"><table cellspacing="0" cellpadding="0" border="0" width="100%">
                                                    <tbody>
                                                    <tr>
                                                        <td align="center" valign="top"><table cellspacing="0" cellpadding="0" border="0" width="98%">
                                                            <tbody>
                                                            <tr>
                                                                <td align="center" width="4%" valign="middle" class="txt_11_red">*</td>
                                                                <td align="center" width="33" valign="middle">PDF</td>
                                                                <td align="left" width="280" valign="middle">
                                                                    <label class="btn btn-yellow js-file-upload">
                                                                        Upload
                                                                        <input type="file" data-result=".input-result-ph_pdf" data-progress=".progress-ph_pdf" data-url="index.php?do=saveapplication4&files" tabindex="13" name="ph_pdf" size="15" accept="application/pdf">
                                                                    </label>
                                                                    <div class="progress progress-ph_pdf">
                                                                        <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width:0%">0%</div>
                                                                    </div>
                                                                    <input type="hidden" name="directors_passport" value="<AJDF:output>$values.directors_passport</AJDF:output>">
                                                                    <br>
                                                                      <span style="color: rgb(255, 0, 0);" class="input-result-ph_pdf">

                                                                      <AJDF:output>$errmsg.ph_pdf</AJDF:output>
                                                                      </span></td>
                                                            </tr>
                                                            </tbody>
                                                        </table></td>
                                                        <td align="right" width="3%" valign="middle"></td>
                                                    </tr>
                                                    <tr>
                                                        <td>&nbsp;</td>
                                                    </tr>
                                                    </tbody>
                                                </table></td>
                                            </tr>
                                            </tbody>
                                        </table></td>
                                    </tr>
                                    <tr>
                                        <td align="left" valign="top" class="inves_top"><b>Director’s Utility Bill/Bank Statement Document</b></td>
                                    </tr>
                                    <tr class="very_lite_gray">
                                        <td align="center" valign="top"><table cellspacing="0" cellpadding="0" border="0" width="99%">
                                            <tbody>
                                            <tr>
                                                <td align="right" valign="middle">&nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td>&nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td align="center" valign="middle"><table cellspacing="0" cellpadding="0" border="0" width="100%">
                                                    <tbody>
                                                    <tr>
                                                        <td align="center" valign="top"><table cellspacing="0" cellpadding="0" border="0" width="98%">
                                                            <tbody>
                                                            <tr>
                                                                <td align="center" width="4%" valign="middle" class="txt_11_red">*</td>
                                                                <td align="center" width="33" valign="middle">PDF</td>
                                                                <td align="left" width="280" valign="middle">
                                                                    <label class="btn btn-yellow js-file-upload">
                                                                        Upload
                                                                        <input type="file" data-result=".input-result-u_pdf" data-progress=".progress-u_pdf" data-url="index.php?do=saveapplication4&files" tabindex="13" name="u_pdf" size="15" accept="application/pdf">
                                                                    </label>
                                                                    <div class="progress progress-u_pdf">
                                                                        <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width:0%">0%</div>
                                                                    </div>
                                                                    <input type="hidden" name="directors_utility_bill" value="<AJDF:output>$values.directors_utility_bill</AJDF:output>">
                                                                    <br>
                                                                      <span style="color: rgb(255, 0, 0);" class="input-result-u_pdf">
                                                                      <AJDF:output>$errmsg.u_pdf</AJDF:output>
                                                                      </span></td>
                                                            </tr>
                                                            </tbody>
                                                        </table></td>
                                                        <td align="right" width="3%" valign="middle"></td>
                                                    </tr>
                                                    <tr>
                                                        <td>&nbsp;</td>
                                                    </tr>
                                                    </tbody>
                                                </table></td>
                                            </tr>
                                            </tbody>
                                        </table></td>
                                    </tr>
                                    <tr>
                                        <td align="left" valign="top" class="inves_top"><b>Company's Bank Statement Document</b></td>
                                    </tr>
                                    <tr class="very_lite_gray">
                                        <td align="center" valign="top"><table cellspacing="0" cellpadding="0" border="0" width="99%">
                                            <tbody>
                                            <tr>
                                                <td align="right" valign="middle">&nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td>&nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td align="center" valign="middle"><table cellspacing="0" cellpadding="0" border="0" width="100%">
                                                    <tbody>
                                                    <tr>
                                                        <td align="center" valign="top"><table cellspacing="0" cellpadding="0" border="0" width="98%">
                                                            <tbody>
                                                            <tr>
                                                                <td align="center" width="4%" valign="middle" class="txt_11_red">*</td>
                                                                <td align="center" width="33" valign="middle">PDF</td>
                                                                <td align="left" width="280" valign="middle">
                                                                    <label class="btn btn-yellow js-file-upload">
                                                                        Upload
                                                                        <input type="file" data-result=".input-result-bs_pdf" data-progress=".progress-bs_pdf" data-url="index.php?do=saveapplication4&files" tabindex="13" name="bs_pdf" size="15" accept="application/pdf">
                                                                    </label>
                                                                    <div class="progress progress-bs_pdf">
                                                                        <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width:0%">0%</div>
                                                                    </div>
                                                                    <input type="hidden" name="bank_statement_document" value="<AJDF:output>$values.bank_statement_document</AJDF:output>">
                                                                    <br>
                                                                      <span style="color: rgb(255, 0, 0);" class="input-result-bs_pdf">
                                                                      <AJDF:output>$errmsg.bs_pdf</AJDF:output>
                                                                      </span></td>
                                                            </tr>
                                                            </tbody>
                                                        </table></td>
                                                        <td align="right" width="3%" valign="middle"></td>
                                                    </tr>
                                                    <tr>
                                                        <td>&nbsp;</td>
                                                    </tr>
                                                    </tbody>
                                                </table></td>
                                            </tr>
                                            </tbody>
                                        </table></td>
                                    </tr>
                                    <tr class="very_lite_gray">
                                        <td align="left" valign="top">&nbsp;</td>
                                    </tr>
                                    </tbody>
                                </table></td>
                            </tr>
                            </tbody>
                        </table></td>
                    </tr>
			 <tr><td id="newForm" class="very_lite_gray">
			</td>
			</tr>
                          <!--
                            <tr class="light_gray_bg">
                            <td align="center"><a class="under" href="javascript:void(0);" onclick="addForm();"><b tabindex="46">Add Another Director and/or Shareholder</b></a></td>
                          </tr>
                          -->
			<tr>
                            <td align="left" valign="top" class="very_lite_gray" id="multiAddress"></td>
                          </tr>
                           
                          <tr>
                            <td align="center" valign="top" class="dark_gray_bg">
                            	<input name="nodes" id="nodes" value="<AJDF:output>if $values.nodes </AJDF:output><AJDF:output>$values.nodes</AJDF:output><AJDF:output>else</AJDF:output>0<AJDF:output>/if</AJDF:output>" type="hidden">
				                <input name="frm_mng" id="frm_mng" value="" type="hidden">
				                <input name="org_id" id="org_id" value="<AJDF:output>$org_id</AJDF:output>" type="hidden">
				                <input type="hidden" class="text_b" value="NULL" name="f_bank">
                                <input type="button" value="Back" class="mem_bttn" onclick="location.href='index.php?do=application3&id=<AJDF:output>php</AJDF:output>echo $_SESSION['org_id'];<AJDF:output>/php</AJDF:output>'">
                            	<input type="submit" class="mem_bttn" tabindex="69" value="Save & Continue" name="input5">
                            	
                            </td>
                          </tr>
                           
                        </tbody></table></td>
                    </tr>
                  </tbody></table></td>
              </tr>
            </tbody></table>
			</form>
		      </td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td align="left" valign="top">&nbsp;</td>
        </tr>
      </table>
<div id="addPopUp" style="display:none;"></div>
<div id="hiddenForm" style="display:none;"></div>
<script>
var iterate = '1'; 
function addstyle(str){
	for(i=1; i<=iterate;i++){
		var id = "#trade_"+i;
		var drop = "#search_id_"+i
		if(str == i){

			$(id).removeClass('clsTradeBook');
			//$(id).addClass('nodisplay');
		}else{
			$(id).addClass('clsTradeBook');
			//$(id).removeClass('nodisplay');
			 $(drop).slideUp("slow");
		}
	}
}

function removeForm(id){
	$("#popUp").hide();
	document.getElementById("nodes").value= Number(document.getElementById("nodes").value) - 1;
}
function addForm(){
	var i = 1;
	if(i<2){
		i++;
		$.post(  
		"?do=fetchfourform",  
		{id: 1,label: "form"},  
		function(responseText){  
			if(responseText !=3){
				$('#view_plans').html(responseText);
				$("#popUp").show("slow");
				scroll(0,0);
			}else{
				alert('Only three Contacts are allowed');
			}
		},  
		"html"  
		);
		document.getElementById("nodes").value=i;
	}else{
		alert('Totally three Entries are allowed;');
	}
	
}
function billhide(str){
	if(str == false){	
		//$("#wrk_addr").hide();

		var work = new Array("f_name_v","l_name_v","addr1_v","addr2_v","city_v","state_v","pc_v","country_v","jt_v","date_v","month_v","year_v","po_v","ph_country_v","ph_area_v","ph_code_v","owned_v","participant_v");
		for(inc=0;inc < work.length;inc++){
			document.getElementById(work[inc]).value='';
			
		}
	}else{
		//$("#w_wrk_addr").hide();
		var work = new Array("f_name_v","l_name_v","addr1_v","addr2_v","city_v","state_v","pc_v","country_v","jt_v","date_v","month_v","year_v","po_v","ph_country_v","ph_area_v","ph_code_v","owned_v","participant_v");
		for(inc=0;inc < work.length;inc++){
			document.getElementById(work[inc]+"_1").value='';
		}
	}
}

function billshow(str){
	if(str == false){	
		//$("#wrk_addr").show();
		var work = new Array("f_name_0","l_name_0","addr1_0","addr2_0","city_0","state_0","pc_0","country_0","jt_0","date_0","month_0","year_0","po_0","ph_country_0","ph_area_0","ph_code_0","owner_0","owned_0","participant_0");
		for(inc=0;inc < work.length;inc++){
			if(work[inc] =='participant_0'){
				document.getElementById('participant_0').checked= false;
				//document.getElementById('sparticipant_0').checked= false;
			
			}else{
				document.getElementById(work[inc]).value='';
			}

			if(work[inc] =='owner_0'){
				document.getElementById('owner_0').checked= false;
				document.getElementById('owner_0').checked= false;
			
			}else{
				document.getElementById(work[inc]).value='';
			}
		}
	
	}else{
		//$("#w_wrk_addr").show();

		var work = new Array("f_name_1","l_name_1","addr1_1","addr2_1","city_1","state_1","pc_1","country_1","jt_1","date_1","month_1","year_1","po_1","ph_country_1","ph_area_1","ph_code_1","owner_1","owned_1","participant_1");
		for(inc=0;inc < work.length;inc++){


			if(work[inc] =='owner_1'){
				document.getElementById('owner_1').checked= false;
				document.getElementById('sowner_1').checked= false;
			
			}else{
				document.getElementById(work[inc]).value='';
			}			

			if(work[inc] =='participant_1'){
				document.getElementById('participant_1').checked= false;
				document.getElementById('sparticipant_1').checked= false;
			
			}else{
				document.getElementById(work[inc]).value='';
			}


		}
		
	}
}

function chosebill(str, num)
{
	if(str == '' || str == "0"){
		billshow(num);
		return true;
	}	

	if(num == true){
		num =1; add_id = 1;
	}
	else{
		num =0; add_id = 0;
	}
	$.post(  
		"?do=fetchfourchose",  
		{id: str,label: add_id, values: str},  
		function(responseText){  
			$('#hiddenForm').html(responseText);
			//var num = document.getElementById("frm_mng").value;

			if(num ==0){
				var prevOrg = new Array("f_name_v","l_name_v","addr1_v","addr2_v","city_v","state_v","pc_v","country_v","jt_v","date_v","month_v","year_v","po_v","ph_country_v","ph_area_v","ph_code_v","owner_v","owned_v","participant_v");
				var currOrg = new Array("f_name_0","l_name_0","addr1_0","addr2_0","city_0","state_0","pc_0","country_0","jt_0","date_0","month_0","year_0","po_0","ph_country_0","ph_area_0","ph_code_0","owner_0","owned_0","participant_0");
				for(inc=0;inc < prevOrg.length;inc++){
						work_repl = currOrg[inc].replace("_0","v_");		
							
		
					if(currOrg[inc] == 'owner_0'){

						if(document.getElementById('owner_v').value == "1")
                        {
							document.getElementById('owner_0').checked= true;
							document.getElementById('sowner_0').checked= false;
						}
                        else if(document.getElementById('owner_v').value == "3")
                        {
                            document.getElementById('owner_0').checked= true;
                            document.getElementById('sowner_0').checked= true;
                        }
                        else
                        {
							document.getElementById('sowner_0').checked= true;
							document.getElementById('owner_0').checked= false;
						}

					}else if(currOrg[inc] == 'owned_0'){

						if(document.getElementById(prevOrg[inc]).value !=0){
							document.getElementById(currOrg[inc]).value = document.getElementById(prevOrg[inc]).value;	
						}else{
							document.getElementById(currOrg[inc]).value ='';
						}
					}else if(currOrg[inc] !='country_0' && currOrg[inc] !='state_0' && currOrg[inc] != 'participant_0'){
	
						document.getElementById(currOrg[inc]).value = document.getElementById(prevOrg[inc]).value;	
					}else if(currOrg[inc] =='country_0'){
						document.getElementById('country_0').value = document.getElementById('country_v').value;

						
						document.getElementById('state_0').value = document.getElementById('state_v').value;

					}else if(currOrg[inc] =='participant_0'){

						var part = String(document.getElementById('participant_v').value);
						
						if(document.getElementById('participant_v').value == "1"){
							document.getElementById('participant_0').checked= true;
						}else{
							//document.getElementById('sparticipant_0').checked= true;
						}
					
					}	
				}
			}else{
				var prevOrg = new Array("f_name_v","l_name_v","addr1_v","addr2_v","city_v","state_v","pc_v","country_v","jt_v","date_v","month_v","year_v","po_v","ph_country_v","ph_area_v","ph_code_v","owner_v","owned_v","participant_v");
				var currOrg = new Array("f_name","l_name","addr1","addr2","city","state","pc","country","jt","date","month","year","po","ph_country","ph_area","ph_code","owner","owned","participant");
				num =1;
				for(inc=0;inc < prevOrg.length;inc++){

					if(currOrg[inc] == 'owner'){


						if(document.getElementById('owner_v').value == "1"){
							document.getElementById('owner_'+num).checked= true;
							document.getElementById('sowner_'+num).checked= false;
						}else{
							document.getElementById('sowner_'+num).checked= true;
							document.getElementById('owner_'+num).checked= false;
						}

					}else if(currOrg[inc] == 'owned'){

						if(document.getElementById(prevOrg[inc]).value !=0){
							document.getElementById(currOrg[inc]+"_"+num).value = document.getElementById(prevOrg[inc]).value;	
						}else{
							document.getElementById(currOrg[inc]+"_"+num).value ='';
						}
					}else if(currOrg[inc] !='country' && currOrg[inc] !='state' && currOrg[inc] != 'participant'){

						document.getElementById(currOrg[inc]+"_"+num).value = document.getElementById(prevOrg[inc]).value;	
					}else if(currOrg[inc] =='country'){
						arr_country = "country_"+num;
						arr_state = "state_"+num;
						document.getElementById(arr_country).value = document.getElementById('country_v').value;

						document.getElementById('state_1').value = document.getElementById('state_v').value;
		
						
					}else if(currOrg[inc] =='participant'){
						var part = String(document.getElementById('participant_v').value);
						
						if(document.getElementById('participant_v').value == "1"){
							document.getElementById('participant_'+num).checked= true;
						}else{
							document.getElementById('sparticipant_'+num).checked= true;
						}
					
					}
				}
			}
		},  
		"html"  
		);
}


function loadshow(str,elem,clr){

	elemt = "#"+elem;

	document.getElementById(clr).value='';
	if(str == 1){
		$(elemt).show();
	}else{
		$(elemt).hide();
	}
}

function removeContact(str){
	$.post(  
		"?do=deleteformfour",  
		{id: str},  
		function(responseText){  
			$("#multiAddress").html(responseText);
			//$("#popUp").show("slow");
		},  
		"html"  
	);  
	
}
$(function() {

	$.post(  
		"?do=saveformfour",  
		function(responseText){  
			$("#multiAddress").html("");
			$("#multiAddress").html(responseText);
			//$("#popUp").show("slow");
		},  
		"html"  
	);  
	
	

	//Pop up Close
	$("#addr_close").click(function () {
		$("#addPopUp").hide("slow");
	});
    
    <AJDF:output>if $activeOwner!=0</AJDF:output>
    chosebill(<AJDF:output>$activeOwner</AJDF:output>,false);
    <AJDF:output>/if</AJDF:output>

    $('input[type=file]').on('change', uploadFile);
});



</script>
<style>
    .btn-yellow {
        height: 36px;
        min-width: 200px;
        line-height: 36px;
        font-size: 14px;
        display: inline-block;
        padding: 0 10px;
        text-align: center;
        font-weight: bold;
        color: #191919;
        border: 0;
        cursor: pointer;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        -webkit-box-shadow: 1px 1px 1px 0 #502a01,inset -1px -1px 1px 0 #904701,inset 2px 2px 1px 0 #fede77;
        -moz-box-shadow: 1px 1px 1px 0 #502a01,inset -1px -1px 1px 0 #904701,inset 2px 2px 1px 0 #fede77;
        box-shadow: 1px 1px 1px 0 #502a01,inset -1px -1px 1px 0 #904701,inset 2px 2px 1px 0 #fede77;
        background: #ffe600;
        background: -moz-linear-gradient(top,#ffda1e 0,#ffe600 100%);
        background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#ffda1e),color-stop(100%,#ffe600));
        background: -webkit-linear-gradient(top,#ffda1e 0,#ffe600 100%);
        background: -o-linear-gradient(top,#ffda1e 0,#ffe600 100%);
        background: -ms-linear-gradient(top,#ffda1e 0,#ffe600 100%);
        background: linear-gradient(to bottom,#ffda1e 0,#ffe600 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffda1e',endColorstr='#ffe600',GradientType=0);
    }
    .btn-yellow:active {
        -webkit-box-shadow: inset -1px -1px 1px 0 #904701,inset 2px 2px 1px 0 #502a01;
        -moz-box-shadow: inset -1px -1px 1px 0 #904701,inset 2px 2px 1px 0 #502a01;
        box-shadow: inset -1px -1px 1px 0 #904701,inset 2px 2px 1px 0 #502a01;
        position: relative;
        top: 1px;
    }
</style>
<div id="popUp" style="display:none;">
   <div id="light" class="white_content">
	<div id="view_plans">
	</div>
   </div>
   <div id="fade" class="black_overlay"></div>
</div>
<AJDF:output>include file="footer.html"</AJDF:output>