// Jquery Document

(function($){
	$(function(){
		//alert('1 : ' + $('#fr input').attr('checked') + ', 2 : ' + $('#en input').attr('checked'));
		if($('#en input').attr('checked') == true) {
			$('#p').val("1002");
			$('#nlbox').val("7");
			//alert('true');
		} else {
			$('#p').val("1001");
			$('#nlbox').val("1");
			//alert('false');
		}
		$('#fr input').change(function() {
			// if changed to, for example, the last option, then
			 //$(this).find('option:selected').text() == D
			//$(this).val() == 4
			// get whatever value you want into a variable
			var x = $(this).val();
			// and update the hidden input's value
			$('#p').val("1001");
			$('#nlbox').val("1");
			//alert($('#p').val());
			//alert($('#nlbox').val());
		});
		$('#en input').change(function() {
			// if changed to, for example, the last option, then
			 //$(this).find('option:selected').text() == D
			//$(this).val() == 4
			// get whatever value you want into a variable
		   var x = $(this).val();
			// and update the hidden input's value
			$('#p').val("1002");
			$('#nlbox').val("7");
			//alert($('#p').val());
			//alert($('#nlbox').val());
		});
	});
})(jQuery);

