function CalculDate(){
	var tDay = new Date; var tYear = tDay.getFullYear(); tMonth = tDay.getMonth() + 1; 
	var tabDay = new Array('Janvier','Février','Mars','Avril','Mai','Juin','Juillet','Août','Septembre','Octobre','Novembre','Décembre');
	var optionSelect = ""; var tMonthSelect;
	for(i=0;i<12;i++){
		if (tMonth.toString().length < 2) tMonthSelect = "0" + tMonth; else tMonthSelect = tMonth;
		optionSelect += "<option value=\"" + tYear + "-" + tMonthSelect + "\">" + tabDay[tMonth-1] + " " + tYear + "</option>";
		if (tMonth == 12) { tMonth = 0; tYear++; }
		tMonth++;
	}
	document.write(optionSelect);
}

/* Paramétrage URL strDEP et strARR */
list = new Array; list_valeur = new Array; pos = document.location.href.indexOf("?",0);
if(pos >= 0){ requete = document.location.href.substring(pos+1, document.location.href.length); pos_and = requete.indexOf("&",0); if(pos_and >= 0) list = requete.split("&"); else list[0] = requete; for(i=0;i<list.length;i++){ temp = list[i].split("="); variable = temp[0]; valeur = temp[1]; plus_pos = valeur.indexOf("+",0); while (plus_pos >-1){ temp2 = valeur.substring(0,plus_pos) + ' ' + valeur.substring(plus_pos+1,valeur.length); valeur = temp2; plus_pos = valeur.indexOf("+",plus_pos+2); } list_valeur[variable] = valeur; } }
function get(get){ if(list_valeur[get]) return(unescape(list_valeur[get])); else return(""); }

function preLoadSejourBase(){
	if (get("depCity") != '')
		document.formSejour.depCity.selectedIndex = get("depCity");
	if (get("destCountry") != '')
		document.formSejour.destCountry.selectedIndex = get("destCountry");
	if (get("depMonth") != '')
		document.formSejour.depMonth.selectedIndex = get("depMonth");
	if (get("duration") != '')
		document.formSejour.duration.selectedIndex = get("duration");
	if (get("budget") != '')
		document.formSejour.budget.selectedIndex = get("budget");
}

function preLoadSejour250x250(){
	preLoadSejourBase();
	if (get("pension") != '')
		document.formSejour.pension.value = get("pension");
	if (get("formula") != '')
		document.formSejour.formula.value = get("formula");
	if (get("theme") != '')
		document.formSejour.theme.value = get("theme");
	if (get("housing") != '')
		document.formSejour.housing.value = get("housing");
	return false;
}

function preLoadSejour468x150(){
	preLoadSejourBase();
	if (get("pension") != '')
		document.formSejour.pension.selectedIndex = get("pension");
	if (get("formula") != '')
		document.formSejour.formula.selectedIndex = get("formula");
	if (get("theme") != '')
		document.formSejour.theme.selectedIndex = get("theme");
	if (get("housing") != '')
		document.formSejour.housing.value = get("housing");
	return false;
}

function preLoadSejour120x600(){
	preLoadSejourBase();
	if (get("pension") != '')
		document.formSejour.pension.selectedIndex = get("pension");
	if (get("formula") != '')
		document.formSejour.formula.selectedIndex = get("formula");
	if (get("theme") != '')
		document.formSejour.theme.selectedIndex = get("theme");
	if (get("housing") != '')
		document.formSejour.housing.selectedIndex = get("housing");
	return false;
}

function preLoadSejourMultiProduct(){
	preLoadSejourBase();
	if (get("theme") != '')
		document.formSejour.theme.selectedIndex = get("theme");
}