function getOop() {
	var cPage = $('#oopSelect').val();
	alert(cPage);
}

$(document).ready(function () {
	if (document.getElementById('oopSelect') && document.getElementById('flatListCurrentPage')) {
		$('#oopSelect').change(function() {
			var cPage = parseInt($('#flatListCurrentPage').html());
			var cVal = parseInt($(this).val());
			
			if (cVal && cPage) {
				$.get(
					'/set-oop/',
					{ cpage : cPage, cval : cVal },
					function (e) {
						document.location = flatListBaseUrl +  $(e).find('resultpage').text() + '/';
					}
				);
			}
			
		});
	}
	
	if (document.getElementById('ChangeCurrencyPopup')) {
		$('#ChangeCurrencyPopup .single').bind('click', {}, function (e) {
			$.get(
				'/currency/' + this.id.replace(/\D/g, ''),
				[],
				function (d) {
					document.location += '';
				}
			);
		});
	}
});
