function hidemyprofile(){
	$('#statusloading').show();
	$.post(
		"/ajax/setstatus/", 
		{
			mode: 'dis'
		},
	  function(data){
	  	if (data){
	  		$('#hidebutton').addClass("act");
	  		$('#showbutton').removeClass('act');
	  		$('#hidediv').hide();
	  		$('#showdiv').show();
				$('#statusloading').hide();	  		
			} else {
				$('#statusloading').hide();
				return false;
			}		    
	  }
	);
}

function showmyprofile(){
	$('#statusloading').show();
	$.post(
		"/ajax/setstatus/", 
		{
			mode: 'act'
		},
	  function(data){
	  	if (data){
	  		$('#hidebutton').removeClass("act");
	  		$('#showbutton').addClass('act');
	  		
	  		$('#hidediv').show();
	  		$('#showdiv').hide();
				$('#statusloading').hide();	  		
			} else {
				$('#statusloading').hide();
				return false;
			}		    
	  }
	);
}
function checkchildren1(){
	if ($('#checkchildren').attr('checked')){
		$('#childselect').show();
		$('#martial_section').css('height','200px');		
	} else {
		$('#childselect').hide();
		$('#martial_section').css('height','100px');
	}
}
function reviewprofile(){
	$('#statusloading').show();
	$.post(
		"/ajax/imbrapreview/", 
		{
			fullname: $('#fullname').val(),
			citizenship: $('#citizenship').val(),
			id_country: $('#id_country').val(),
			state: $('#state').val(),
			city: $('#city').val(),
			zip: $('#zip').val(),
			phone: $('#phone').val(),
			mobile: $('#mobile').val(),
			email: $('#email').val(),
			birthday: $('#birthday').val(),
			birthmonth: $('#birthmonth').val(),
			birthyear: $('#birthyear').val(),
			civilprotection: $('#civilprotection').val(),
			arrest1: $('#arrest1').val(),
			arrest2: $('#arrest2').val(),
			arrest3: $('#arrest3').val(),
			martial: $('#martial').val(),
			pmartial: $('#pmartial').val(),
			sponsorship: $('#sponsorship').val(),
			children: $('#children').val(),
			statescountries: $('#statescountries').val()			
		},
	  function(data){
	  	if (data){
	  		$('#imbra_preview').html(data);
	  		$('#imbra_preview').show();
	  		$('#imbra_form').hide();
			} else {
				return false;
			}
			$('#statusloading').hide();		    
	  }
	);
}

function editimbra(){
	$('#imbra_preview').hide();
	$('#imbra_form').show();
}
function submitimbra(){
	$('#imbra_form_').submit();
}
