<!-- Begin Body --> 
<form  role="form" id="partial_commission_releases_schedule_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="partial_buyer"><small>Buyer</small></label>
					<div class="col-md-7">
							<input type="text" id="partial_buyer" readonly placeholder="Buyer" value="" name="partial_buyer" class="form-control text-left">
							<input type="hidden" name="reservation_id" id="reservation_id">
							<input type="hidden" name="complete_requirement" id="complete_requirement">
							<input type="hidden" name="complete_equity" id="complete_equity">
					</div>
				</div>


				<div class="form-group">
					<label class="col-md-5 control-label text-right" for="partial_reservation_date"><small>Reservation Date</small></label>
					<div class="col-md-7"><input type="text" id="partial_reservation_date" name="partial_reservation_date" placeholder="MM/DD/YYYY" value="" class="form-control text-right" style="cursor:pointer" readonly></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-5 control-label text-right" for="partial_realty"><small>Realty</small></label>
					<div class="col-md-7"><input type="text" id="partial_realty" name="partial_realty"  readonly placeholder="Realty" value="" class="form-control text-left"></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="partial_block"><small>Block</small></label>
					<div class="col-md-6"><input type="text" id="partial_block" name="partial_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" for="partial_lot"><small>Lot</small></label>
					<div class="col-md-6"><input type="text" id="partial_lot" name="partial_lot" placeholder="Lot" value="" class="form-control text-left" readonly style="cursor:pointer"></div>
				</div> 

			</fieldset>
		</div>
	</div>
	  
	<div class="row"><br/></div>
	<div class="row">
		<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
			<fieldset> <input type="hidden" id="brokeragentaccess">
				<div class="table-responsive"> 
				<table cellpadding="0" cellspacing="0" width="100%" class="table table-bordered table-condense table-striped">
					
					<tr>
						<td rowspan="2">&nbsp;</td>
						<td class="center text-center" style="vertical-align: middle; width:10%" rowspan="2">Releases</td>
						<td class="center text-center" colspan="3">Broker</td> 
						<td class="center text-center" colspan="3">Agent</td> 
						<td class="center text-center" style="vertical-align: middle;"  rowspan="2">Date Release</td> 
					</tr>

					<tr> 
						<td class="center text-center">Name</td>
						<td class="center text-center">Account No.</td>
						<td class="center text-center">Amount&nbsp;<a href="#" style="cursor:hand; text-decoration:none" class="glyphicon glyphicon-pencil" onclick="updateBrokerAgentAmount(<?=$_REQUEST['id']?>)"></a></td>
						<td class="center text-center">Name</td>
						<td class="center text-center">Account No.</td>
						<td class="center text-center">Amount&nbsp;<a href="#" style="cursor:hand; text-decoration:none" class="glyphicon glyphicon-pencil" onclick="updateBrokerAgentAmount(<?=$_REQUEST['id']?>)"></a></td> 
					</tr>



					<tr>
						<td><input type="checkbox" class="release_checkbox" id="first_release_checkbox" name="first_release_checkbox"></td>
						<td>1st Release</td>
						<td><input type="text" class="form-control text-left left broker_name" readonly id="first_broker_name" name="first_broker_name" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right broker_account" readonly id="first_broker_account" name="first_broker_account" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right broker_amount" onkeyup="updateAmount(this)" readonly id="first_broker_amount" name="first_broker_amount" value="" placeholder="0.00"></td>
						<td><input type="text" class="form-control text-left left agent_name" readonly id="first_agent_name" name="first_agent_name" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right agent_account" readonly id="first_agent_account" name="first_agent_account" value="" placeholder="" ></td>
						<td><input type="text" class="form-control text-right right agent_amount" onkeyup="updateAmount(this)" readonly id="first_agent_amount" name="first_agent_amount" 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>						
					</tr>

					<tr>
						<td><input type="checkbox" class="release_checkbox" id="second_release_checkbox" name="second_release_checkbox"></td>
						<td>2nd Release</td>
						<td><input type="text" class="form-control text-left left broker_name" readonly id="second_broker_name" name="second_broker_name" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right broker_account" readonly id="second_broker_account" name="second_broker_account" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right broker_amount" onkeyup="updateAmount(this)" readonly id="second_broker_amount" name="second_broker_amount" value="" placeholder="0.00"></td>
						<td><input type="text" class="form-control text-left left agent_name" readonly id="second_agent_name" name="second_agent_name" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right agent_account" readonly id="second_agent_account" name="second_agent_account" value="" placeholder="" ></td>
						<td><input type="text" class="form-control text-right right agent_amount" onkeyup="updateAmount(this)"  readonly id="second_agent_amount" name="second_agent_amount" 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>						
					</tr>


					<tr>
						<td><input type="checkbox" class="release_checkbox" id="third_release_checkbox" name="third_release_checkbox"></td>
						<td>3rd Release</td>
						<td><input type="text" class="form-control text-left left broker_name" readonly id="third_broker_name" name="third_broker_name" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right broker_account" readonly id="third_broker_account" name="third_broker_account" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right broker_amount" onkeyup="updateAmount(this)"  readonly id="third_broker_amount" name="third_broker_amount" value="" placeholder="0.00"></td>
						<td><input type="text" class="form-control text-left left agent_name" readonly id="third_agent_name" name="third_agent_name" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right agent_account" readonly id="third_agent_account" name="third_agent_account" value="" placeholder="" ></td>
						<td><input type="text" class="form-control text-right right agent_amount" onkeyup="updateAmount(this)"  readonly id="third_agent_amount" name="third_agent_amount" 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>						
					</tr>

					<tr>
						<td>
							<input type="checkbox" class="release_checkbox" id="fourth_release_checkbox" name="fourth_release_checkbox">
							<span class="warning_incomplete_req glyphicon glyphicon-exclamation-sign" style="color:#ff0000; font-size:12px; float:right; display: inline-block;" title="Incomplete Documents from Documentation 1"></span>
							<span class="warning_incomplete_equity glyphicon glyphicon-tags" style="color:#ff0000; font-size:12px; float:right; display: inline-block;" title="Equity not updated from Accounting 1"></span>
						</td>
						<td>4th Release</td>
						<td><input type="text" class="form-control text-left left broker_name" readonly id="fourth_broker_name" name="fourth_broker_name" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right broker_account" readonly id="fourth_broker_account" name="fourth_broker_account" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right broker_amount" onkeyup="updateAmount(this)"  readonly id="fourth_broker_amount" name="fourth_broker_amount" value="" placeholder="0.00"></td>
						<td><input type="text" class="form-control text-left left agent_name" readonly id="fourth_agent_name" name="fourth_agent_name" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right agent_account" readonly id="fourth_agent_account" name="fourth_agent_account" value="" placeholder="" ></td>
						<td><input type="text" class="form-control text-right right agent_amount" onkeyup="updateAmount(this)"  readonly id="fourth_agent_amount" name="fourth_agent_amount" value="" placeholder="0.00"></td> 
						<td><input type="text" class="form-control text-right datepicker" style="cursor:pointer" readonly id="fourth_release_date" name="fourth_release_date" value="" placeholder=""></td>						
					</tr>

					<tr>
						<td>
							<input type="checkbox" class="release_checkbox" id="fifth_release_checkbox" name="fifth_release_checkbox">
							<span class="warning_incomplete_req glyphicon glyphicon-exclamation-sign" style="color:#ff0000; font-size:12px; float:right; display: inline-block;" title="Incomplete Documents from Documentation 1"></span>
							<span class="warning_incomplete_equity glyphicon glyphicon-tags" style="color:#ff0000; font-size:12px; float:right; display: inline-block;" title="Equity not updated from Accounting 1"></span>
						</td>
						<td>5th Release</td>
						<td><input type="text" class="form-control text-left left broker_name" readonly id="fifth_broker_name" name="fifth_broker_name" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right broker_account" readonly id="fifth_broker_account" name="fifth_broker_account" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right broker_amount" onkeyup="updateAmount(this)"  readonly id="fifth_broker_amount" name="fifth_broker_amount" value="" placeholder="0.00"></td>
						<td><input type="text" class="form-control text-left left agent_name" readonly id="fifth_agent_name" name="fifth_agent_name" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right agent_account" readonly id="fifth_agent_account" name="fifth_agent_account" value="" placeholder="" ></td>
						<td><input type="text" class="form-control text-right right agent_amount" onkeyup="updateAmount(this)"  readonly id="fifth_agent_amount" name="fifth_agent_amount" value="" placeholder="0.00"></td> 
						<td><input type="text" class="form-control text-right datepicker" style="cursor:pointer" readonly id="fifth_release_date" name="fifth_release_date" value="" placeholder=""></td>						
					</tr>
 
					<tr>
						<td>
							<input type="checkbox" class="release_checkbox" id="six_release_checkbox" name="six_release_checkbox">
							<span class="warning_incomplete_req glyphicon glyphicon-exclamation-sign" style="color:#ff0000; font-size:12px; float:right; display: inline-block;" title="Incomplete Documents from Documentation 1"></span>
							<span class="warning_incomplete_equity glyphicon glyphicon-tags" style="color:#ff0000; font-size:12px; float:right; display: inline-block;" title="Equity not updated from Accounting 1"></span>
						</td>
						<td>6th Release</td>
						<td><input type="text" class="form-control text-left left broker_name" readonly id="six_broker_name" name="six_broker_name" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right broker_account" readonly id="six_broker_account" name="six_broker_account" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right broker_amount" onkeyup="updateAmount(this)"  readonly id="six_broker_amount" name="six_broker_amount" value="" placeholder="0.00"></td>
						<td><input type="text" class="form-control text-left left agent_name" readonly id="six_agent_name" name="six_agent_name" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right agent_account" readonly id="six_agent_account" name="six_agent_account" value="" placeholder="" ></td>
						<td><input type="text" class="form-control text-right right agent_amount" onkeyup="updateAmount(this)"  readonly id="six_agent_amount" name="six_agent_amount" value="" placeholder="0.00"></td> 
						<td><input type="text" class="form-control text-right datepicker" style="cursor:pointer" readonly id="six_release_date" name="six_release_date" value="" placeholder=""></td>						
					</tr>
 
 					<tr>
						<td>
							<input type="checkbox" class="release_checkbox" id="seven_release_checkbox" name="seven_release_checkbox">
							<span class="warning_incomplete_req glyphicon glyphicon-exclamation-sign" style="color:#ff0000; font-size:12px; float:right; display: inline-block;" title="Incomplete Documents from Documentation 1"></span>
							<span class="warning_incomplete_equity glyphicon glyphicon-tags" style="color:#ff0000; font-size:12px; float:right; display: inline-block;" title="Equity not updated from Accounting 1"></span>
						</td>
						<td>7th Release</td>
						<td><input type="text" class="form-control text-left left broker_name" readonly id="seven_broker_name" name="seven_broker_name" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right broker_account" readonly id="seven_broker_account" name="seven_broker_account" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right broker_amount" onkeyup="updateAmount(this)"  readonly id="seven_broker_amount" name="seven_broker_amount" value="" placeholder="0.00"></td>
						<td><input type="text" class="form-control text-left left agent_name" readonly id="seven_agent_name" name="seven_agent_name" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right agent_account" readonly id="seven_agent_account" name="seven_agent_account" value="" placeholder="" ></td>
						<td><input type="text" class="form-control text-right right agent_amount" onkeyup="updateAmount(this)"  readonly id="seven_agent_amount" name="seven_agent_amount" value="" placeholder="0.00"></td> 
						<td><input type="text" class="form-control text-right datepicker" style="cursor:pointer" readonly id="seven_release_date" name="seven_release_date" value="" placeholder=""></td>						
					</tr>

 					<tr>
						<td>
							<input type="checkbox" class="release_checkbox" id="eight_release_checkbox" name="eight_release_checkbox">
							<span class="warning_incomplete_req glyphicon glyphicon-exclamation-sign" style="color:#ff0000; font-size:12px; float:right; display: inline-block;" title="Incomplete Documents from Documentation 1"></span>
							<span class="warning_incomplete_equity glyphicon glyphicon-tags" style="color:#ff0000; font-size:12px; float:right; display: inline-block;" title="Equity not updated from Accounting 1"></span>
						</td>
						<td>8th Release</td>
						<td><input type="text" class="form-control text-left left broker_name" readonly id="eight_broker_name" name="eight_broker_name" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right broker_account" readonly id="eight_broker_account" name="eight_broker_account" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right broker_amount" onkeyup="updateAmount(this)"  readonly id="eight_broker_amount" name="eight_broker_amount" value="" placeholder="0.00"></td>
						<td><input type="text" class="form-control text-left left agent_name" readonly id="eight_agent_name" name="eight_agent_name" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right agent_account" readonly id="eight_agent_account" name="eight_agent_account" value="" placeholder="" ></td>
						<td><input type="text" class="form-control text-right right agent_amount" onkeyup="updateAmount(this)"  readonly id="eight_agent_amount" name="eight_agent_amount" value="" placeholder="0.00"></td> 
						<td><input type="text" class="form-control text-right datepicker" style="cursor:pointer" readonly id="eight_release_date" name="eight_release_date" value="" placeholder=""></td>						
					</tr>

 					<tr>
						<td>
							<input type="checkbox" class="release_checkbox" id="nine_release_checkbox" name="nine_release_checkbox">
							<span class="warning_incomplete_req glyphicon glyphicon-exclamation-sign" style="color:#ff0000; font-size:12px; float:right; display: inline-block;" title="Incomplete Documents from Documentation 1"></span>
							<span class="warning_incomplete_equity glyphicon glyphicon-tags" style="color:#ff0000; font-size:12px; float:right; display: inline-block;" title="Equity not updated from Accounting 1"></span>
						</td>
						<td>9th Release</td>
						<td><input type="text" class="form-control text-left left broker_name" readonly id="nine_broker_name" name="nine_broker_name" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right broker_account" readonly id="nine_broker_account" name="nine_broker_account" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right broker_amount" onkeyup="updateAmount(this)"  readonly id="nine_broker_amount" name="nine_broker_amount" value="" placeholder="0.00"></td>
						<td><input type="text" class="form-control text-left left agent_name" readonly id="nine_agent_name" name="nine_agent_name" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right agent_account" readonly id="nine_agent_account" name="nine_agent_account" value="" placeholder="" ></td>
						<td><input type="text" class="form-control text-right right agent_amount" onkeyup="updateAmount(this)"  readonly id="nine_agent_amount" name="nine_agent_amount" value="" placeholder="0.00"></td> 
						<td><input type="text" class="form-control text-right datepicker" style="cursor:pointer" readonly id="nine_release_date" name="nine_release_date" value="" placeholder=""></td>						
					</tr>

 					<tr>
						<td>
							<input type="checkbox" class="release_checkbox" id="ten_release_checkbox" name="ten_release_checkbox">
							<span class="warning_incomplete_req glyphicon glyphicon-exclamation-sign" style="color:#ff0000; font-size:12px; float:right; display: inline-block;" title="Incomplete Documents from Documentation 1"></span>
							<span class="warning_incomplete_equity glyphicon glyphicon-tags" style="color:#ff0000; font-size:12px; float:right; display: inline-block;" title="Equity not updated from Accounting 1"></span>
						</td>
						<td>10th Release</td>
						<td><input type="text" class="form-control text-left left broker_name" readonly id="ten_broker_name" name="ten_broker_name" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right broker_account" readonly id="ten_broker_account" name="ten_broker_account" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right broker_amount" onkeyup="updateAmount(this)"  readonly id="ten_broker_amount" name="ten_broker_amount" value="" placeholder="0.00"></td>
						<td><input type="text" class="form-control text-left left agent_name" readonly id="ten_agent_name" name="ten_agent_name" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right agent_account" readonly id="ten_agent_account" name="ten_agent_account" value="" placeholder="" ></td>
						<td><input type="text" class="form-control text-right right agent_amount" onkeyup="updateAmount(this)"  readonly id="ten_agent_amount" name="ten_agent_amount" value="" placeholder="0.00"></td> 
						<td><input type="text" class="form-control text-right datepicker" style="cursor:pointer" readonly id="ten_release_date" name="ten_release_date" value="" placeholder=""></td>						
					</tr>

					<tr>
						<td>
							<input type="checkbox" class="release_checkbox" id="eleven_release_checkbox" name="eleven_release_checkbox">
							<span class="warning_incomplete_req glyphicon glyphicon-exclamation-sign" style="color:#ff0000; font-size:12px; float:right; display: inline-block;" title="Incomplete Documents from Documentation 1"></span>
							<span class="warning_incomplete_equity glyphicon glyphicon-tags" style="color:#ff0000; font-size:12px; float:right; display: inline-block;" title="Equity not updated from Accounting 1"></span>
						</td>
						<td>11th Release</td>
						<td><input type="text" class="form-control text-left left broker_name" readonly id="eleven_broker_name" name="eleven_broker_name" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right broker_account" readonly id="eleven_broker_account" name="eleven_broker_account" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right broker_amount" onkeyup="updateAmount(this)"  readonly id="eleven_broker_amount" name="eleven_broker_amount" value="" placeholder="0.00"></td>
						<td><input type="text" class="form-control text-left left agent_name" readonly id="eleven_agent_name" name="eleven_agent_name" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right agent_account" readonly id="eleven_agent_account" name="eleven_agent_account" value="" placeholder="" ></td>
						<td><input type="text" class="form-control text-right right agent_amount" onkeyup="updateAmount(this)"  readonly id="eleven_agent_amount" name="eleven_agent_amount" value="" placeholder="0.00"></td> 
						<td><input type="text" class="form-control text-right datepicker" style="cursor:pointer" readonly id="eleven_release_date" name="eleven_release_date" value="" placeholder=""></td>						
					</tr>

					<tr>
						<td>
							<input type="checkbox" class="release_checkbox" id="twelve_release_checkbox" name="twelve_release_checkbox">
							<span class="warning_incomplete_req glyphicon glyphicon-exclamation-sign" style="color:#ff0000; font-size:12px; float:right; display: inline-block;" title="Incomplete Documents from Documentation 1"></span>
							<span class="warning_incomplete_equity glyphicon glyphicon-tags" style="color:#ff0000; font-size:12px; float:right; display: inline-block;" title="Equity not updated from Accounting 1"></span>
						</td>
						<td>12th Release</td>
						<td><input type="text" class="form-control text-left left broker_name" readonly id="twelve_broker_name" name="twelve_broker_name" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right broker_account" readonly id="twelve_broker_account" name="twelve_broker_account" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right broker_amount" onkeyup="updateAmount(this)"  readonly id="twelve_broker_amount" name="twelve_broker_amount" value="" placeholder="0.00"></td>
						<td><input type="text" class="form-control text-left left agent_name" readonly id="twelve_agent_name" name="twelve_agent_name" value="" placeholder=""></td>
						<td><input type="text" class="form-control text-right right agent_account" readonly id="twelve_agent_account" name="twelve_agent_account" value="" placeholder="" ></td>
						<td><input type="text" class="form-control text-right right agent_amount" onkeyup="updateAmount(this)"  readonly id="twelve_agent_amount" name="twelve_agent_amount" value="" placeholder="0.00"></td> 
						<td><input type="text" class="form-control text-right datepicker" style="cursor:pointer" readonly id="twelve_release_date" name="twelve_release_date" value="" placeholder=""></td>						
					</tr>
 
<!---------------------------------------------------------------------->

    
				</table>
				</div>
			</fieldset>
		</div>
	</div>
	 

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


</div>
</form>

<script>
	function updateAmount(dis){
			var brok = $('#brokeragentaccess').val();
			  
			if(brok=='accountant'){ 
				if(dis.value.replace(/,/g, '')>5000){
					alert('more than 5,000'); 
					$('#'+dis.id).val('');
				}
			}
	}
</script>