0f5a17a3c24710db6bd75922578455309423ef0a
1 function ConfirmCancelFlight() {
2 var oFormObject
= document
.forms
['reservations'];
3 if (confirm("Voulez-vous vraiment annuler votre réservation sur le vol " + oFormObject
.elements
['flight_id'].value
+ " ?")) {
4 var input
= document
.createElement("input");
5 input
.setAttribute("type", "hidden");
6 input
.setAttribute("name", "cancel");
7 input
.setAttribute("value", "Annuler");
8 oFormObject
.appendChild(input
);