// JavaScript Document
	function getThana(){
		seldist= $('#dist')[0].options[$('#dist')[0].selectedIndex].value;
		//alert(seldist);
		if(seldist==0) return;
		postdata = "districtid="+seldist;
		
		$('#thana_sel')[0].innerHTML='loading';
		
		$.ajax({
			url: 'getthana.php',
			type: 'POST',
			data: postdata,
			dataType: 'html',
			timeout: 20000,
			error: function(){

				alert('Error connecting the back end.');
			},
			success: function(response){
				$('#thana_sel')[0].innerHTML = response;
			}
		});

	}
	function getSelectedThana(thana){
		seldist= $('#dist')[0].options[$('#dist')[0].selectedIndex].value;
		//alert(seldist);
		if(seldist==0) return;
		postdata = "districtid="+seldist+'&thana='+thana;
		
		$('#thana_sel')[0].innerHTML='loading';
		
		$.ajax({
			url: 'getthana.php',
			type: 'POST',
			data: postdata,
			dataType: 'html',
			timeout: 20000,
			error: function(){

				alert('Error connecting the back end.');
			},
			success: function(response){
				$('#thana_sel')[0].innerHTML = response;
			}
		});

	}
	
	function sendToBlog(){
		document.location.href="http://blogspot.com";
	}
