diff --git a/Js/fonctions.js b/Js/fonctions.js index 2e01c64..8eb51f6 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -1568,3 +1568,29 @@ function controle_date_avenant() $("#dateAvenant").readable(); $("#motifavenant").readable(); } + +function init_import_assures() +{ + nbCollege = $("#nbCollege_C").val(); + + if (nbCollege<="0") + { + v_msg="Aucun collège!"; + v_msgEng="No college!"; + alert_ebene(v_msg, v_msgEng); + return; + } + + nbAdh = $("#nbAdh_C").val(); + codeTypeContrat = $("#codeTypeContrat_C").val(); + + if (codeTypeContrat=="P") + { + v_msg="Ce n\'est pas une police GROUPE!"; + v_msgEng="This is not a GROUP policy!"; + alert_ebene(v_msg, v_msgEng); + return; + } + + window.location.assign($("#racineWeb" ).val()+"Importassure/"); +}