function insertResa(){var numero_resa=document.getElementById("numero_resa").value;var genre_demandeur_resa=document.getElementById("Client_Genre").value;var nom_demandeur_resa=document.getElementById("Client_Nom").value;var telephone_demandeur_resa=document.getElementById("Client_Tel_Fixe").value;var mobil_demandeur_resa=document.getElementById("Client_Tel_Portable").value;var prenom_demandeur_resa=document.getElementById("Client_Prenom").value;var email_demandeur_resa=document.getElementById("Client_Email1").value;var societe_demandeur_resa=document.getElementById("Client_Societe").value;var adresse_demandeur_resa=document.getElementById("Client_Adresse").value;var Client_Typeresa=document.getElementById("Client_Typeresa").value;var cp_demandeur_resa=document.getElementById("Client_CP").value;var ville_demandeur_resa=document.getElementById("Client_Ville").value;var pays_demandeur_resa=document.getElementById("Client_Pays").value;var prepaid_resa=document.getElementById("prepaid_resa").value;var nom_dept_resa=document.getElementById("nom_dept_resa").value;var agence_depart_resa=document.getElementById("agence_depart_resa").value;var agence_retour_resa=document.getElementById("agence_retour_resa").value;var date_depart_resa=document.getElementById("date_depart_resa").value;var date_retour_resa=document.getElementById("date_retour_resa").value;var nb_jour_resa=document.getElementById("nb_jour_resa").value;var heure_depart_resa=document.getElementById("heure_depart_resa").value;var heure_retour_resa=document.getElementById("heure_retour_resa").value;var code_tarif_resa=document.getElementById("code_tarif_resa").value;var code_promo_resa=document.getElementById("code_promo_resa").value;var type_pro_resa=document.getElementById("type_pro_resa").value;var typeto_pro_resa=document.getElementById("typeto_pro_resa").value;if((type_pro_resa=="SOC")||(type_pro_resa=="TO")){var nom_conduct_resa=document.getElementById("nom_conduct_resa").value;var prenom_conduct_resa=document.getElementById("prenom_conduct_resa").value}else{var nom_conduct_resa=document.getElementById("Client_Nom").value;var prenom_conduct_resa=document.getElementById("Client_Prenom").value}var age_conducteur_resa=document.getElementById("age_conducteur_resa").value;var date_naissance_conduct_resa=document.getElementById("date_naissance_conduct_resa").value;var nom_conduct_add_resa=document.getElementById("nom_conduct_add_resa").value;var prenom_conduct_add_resa=document.getElementById("prenom_conduct_add_resa").value;var date_naissance_conduct_add_resa=document.getElementById("date_naissance_conduct_add_resa").value;var date_resa=document.getElementById("date_resa").value;var commentaire_resa=document.getElementById("commentaire_resa").value;var voucher_resa=document.getElementById("voucher_resa").checked;var num_vol_arrivee_resa=document.getElementById("num_vol_arrivee_resa").value;var num_vol_retour_resa=document.getElementById("num_vol_retour_resa").value;var vehicule_type_resa=document.getElementById("vehicule_type_resa").value;var vehicule_modele_resa=document.getElementById("vehicule_modele_resa").value;var vehicule_categ_resa=document.getElementById("vehicule_categ_resa").value;var montant_total_resa=document.getElementById("montant_total_resa").value;var montant_remise_prepaid=document.getElementById("montant_remise_prepaid").value;var montant_remise_promo=document.getElementById("montant_remise_promo").value;var montant_aeroport_resa=document.getElementById("montant_aeroport_resa").value;var montant_option_resa=document.getElementById("montant_option_resa").value;var montant_stf_resa=document.getElementById("montant_stf_resa").value;var montant_scdw_resa=document.getElementById("montant_scdw_resa").value;var num_locpro_resa=document.getElementById("num_locpro_resa").value;var code_tiers_agent_resa=document.getElementById("code_tiers_agent_resa").value;var nom_pro_resa=document.getElementById("nom_pro_resa").value;var nom_agent_pro_resa=document.getElementById("nom_agent_pro_resa").value;var nb_siege_enfant_option_resa=document.getElementById("nb_siege_enfant_option_resa").value;var conducteur_add_option_resa=document.getElementById("conducteur_add_option_resa").value;var nb_rehausseur_option_resa=document.getElementById("nb_rehausseur_option_resa").value;var abandon_option_resa=document.getElementById("abandon_option_resa").value;var supp_conduct_moins_25_option_resa=document.getElementById("supp_conduct_moins_25_option_resa").value;var supp_conduct_add_option_resa=document.getElementById("supp_conduct_add_option_resa").value;var stf_option_resa=document.getElementById("stf_option_resa").value;var scdw_option_resa=document.getElementById("scdw_option_resa").value;var age_conduct_add_option_resa=document.getElementById("age_conduct_add_option_resa").value;var anc_numresa=document.getElementById("anc_numresa").value;var xhr_object=null;if(window.XMLHttpRequest){xhr_object=new XMLHttpRequest()}else{if(window.ActiveXObject){xhr_object=new ActiveXObject("Microsoft.XMLHTTP")}else{alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");return}}xhr_object.open("POST","./fileadmin/resa/traitement.php",true);xhr_object.onreadystatechange=function(){if(xhr_object.readyState==4){xhr_object.responseText;eval(xhr_object.responseText)}};xhr_object.setRequestHeader("Content-type","application/x-www-form-urlencoded");var data="numero_resa="+numero_resa+"&Client_Typeresa="+Client_Typeresa+"&prepaid_resa="+prepaid_resa+"&nom_dept_resa="+nom_dept_resa+"&agence_depart_resa="+agence_depart_resa+"&agence_retour_resa="+agence_retour_resa+"&date_depart_resa="+date_depart_resa+"&date_retour_resa="+date_retour_resa+"&nb_jour_resa="+nb_jour_resa+"&heure_depart_resa="+heure_depart_resa+"&heure_retour_resa="+heure_retour_resa+"&code_tarif_resa="+code_tarif_resa+"&code_promo_resa="+code_promo_resa+"&nom_conduct_resa="+nom_conduct_resa+"&prenom_conduct_resa="+prenom_conduct_resa+"&age_conducteur_resa="+age_conducteur_resa+"&date_naissance_conduct_resa="+date_naissance_conduct_resa+"&nom_conduct_add_resa="+nom_conduct_add_resa+"&prenom_conduct_add_resa="+prenom_conduct_add_resa+"&date_naissance_conduct_add_resa="+date_naissance_conduct_add_resa+"&nom_demandeur_resa="+nom_demandeur_resa+"&prenom_demandeur_resa="+prenom_demandeur_resa+"&email_demandeur_resa="+email_demandeur_resa+"&telephone_demandeur_resa="+telephone_demandeur_resa+"&mobil_demandeur_resa="+mobil_demandeur_resa+"&genre_demandeur_resa="+genre_demandeur_resa+"&societe_demandeur_resa="+societe_demandeur_resa+"&adresse_demandeur_resa="+adresse_demandeur_resa+"&cp_demandeur_resa="+cp_demandeur_resa+"&ville_demandeur_resa="+ville_demandeur_resa+"&pays_demandeur_resa="+pays_demandeur_resa+"&date_resa="+date_resa+"&commentaire_resa="+commentaire_resa+"&voucher_resa="+voucher_resa+"&num_vol_arrivee_resa="+num_vol_arrivee_resa+"&num_vol_retour_resa="+num_vol_retour_resa+"&vehicule_type_resa="+vehicule_type_resa+"&vehicule_modele_resa="+vehicule_modele_resa+"&vehicule_categ_resa="+vehicule_categ_resa+"&montant_total_resa="+montant_total_resa+"&montant_remise_prepaid="+montant_remise_prepaid+"&montant_remise_promo="+montant_remise_promo+"&montant_aeroport_resa="+montant_aeroport_resa+"&montant_option_resa="+montant_option_resa+"&montant_stf_resa="+montant_stf_resa+"&montant_scdw_resa="+montant_scdw_resa+"&nom_pro_resa="+nom_pro_resa+"&nom_agent_pro_resa="+nom_agent_pro_resa+"&type_pro_resa="+type_pro_resa+"&typeto_pro_resa="+typeto_pro_resa+"&num_locpro_resa="+num_locpro_resa+"&code_tiers_agent_resa="+code_tiers_agent_resa+"&nb_siege_enfant_option_resa="+nb_siege_enfant_option_resa+"&conducteur_add_option_resa="+conducteur_add_option_resa+"&anc_numresa="+anc_numresa+"&nb_rehausseur_option_resa="+nb_rehausseur_option_resa+"&abandon_option_resa="+abandon_option_resa+"&supp_conduct_moins_25_option_resa="+supp_conduct_moins_25_option_resa+"&supp_conduct_add_option_resa="+supp_conduct_add_option_resa+"&stf_option_resa="+stf_option_resa+"&scdw_option_resa="+scdw_option_resa+"&age_conduct_add_option_resa="+age_conduct_add_option_resa;xhr_object.send(data)}function insertResaSimple(){var numero_resa=document.getElementById("numero_resa").value;var genre_demandeur_resa=document.getElementById("Client_Genre").value;var nom_demandeur_resa=document.getElementById("Client_Nom").value;var telephone_demandeur_resa=document.getElementById("Client_Tel_Fixe").value;var mobil_demandeur_resa=document.getElementById("Client_Tel_Portable").value;var prenom_demandeur_resa=document.getElementById("Client_Prenom").value;var email_demandeur_resa=document.getElementById("Client_Email1").value;var email_conducteur_resa=document.getElementById("Conducteur_Email").value;var societe_demandeur_resa=document.getElementById("Client_Societe").value;var adresse_demandeur_resa=document.getElementById("Client_Adresse").value;var Client_Typeresa=document.getElementById("Client_Typeresa").value;var cp_demandeur_resa=document.getElementById("Client_CP").value;var ville_demandeur_resa=document.getElementById("Client_Ville").value;var pays_demandeur_resa=document.getElementById("Client_Pays").value;var prepaid_resa=document.getElementById("prepaid_resa").value;var nom_dept_resa=document.getElementById("nom_dept_resa").value;var agence_depart_resa=document.getElementById("agence_depart_resa").value;var agence_retour_resa=document.getElementById("agence_retour_resa").value;var date_depart_resa=document.getElementById("date_depart_resa").value;var date_retour_resa=document.getElementById("date_retour_resa").value;var nb_jour_resa=document.getElementById("nb_jour_resa").value;var heure_depart_resa=document.getElementById("heure_depart_resa").value;var heure_retour_resa=document.getElementById("heure_retour_resa").value;var code_tarif_resa=document.getElementById("code_tarif_resa").value;var code_promo_resa=document.getElementById("code_promo_resa").value;var type_pro_resa=document.getElementById("type_pro_resa").value;var typeto_pro_resa=document.getElementById("typeto_pro_resa").value;if((type_pro_resa=="SOC")||(type_pro_resa=="TO")){var nom_conduct_resa=document.getElementById("nom_conduct_resa").value;var prenom_conduct_resa=document.getElementById("prenom_conduct_resa").value}else{var nom_conduct_resa=document.getElementById("Client_Nom").value;var prenom_conduct_resa=document.getElementById("Client_Prenom").value}var age_conducteur_resa=document.getElementById("age_conducteur_resa").value;var date_naissance_conduct_resa=document.getElementById("date_naissance_conduct_resa").value;var nom_conduct_add_resa=document.getElementById("nom_conduct_add_resa").value;var prenom_conduct_add_resa=document.getElementById("prenom_conduct_add_resa").value;var date_naissance_conduct_add_resa=document.getElementById("date_naissance_conduct_add_resa").value;var date_resa=document.getElementById("date_resa").value;var commentaire_resa=document.getElementById("commentaire_resa").value;var num_vol_retour_resa=document.getElementById("num_vol_retour_resa").value;var num_vol_arrivee_resa=document.getElementById("num_vol_arrivee_resa").value;var voucher_resa=document.getElementById("voucher_resa").checked;var vehicule_type_resa=document.getElementById("vehicule_type_resa").value;var vehicule_modele_resa=document.getElementById("vehicule_modele_resa").value;var vehicule_categ_resa=document.getElementById("vehicule_categ_resa").value;var montant_total_resa=document.getElementById("montant_total_resa").value;var montant_remise_prepaid=document.getElementById("montant_remise_prepaid").value;var montant_remise_promo=document.getElementById("montant_remise_promo").value;var montant_aeroport_resa=document.getElementById("montant_aeroport_resa").value;var montant_option_resa=document.getElementById("montant_option_resa").value;var montant_stf_resa=document.getElementById("montant_stf_resa").value;var montant_scdw_resa=document.getElementById("montant_scdw_resa").value;var nom_pro_resa=document.getElementById("nom_pro_resa").value;var num_locpro_resa=document.getElementById("num_locpro_resa").value;var code_tiers_agent_resa=document.getElementById("code_tiers_agent_resa").value;var nom_agent_pro_resa=document.getElementById("nom_agent_pro_resa").value;var nb_siege_enfant_option_resa=document.getElementById("nb_siege_enfant_option_resa").value;var conducteur_add_option_resa=document.getElementById("conducteur_add_option_resa").value;var nb_rehausseur_option_resa=document.getElementById("nb_rehausseur_option_resa").value;var abandon_option_resa=document.getElementById("abandon_option_resa").value;var supp_conduct_moins_25_option_resa=document.getElementById("supp_conduct_moins_25_option_resa").value;var supp_conduct_add_option_resa=document.getElementById("supp_conduct_add_option_resa").value;var stf_option_resa=document.getElementById("stf_option_resa").value;var scdw_option_resa=document.getElementById("scdw_option_resa").value;var age_conduct_add_option_resa=document.getElementById("age_conduct_add_option_resa").value;var anc_numresa=document.getElementById("anc_numresa").value;var xhr_object=null;if(window.XMLHttpRequest){xhr_object=new XMLHttpRequest()}else{if(window.ActiveXObject){xhr_object=new ActiveXObject("Microsoft.XMLHTTP")}else{alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");return}}xhr_object.open("POST","./fileadmin/resa/traitementsimple.php",true);xhr_object.onreadystatechange=function(){if(xhr_object.readyState==4){xhr_object.responseText;eval(xhr_object.responseText)}};xhr_object.setRequestHeader("Content-type","application/x-www-form-urlencoded");var data="numero_resa="+numero_resa+"&Client_Typeresa="+Client_Typeresa+"&prepaid_resa="+prepaid_resa+"&nom_dept_resa="+nom_dept_resa+"&agence_depart_resa="+agence_depart_resa+"&agence_retour_resa="+agence_retour_resa+"&date_depart_resa="+date_depart_resa+"&date_retour_resa="+date_retour_resa+"&nb_jour_resa="+nb_jour_resa+"&heure_depart_resa="+heure_depart_resa+"&heure_retour_resa="+heure_retour_resa+"&code_tarif_resa="+code_tarif_resa+"&code_promo_resa="+code_promo_resa+"&nom_conduct_resa="+nom_conduct_resa+"&prenom_conduct_resa="+prenom_conduct_resa+"&age_conducteur_resa="+age_conducteur_resa+"&date_naissance_conduct_resa="+date_naissance_conduct_resa+"&nom_conduct_add_resa="+nom_conduct_add_resa+"&prenom_conduct_add_resa="+prenom_conduct_add_resa+"&date_naissance_conduct_add_resa="+date_naissance_conduct_add_resa+"&nom_demandeur_resa="+nom_demandeur_resa+"&prenom_demandeur_resa="+prenom_demandeur_resa+"&email_demandeur_resa="+email_demandeur_resa+"&telephone_demandeur_resa="+telephone_demandeur_resa+"&mobil_demandeur_resa="+mobil_demandeur_resa+"&genre_demandeur_resa="+genre_demandeur_resa+"&societe_demandeur_resa="+societe_demandeur_resa+"&adresse_demandeur_resa="+adresse_demandeur_resa+"&cp_demandeur_resa="+cp_demandeur_resa+"&ville_demandeur_resa="+ville_demandeur_resa+"&pays_demandeur_resa="+pays_demandeur_resa+"&date_resa="+date_resa+"&commentaire_resa="+commentaire_resa+"&voucher_resa="+voucher_resa+"&num_vol_arrivee_resa="+num_vol_arrivee_resa+"&num_vol_retour_resa="+num_vol_retour_resa+"&vehicule_type_resa="+vehicule_type_resa+"&vehicule_modele_resa="+vehicule_modele_resa+"&vehicule_categ_resa="+vehicule_categ_resa+"&montant_total_resa="+montant_total_resa+"&montant_remise_prepaid="+montant_remise_prepaid+"&montant_remise_promo="+montant_remise_promo+"&montant_aeroport_resa="+montant_aeroport_resa+"&montant_option_resa="+montant_option_resa+"&montant_stf_resa="+montant_stf_resa+"&montant_scdw_resa="+montant_scdw_resa+"&nom_pro_resa="+nom_pro_resa+"&nom_agent_pro_resa="+nom_agent_pro_resa+"&type_pro_resa="+type_pro_resa+"&typeto_pro_resa="+typeto_pro_resa+"&num_locpro_resa="+num_locpro_resa+"&code_tiers_agent_resa="+code_tiers_agent_resa+"&nb_siege_enfant_option_resa="+nb_siege_enfant_option_resa+"&anc_numresa="+anc_numresa+"&conducteur_add_option_resa="+conducteur_add_option_resa+"&nb_rehausseur_option_resa="+nb_rehausseur_option_resa+"&abandon_option_resa="+abandon_option_resa+"&supp_conduct_moins_25_option_resa="+supp_conduct_moins_25_option_resa+"&supp_conduct_add_option_resa="+supp_conduct_add_option_resa+"&stf_option_resa="+stf_option_resa+"&scdw_option_resa="+scdw_option_resa+"&age_conduct_add_option_resa="+age_conduct_add_option_resa;xhr_object.send(data)};