var logoutUrl ='';

function setPostFilterDate(){
	var year = jQuery('#selected_year').val();
	var month = jQuery('#selected_month').val();
	jQuery('#selected_date').val(year+''+month);
}
function setDateFilter(){
	var year = jQuery('#selected_year').val();
	var month = jQuery('#selected_month').val();
	if(month !='0' && year =='0'){	
		var newVal = jQuery("#selected_year option:eq(1)").val()+''+month;
		jQuery('#selected_date').val(newVal);
	}
	if(month =='0' && year !='0'){			
		var newVal = year+''+jQuery("#selected_month option:eq(1)").val();
		jQuery('#selected_date').val(newVal);
	}
	return false;
}

String.prototype.replaceAll = function( strTarget, strSubString){
	var strText = this;
	var intIndexOfMatch = strText.indexOf( strTarget );
	  
	while (intIndexOfMatch != -1){
		strText = strText.replace( strTarget, strSubString ) 
		intIndexOfMatch = strText.indexOf( strTarget );
	}  
	return( strText );
}
