
$(function () {

  $( '.js-toggle_send_form_final' ).click(function () {

    $( '.send_msg_confirm' ).hide();
    $( '.send_msg_refused' ).hide();
	$( '.noneagree').show(); 
    $( '.agreefinal' ).hide();
	$( '.nonmodifybooking').show(); 
    $( '.modifybooking' ).hide();

    $( '.send_msg' ).toggle();

    return false;

  })

});

$(function () {

  $( '.js-toggle_send_form_confirm_final' ).click(function ( event ) {
	event.preventDefault();
		window.scroll(0,100);

    $( '.send_msg' ).hide();
    $( '.send_msg_refused' ).hide();
	$( '.noneagree').show(); 
    $( '.agreefinal' ).hide();
	$( '.nonmodifybooking').show(); 
    $( '.modifybooking' ).hide();

    $( '.send_msg_confirm' ).toggle();

    return false;

  })

});

$(function () {

  $( '.js-toggle_send_form' ).click(function () {

    $( '.send_msg_confirm' ).hide();
    $( '.send_msg_refused' ).hide();
	$( '.noneagree').show(); 
    $( '.agreefinal' ).hide();
	$( '.nonmodifybooking').show(); 
    $( '.modifybooking' ).hide();

    $( '.send_msg' ).toggle();

    return false;

  })

});

/*
$(function () {

  $( '.js-toggle_send_form_confirm' ).click(function ( event ) {
	event.preventDefault();
		window.scroll(0,100);

    $( '.send_msg' ).hide();
    $( '.send_msg_refused' ).hide();

    $( '.send_msg_confirm' ).toggle();

    return false;

  })

}); */

$(function () {

  $( '.no' ).click(function () {

    $( '.send_msg' ).hide();
    $( '.send_msg_confirm' ).hide();
	$( '.noneagree').show(); 
    $( '.agreefinal' ).hide();
	$( '.nonmodifybooking').show(); 
    $( '.modifybooking' ).hide();

    $( '.send_msg_refused' ).toggle();

    return false;

  })

});

$(function () {

  $( '.js-toggle_send_form' ).click(function () {

    $( '.send_msg_confirm' ).hide();
    $( '.send_msg_refused' ).hide();
	
	$( '.noneagree').show(); 
    $( '.agreefinal' ).hide();
	$( '.nonmodifybooking').show(); 
    $( '.modifybooking' ).hide();

    $( '.send_msg' ).toggle();

    return false;

  })

});

$(function () {

  $( '.js-toggle_send_form_confirm' ).click(function ( event ) {
		event.preventDefault();
		window.scroll(0,100);

    $( '.send_msg' ).hide();
    $( '.send_msg_refused' ).hide();

    $( '.send_msg_confirm' ).show();
	$( '.noneagree').hide(); 
    $( '.agreefinal' ).show();
	$( '.nonmodifybooking').show(); 
    $( '.modifybooking' ).hide();
	

	

  })

});

$(function () {

  $( '.js-toggle_send_form_final' ).click(function ( event ) {
		event.preventDefault();
		window.scroll(0,100);

    
    $( '.send_msg_refused' ).hide();

    $( '.send_msg_confirm' ).hide();
	$( '.send_msg' ).show();
	
	$( '.nonmodifybooking').hide(); 
    $( '.modifybooking' ).show();

	

  })

});


$(function () {

	$( '.agreetop' ).click(function(){
			$('#formconfirmidtop').submit();
		});

		return false;
	
});	

$(function () {

	$( '.agreebottom' ).click(function(){
			$('#formconfirmidbottom').submit();
		});

		return false;
	
});	

$(function () {

	$( '.modifybookingtop' ).click(function(){
			$('#formmodifyidtop').submit();
		});

		return false;
	
});	

$(function () {

	$( '.modifybookingbottom' ).click(function(){
			$('#formmodifyidbottom').submit();
		});

		return false;
	
});	

$(function () {

  $( '.js-toggle_send_form_refused' ).click(function () {

    $( '.send_msg' ).hide();
    $( '.send_msg_confirm' ).hide();
	
	$( '.noneagree').show(); 
    $( '.agreefinal' ).hide();
	$( '.nonmodifybooking').show(); 
    $( '.modifybooking' ).hide();

    $( '.send_msg_refused' ).toggle();

    return false;

  })

});


/*reservation*/
$(function () {

  $( '.modify_reservation' ).click(function () {

    $( '.send_msg' ).toggle();

    return false;

  })

});


