<script>
var detect_location = '<?php echo Yii::app()->createUrl('ajax/detectlocation');?>';
function opendetectLocation(){

$('#myModal3').addClass('open'); 
$('#boxes').removeClass('open')
$("#raw_ht_ml").html('<iframe id="ifrm"   class="mframe" ></iframe>'),document.getElementById("ifrm").src=detect_location;


}
adreesField  = ''; successtest  = '';
 
function closePopup2(){  $('#myModal3').removeClass('open');  $('#ListingUsers_address').val(adreesField); setTimeout(function(){  location.reload(); }, 1500); }

</script>
<style>
#myModal3.open {
	margin-right: 0px;
	display: block;
	z-index: 111111;
	margin: auto;
	top: 0;
	position: fixed;
	left: 0;
	right: 0;
	max-width: unset;
	display: flex;
	justify-content: center;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.5);
}#myModal3.open .modal-dialog{
	 background:#fff;
	 max-width:90%;
	 width:600px;
	 border-radius:5px;
}.mframe {
	min-height: 550px;
	width: 100%;
	border: 0px;background:#fff;border-radius:10px;
}#myModal3.open .modal-dialog {
    
    max-height: 460px!important;
}
</style>
<div id="myModal3" class="modal fade" data-backdrop="static"  role="dialog" aria-labelledby="myModal3Label" aria-hidden="true" style="margin-right:0px">

<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">

<div class="modal-body" id="cn_propertys">
<div class=" " id="raw_ht_ml" style="">
<p>Loading...</p>
</div>
<div class="clearfix"></div>
</div>

</div>
</div>
</div>  
<style>.mframe {
min-height: 480px;
max-height: 480px;
height: 480px !important;
}
.isOnFram .container.card-1 { padding:0px !important; }
</style>
