var EVENEMENTS = ["2017-03-11","2015-03-21"]; var CATEVENEMENTS = ["1","1"]; var TITLEEVENEMENTS = ["Dictée Nationale du Rotary","Dictée Nationale du Rotary"]; function dateIsADivToOpen(year, month, day) { var retour_cat = new Array(); var retour_title = new Array(); var retour_content = new Array(); var retour_id = new Array(); var retour_date = new Array(); var retour_time = new Array(); var nbre_events = 0; var m = EVENEMENTS; var c = CATEVENEMENTS; var t = TITLEEVENEMENTS; var content = CONTENTEVENEMENTS; var id = IDEVENEMENTS; var df = DATEFORMATTED; var tf = TIMEFORMATTED; var month = month+1; if (month<10) { month12 = "0"+month.toString(); } else { month12 = month.toString(); } if (day<10) { day31 = "0"+day.toString(); } else { day31 = day.toString(); } var date = year+"-"+month12+"-"+day31; for (var i=0;i