

		
	






function Sort(pmPage,pmSortId,pmSortBy) {
	
	$.ajax({
		type : "POST",
		url	 :g_site_path+"ajax/project",
		data : 'pmSortBy='+pmSortBy+'&pmSortId='+pmSortId+'&vPage='+pmPage+'&rand='+Math.random(),
		dataType: "html",
		success: function(html){
			//alert(html);
			$('#content_container').html(html);
		}
	});
}

function Paging(pmPage) { 	
	var pmSortBy=trim($('#hiddSortBy').val());
	var pmSortId=trim($('#hiddSortId').val());
	
	$.ajax({
		type : "POST",
		url	 :g_site_path+"ajax/deceased-pager",
		data : 'p='+pmPage+'&pmSortBy='+pmSortBy+'&pmSortId='+pmSortId+'&rand='+Math.random(),
		dataType: "html",
		success: function(html)
		{
			$('#content_container').html(html);
		}
	});
}




function reloadDiv(){
	var pmSortBy=trim($('#hiddSortBy').val());
	var pmSortId=trim($('#hiddSortId').val());
	var pmPage=trim($('#hidCurPage').val());
	
	$.ajax({
		type : "POST",
		url	 :g_site_path+"ajax/deceased",
		data : 'pmSortBy='+pmSortBy+'&pmSortId='+pmSortId+'&vPage='+pmPage+'&rand='+Math.random(),
		dataType: "html",
		success: function(html){					
			$('#content_container').html(html);
		}
	});
}



function birthDate(){
	$('#birthdate').datepicker({ dateFormat: 'dd-mm-yy' });	
	$('#birthdate').focus();
}
function deathDate(){
	$('#deathdate').datepicker({ dateFormat: 'dd-mm-yy' });	
	$('#deathdate').focus();
}

function publishDate(){
	$('#publishdate').datepicker({ dateFormat: 'dd-mm-yy' });	
	$('#publishdate').focus();
}

function searchState(){
	var country=trim($('#ctrySerch').val());
	var state=trim($('#stateSerch').val());
	
	$.ajax({
		type : "POST",
		url	 :g_site_path+"ajax/project",
		data : 'country='+country+'&state='+state+'&rand='+Math.random(),
		dataType: "html",
		success: function(html){
							
			$('#content_container').html(html);
		}
	});
}
