<!-- Begin Body --> 
<form  role="form" id="releases_to_broker_form" class="form-horizontal"  autocomplete="on">
<input type="hidden" id="current_model">
<input type="hidden" id="reservation_fee">

<input type="hidden" id="current_user_type" value="<?=$user_type?>" name="current_user_type">
<div class="container-fluid" style="padding-top:120px; height:550px">
	<div class="row"><br/></div>
	<div class="row">
		<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
			<fieldset> 
				<div class="form-group">
					<label class="col-md-5 control-label text-right" for="bpm_buyer"><small>Buyer</small></label>
					<div class="col-md-7">
							<input type="text" id="bpm_buyer" readonly placeholder="Buyer" value="" name="bpm_buyer" class="form-control text-left">
							<input type="hidden" name="reservation_id" id="reservation_id">
					</div>
				</div>
				
				<div class="form-group">
					<label class="col-md-5 control-label text-right" for="bpm_broker"><small>Broker</small></label>
					<div class="col-md-7"><input type="text" id="bpm_broker" name="bpm_broker"  readonly placeholder="Broker" value="" class="form-control text-left"></div>
				</div>

				<div class="form-group">
					<label class="col-md-5 control-label text-right" for="bpm_agent"><small>Agent</small></label>
					<div class="col-md-7"><input type="text" id="bpm_agent" readonly placeholder="Agent" value="" class="form-control text-left"></div>
				</div>

				<div class="form-group"> 
					<label class="col-md-5 control-label text-right" for="bpm_reservation"><a href="#" style="cursor:hand; text-decoration:none" class="glyphicon glyphicon-pencil" onclick="updateReservationPrice(<?=$_REQUEST['id']?>)"></a>&nbsp;<small>Reservation</small></label>
					<div class="col-md-7"><input type="text" id="bpm_reservation" name="bpm_reservation" placeholder="0.00" onblur = "javascript:this.value=Comma(this.value); computeBalance();" readonly onkeypress="return isNumberKey(event);" value="" class="form-control text-right"></div>
				</div>

				<div class="form-group"> 
					<label class="col-md-5 control-label text-right" for="bpm_less_ca"><a href="#" style="cursor:hand; text-decoration:none" class="glyphicon glyphicon-pencil" onclick="updateCaPrice(<?=$_REQUEST['id']?>)"></a>&nbsp;<small>Less : CA</small></label>
					<div class="col-md-7"><input type="text" id="bpm_less_ca" name="bpm_less_ca" placeholder="0.00" onblur = "javascript:this.value=Comma(this.value); computeBalance();" readonly onkeypress="return isNumberKey(event);" value="" class="form-control text-right"></div>
				</div>

				<div class="form-group"> 
					<label class="col-md-5 control-label text-right" for="bpm_reservation_less_ca"><small>Balance</small></label>
					<div class="col-md-7"><input type="text" id="bpm_reservation_less_ca" name="bpm_reservation_less_ca" placeholder="0.00" onblur = "javascript:this.value=Comma(this.value);" readonly onkeypress="return isNumberKey(event);" value="" class="form-control text-right"></div>
				</div>

				<div class="form-group"> 
					<label class="col-md-5 control-label text-right" for="bpm_tcp"><small>TCP</small></label>
					<div class="col-md-7"><input type="text" id="bpm_tcp" name="bpm_tcp" placeholder="0.00" onblur = "javascript:this.value=Comma(this.value); computeBasisCommission(); computeCommission();" readonly onkeypress="return isNumberKey(event);" value="" class="form-control text-right"></div>
				</div>

				<div class="form-group">
					<label class="col-md-5 control-label text-right" for="bpm_less_discount"><a href="#" style="cursor:hand; text-decoration:none" class="glyphicon glyphicon-pencil" onclick="updateDiscountPrice(<?=$_REQUEST['id']?>)"></a>&nbsp;<small>Less : Discount</small></label>
					<div class="col-md-7"><input type="text" id="bpm_less_discount" name="bpm_less_discount" placeholder="0.00" onblur = "javascript:this.value=Comma(this.value);" onkeypress="return isNumberKey(event); computeBasisCommission(); computeCommission()" onkeyup="computeBasisCommission(); computeCommission();" readonly value="" class="form-control text-right" style="cursor:pointer"></div>
				</div>

				<div class="form-group">
					<label class="col-md-5 control-label text-right" for="bpm_misc_expenses"><small>Less : Misc Expenses</small></label>
					<div class="col-md-7"><input type="text" id="bpm_misc_expenses" name="bpm_misc_expenses" placeholder="0.00" onblur = "javascript:this.value=Comma(this.value);" onkeypress="return isNumberKey(event); computeBasisCommission(); computeCommission()" readonly value="" class="form-control text-right"></div>
				</div>

				<div class="form-group">
					<label class="col-md-5 control-label text-right" for="bpm_basis_commission"><small>Basis of Commission</small></label>
					<div class="col-md-7"><input type="text" id="bpm_basis_commission" name="bpm_basis_commission" placeholder="0.00" onblur = "javascript:this.value=Comma(this.value);" onkeypress="return isNumberKey(event); computeCommission();" readonly value="" class="form-control text-right"></div>
				</div>

				<div class="form-group">
					<label class="col-md-5 control-label text-right" for="bpm_rate"><a href="#" style="cursor:hand; text-decoration:none" class="glyphicon glyphicon-pencil" onclick="updateRatePrice(<?=$_REQUEST['id']?>)"></a>&nbsp;<small>Rate %</small></label>
					<div class="col-md-7"><input type="text" id="bpm_rate" name="bpm_rate" placeholder="%" onblur = "javascript:this.value=Comma(this.value);" onkeypress="return isNumberKey(event); computeBasisCommission(); computeCommission()"   value="" class="form-control text-right" readonly onkeyup="computeBasisCommission(); computeCommission();" style="cursor:pointer"></div> 
				</div>

				<div class="form-group">
					<label class="col-md-5 control-label text-right" for="bpm_commission"><small>Commission</small></label>
					<div class="col-md-7"><input type="text" id="bpm_commission" name="bpm_commission" placeholder="0.00" onblur = "javascript:this.value=Comma(this.value);" onkeypress="return isNumberKey(event);" readonly value="" class="form-control text-right"></div>
				</div> 
			</fieldset>
		</div>
		<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
			<fieldset>  
				
				<div class="form-group">
					<label class="col-md-6 control-label text-right" for="bpm_block"><small>Block</small></label>
					<div class="col-md-6"><input type="text" id="bpm_block" name="bpm_block" placeholder="Block" value="" class="form-control text-left" readonly style="cursor:pointer"></div>
				</div> 

				<div class="form-group">
					<label class="col-md-6 control-label text-right">&nbsp;</label>
					<div class="col-md-6">&nbsp;</div>
				</div>

				<div class="form-group">
					<label class="col-md-6 control-label text-right">&nbsp;</label>
					<div class="col-md-6">&nbsp;</div>
				</div>

				<div class="form-group">
					<label class="col-md-6 control-label text-right">&nbsp;</label>
					<div class="col-md-6">&nbsp;</div>
				</div>

				<div class="form-group">
					<label class="col-md-6 control-label text-right">&nbsp;</label>
					<div class="col-md-6">&nbsp;</div>
				</div>

				<div class="form-group">
					<label class="col-md-6 control-label text-right">&nbsp;</label>
					<div class="col-md-6">&nbsp;</div>
				</div>

				<div class="form-group">
					<label class="col-md-6 control-label text-right">&nbsp;</label>
					<div class="col-md-6">&nbsp;</div>
				</div>

				<div class="form-group">
					<label class="col-md-6 control-label text-right">&nbsp;</label>
					<div class="col-md-6">&nbsp;</div>
				</div>

				<div class="form-group">
					<label class="col-md-6 control-label text-right">&nbsp;</label>
					<div class="col-md-6">&nbsp;</div>
				</div>
 

				<div class="form-group">
					<label class="col-md-6 control-label text-right" for="bpm_misc_expense_rate"><a href="#" style="cursor:hand; text-decoration:none" class="glyphicon glyphicon-pencil" onclick="updateMiscPercentagePrice(<?=$_REQUEST['id']?>)"></a>&nbsp;<small>&nbsp;%</small></label>
					<div class="col-md-6"><input type="text" id="bpm_misc_expense_rate" name="bpm_misc_expense_rate" placeholder="%" value="" class="form-control text-left"  readonly style="cursor:pointer" onkeyup="computeMiscExpense(); computeBasisCommission(); computeCommission();"></div>
				</div>

			</fieldset>
		</div>
		<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
			<fieldset> 
				<div class="form-group">
					<label class="col-md-6 control-label text-right" for="bpm_lot"><small>Lot</small></label>
					<div class="col-md-6"><input type="text" id="bpm_lot" name="bpm_lot" placeholder="Lot" value="" class="form-control text-left" readonly style="cursor:pointer"></div>
				</div>
				
				<div class="form-group">
					<label class="col-md-6 control-label text-right">&nbsp;</label>
					<div class="col-md-6">&nbsp;</div>
				</div>

				<div class="form-group">
					<label class="col-md-6 control-label text-right">&nbsp;</label>
					<div class="col-md-6">&nbsp;</div>
				</div>

				<div class="form-group">
					<label class="col-md-6 control-label text-right" for="bpm_date_rf_deposited"><small>Date RF Deposited</small></label>
					<div class="col-md-6"><input type="text" id="bpm_date_rf_deposited" name="bpm_date_rf_deposited" placeholder="MM/DD/YYYY" value="" class="form-control text-right datepicker" style="cursor:pointer" readonly></div>
				</div>  
				
				<div class="form-group">
					<div class="col-md-6"><br/><br/></div>
				</div>
                

			</fieldset>
		</div>
	</div>
	 
	 
	<!-------------->

	<div class="row"><div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"><br></div></div>
	<div class="row"><div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"><br></div></div>

	<div class="row">
		<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
			<fieldset> 
				<div class="table-responsive"> 
				<table cellpadding="0" cellspacing="0" width="100%" class="table table-bordered table-condense table-striped">
					<tr>
						<td class="center text-center">&nbsp;</td>
						<td>&nbsp;</td>
						<td class="center text-center">&nbsp;</td>
						<td class="center text-center"><a href="#" style="cursor:hand; text-decoration:none" class="glyphicon glyphicon-pencil" onclick="updateWithholdingPrice(<?=$_REQUEST['id']?>)"></a>&nbsp;Withholding Tax % <input id="withholding_tax" name="withholding_tax" value=""  type="text"  readonly class="text-right right form-control" style="cursor:pointer" onkeyup="computeWHT();"></td>
						<td class="center text-center">&nbsp;</td>
						<td class="center text-center">&nbsp;</td>
						<td class="center text-center">&nbsp;</td>
						<td class="center text-center">&nbsp;</td>
					</tr>
					<tr>
						<td class="center text-center" width="10%">Releases</td>
						<td>&nbsp;</td>
						<td class="center text-center">Amount</td>
						<td class="center text-center">WHT</td>
						<td class="center text-center">Cash Advance</td>
						<td class="center text-center">Net Comm</td>
						<td class="center text-center">Date Processed</td>
						<td class="center text-center">Check No.</td>
					</tr>
					<tr>
						<td><input type="checkbox" id="first_release_checkbox" name="first_release_checkbox">&nbsp;1st Release<br/>
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" id="ca_checkbox" name="ca_checkbox">&nbsp;CA</td>
						<td>20%</td>
						<td><input type="text" class="form-control text-right right" readonly id="first_release_amount" name="first_release_amount" value="" placeholder="0.00"></td>
						<td><input type="text" class="form-control text-right right" readonly id="first_release_wht" name="first_release_wht" value="" placeholder="0.00"></td>
						<td><input type="text" class="form-control text-right right" readonly id="first_release_cash" name="first_release_cash" value="" placeholder="0.00" ></td>
						<td><input type="text" class="form-control text-right right" readonly id="first_release_net" name="first_release_net" value="" placeholder="0.00"></td>
						<td><input type="text" class="form-control text-right datepicker" style="cursor:pointer" readonly id="first_release_date" name="first_release_date" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right" id="first_release_check" name="first_release_check" value="" placeholder=""></td>
					</tr>
					<tr>
						<td><input type="checkbox" id="second_release_checkbox" name="second_release_checkbox">&nbsp;2nd Release</td>
						<td>20%</td>
						<td><input type="text" class="form-control text-right right" readonly id="second_release_amount" name="second_release_amount" value="" placeholder="0.00"></td>
						<td><input type="text" class="form-control text-right right" readonly id="second_release_wht" name="second_release_wht" value="" placeholder="0.00"></td>
						<td><input type="text" class="form-control text-right right" id="second_release_cash" name="second_release_cash" value="0.00" placeholder="0.00" onkeypress="return isNumberKey(event);"  onkeyup="computeNetCom();"></td>
						<td><input type="text" class="form-control text-right right" readonly id="second_release_net" name="second_release_net" value="" placeholder="0.00"></td>
						<td><input type="text" class="form-control text-right datepicker" style="cursor:pointer" readonly id="second_release_date" name="second_release_date" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right" id="second_release_check" name="second_release_check" value="" placeholder=""></td>
					</tr>
					<tr>
						<td><input type="checkbox" id="third_release_checkbox" name="third_release_checkbox">&nbsp;3rd Release</td>
						<td>60%</td>
						<td><input type="text" class="form-control text-right right" readonly id="third_release_amount" name="third_release_amount" value="" placeholder="0.00"></td>
						<td><input type="text" class="form-control text-right right" readonly id="third_release_wht" name="third_release_wht" value="" placeholder="0.00"></td>
						<td><input type="text" class="form-control text-right right" id="third_release_cash" name="third_release_cash" value="0.00" placeholder="0.00" onkeypress="return isNumberKey(event);"  onkeyup="computeNetCom();"></td>
						<td><input type="text" class="form-control text-right right" readonly id="third_release_net" name="third_release_net" value="" placeholder="0.00"></td>
						<td><input type="text" class="form-control text-right datepicker" style="cursor:pointer" readonly id="third_release_date" name="third_release_date" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right" id="third_release_check" name="third_release_check" value="" placeholder=""></td>
					</tr>
					<tr>
						<td>Total</td>
						<td>100%</td>
						<td><input readonly type="text" class="form-control text-right right" id="total_release_amount" name="total_release_amount"></td>
						<td><input readonly type="text" class="form-control text-right right" id="total_release_wht" name="total_release_wht"></td>
						<td><input readonly type="text" class="form-control text-right right" id="total_release_cash" name="total_release_cash"></td>
						<td><input readonly type="text" class="form-control text-right right" id="total_release_net" name="total_release_net"></td>
						<td>&nbsp;</td>
						<td>&nbsp;</td>
					</tr>
				</table>
				</div>
			</fieldset>
		</div>
	</div>
	
	<div class="row">
		<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
			<fieldset> 
				<div class="form-group">
					<label class="col-md-1 control-label text-right" for="releases_status"><small>Status</small></label>
					<div class="col-md-2"><input type="text" id="releases_status" name="releases_status" readonly placeholder="Status" value="" class="form-control text-left"></div>
				</div>
			</fieldset>	
		</div> 
	</div> 

	<div class="row">
		<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
			<fieldset> 
				<div class="form-group">
					<label class="col-md-1 control-label text-left left" for="releases_remarks"><small>Remarks</small></label>
					<div class="col-md-7">
						<textarea cols="10" row="5" class="form-control" id="releases_remarks" name="releases_remarks"></textarea>
					</div>
				</div>
			</fieldset>	
		</div> 
	</div> 


	<!-------------->
	 
	
	
	 


</div>
</form>

