    jQuery(function() { 
		jQuery('#popanel_2_241').hide();
		var cur_date = new Date();
		var cur_day = cur_date.getDate();
		jQuery('#out_day_214, #ret_day_214').val(cur_day);
        //alert((cur_date.getMonth()>=9?"":"0") + (cur_date.getMonth()+1) +" "+ cur_date.getFullYear());
		jQuery('#out_month_214, #ret_month_214').val((cur_date.getMonth()>=9?"":"0") + (cur_date.getMonth()+1) +" "+ cur_date.getFullYear());
		jQuery('#out_dateselect_214, #ret_dateselect_214').val((cur_day>=10?"":"0") + cur_day +"/"+ (cur_date.getMonth()>=9?"":"0") + (cur_date.getMonth()+1) +"/"+ cur_date.getFullYear());

        jQuery('.potabs_241 div').filter(':not(:first)').hide();
        jQuery('.potablinks_241 a').click(function() {
			the_element = jQuery(this).attr('href'); 
            if (jQuery(the_element).is(':not(:visible)')) {
                jQuery('.potabs_241 div:visible').fadeOut(200, function(){
                    jQuery(the_element).fadeIn(350);
                });
            }
            return false;
	    });
        jQuery('.popanel_sw_1_241').click(function() {
            jQuery('#popanel_2_241').fadeOut(200,function(){
                jQuery('#popanel_1_241').fadeIn(400)
            });
            return false;
        });
        jQuery('.popanel_sw_2_241').click(function() {
            jQuery('#popanel_1_241').fadeOut(200,function(){
                jQuery('#popanel_2_241').fadeIn(400)
            });
            return false;
        });
		
		var asdas = jQuery('#out_dateselect_214, #out_datelink_214').DatePicker({
			format:'d/m/Y',
			date: new Date(),
			current: $('#out_dateselect_214').val(),
			starts: 1, prev: "&laquo;", next: "&raquo;", position: 'r',
			onBeforeShow: function(){
				$('#out_dateselect_214').DatePickerSetDate($('#out_dateselect_214').val(), true);
			},
			onChange: function(formated, dates){
				$('#out_dateselect_214').val(formated);
				jQuery(this).hide();
				jQuery('#out_day_214').val(dates.getDate());
				jQuery('#out_month_214').val((dates.getMonth()>=9?"":"0") + (dates.getMonth()+1) +" "+ dates.getFullYear());
		
			}
		});

		jQuery('#ret_dateselect_214, #ret_datelink_214').DatePicker({
			format:'d/m/Y',
			date: new Date(),
			/*current: $('#ret_dateselect_214').val(),*/
			starts: 1, prev: "&laquo;", next: "&raquo;", position: 'r',
			onBeforeShow: function(){
				$('#ret_dateselect_214').DatePickerSetDate($('#ret_dateselect_214').val(), true);
			},
			onChange: function(formated, dates){
				$('#ret_dateselect_214').val(formated);
				jQuery(this).hide();
				jQuery('#ret_day_214').val(dates.getDate());
				jQuery('#ret_month_214').val((dates.getMonth()>=9?"":"0") + (dates.getMonth()+1) +" "+ dates.getFullYear());
			}
		});
    });