document.writeln("<SCRIPT LANGUAGE=javascript>");
document.writeln("<!--");
document.writeln("function acti(id, nom, littoral, golf, thalasso, montagne)");
document.writeln("{");
document.writeln("	this.id = id;");
document.writeln("	this.nom = nom;");
document.writeln("	this.littoral = littoral;");
document.writeln("	this.golf = golf;");
document.writeln("	this.thalasso = thalasso;");
document.writeln("	this.montagne = montagne;");
document.writeln("}");
document.writeln("array_lieu = [new acti(0,'France',1,1,1,1),new acti(1814,'   Alpes du Nord',0,30,10,2658),new acti(1815,'   Alpes du Sud',48,0,0,724),new acti(1076,'   Bretagne',610,58,16,0),new acti(3799,'   Camargue',75,18,0,0),new acti(1339,'   Corse',323,0,0,0),new acti(2635,'   Grand Centre',138,0,0,0),new acti(3472,'   Grand Sud Ouest',809,80,27,0),new acti(1080,'   Languedoc-Roussillon',919,173,23,81),new acti(994,'   Massif Central - Auvergne',91,0,10,66),new acti(2637,'   Midi-Pyrénées',149,0,0,0),new acti(3456,'   Nord',71,0,0,0),new acti(1074,'   Normandie',159,33,0,0),new acti(3467,'   Pays de la Loire-Vendée',392,100,12,0),new acti(2639,'   Poitou Charentes',301,0,0,0),new acti(3461,'   Provence - Côte d Azur',1202,169,10,0),new acti(1816,'   Pyrénées',22,0,0,265),new acti(3484,'   Région du Rhône',83,0,0,0),new acti(3478,'   Région Est',75,0,0,18),new acti(2638,'   Région Parisienne ',47,0,0,0),new acti(3480,'   Vosges-Jura',0,0,0,119),new acti(0,'Suisse',0,0,1,1),new acti(2900,'   Canton de Zurich',0,0,0,5),new acti(376,'   Grisons',0,0,0,18),new acti(2748,'   Oberland Bernois',0,0,0,24),new acti(588,'   Suisse Orientale',0,0,0,2),new acti(386,'   Valais',0,0,6,147),new acti(2758,'   Vaud',0,0,0,9),new acti(0,'Italie',1,0,0,1),new acti(3813,'   Abruzzes',9,0,0,0),new acti(2688,'   Calabre',4,0,0,0),new acti(2692,'   Emilie Romagne',34,0,0,0),new acti(2738,'   Lacs Italiens',4,0,0,0),new acti(2694,'   Piemont',0,0,0,16),new acti(1413,'   Pouilles',6,0,0,0),new acti(2554,'   Sardaigne',35,0,0,0),new acti(1414,'   Sicile',9,0,0,0),new acti(2223,'   Toscane',8,0,0,0),new acti(2619,'   Trentino Alto Adige',0,0,0,73),new acti(3164,'   Tyrol du Sud',0,0,0,37),new acti(2719,'   Val d Aoste',0,0,0,8),new acti(2725,'   Vénétie',5,0,0,0),new acti(0,'Autriche',1,0,1,1),new acti(683,'   Carinthie',2,0,0,37),new acti(460,'   Pays de Salzbourg',0,0,0,337),new acti(815,'   Styrie',0,0,0,29),new acti(384,'   Tyrol',0,0,4,618),new acti(385,'   Vorarlberg',0,0,0,36),new acti(0,'Allemagne',1,0,1,1),new acti(2898,'   Baden Württemberg',25,0,2,18),new acti(897,'   Bavière',0,0,0,49),new acti(2315,'   Garmisch Partenkirchen',0,0,0,5),new acti(3921,'   Mecklenburg-Vorpommern',6,0,0,0),new acti(3918,'   Niedersachsen',3,0,0,3),new acti(2340,'   Sauerland',0,0,0,18),new acti(0,'Espagne',1,0,0,1),new acti(2526,'   Andalousie',31,0,0,0),new acti(1403,'   Baléares',10,0,0,0),new acti(2037,'   Canaries',3,0,0,0),new acti(2032,'   Catalogne',732,0,0,0),new acti(2534,'   Communauté Valencienne',212,0,0,0),new acti(2676,'   Golfe de Vizcaya',5,0,0,0),new acti(999,'   Pyrénées Espagnoles',0,0,0,16),new acti(3790,'   Région de Murcie',6,0,0,0),new acti(0,'Maroc',1,0,1,0),new acti(2501,'   Maroc - Nord Littoral',4,0,0,0),new acti(2625,'   Maroc- Sud Littoral',0,0,5,0),new acti(0,'Tunisie',1,0,1,0),new acti(3308,'   Tunisie - Le Grand Sud',5,0,0,0),new acti(1438,'   Tunisie - Nord Littoral',20,0,0,0),new acti(2586,'   Tunisie - Sud Littoral',16,0,5,0),new acti(0,'Jordanie',1,0,0,0),new acti(2516,'   Jordanie',7,0,0,0),new acti(0,'Malte',0,0,0,1),new acti(2888,'   Malte Nord',0,0,0,5)];");
document.writeln("function clean_select(select)");
document.writeln("{");
document.writeln("	while (select.length > 1) select.options[1] = null;");
document.writeln("}");
document.writeln("// activite dans la station");
document.writeln("function isInStation(obj, acti_id)");
document.writeln("{");
document.writeln("	var isIn = false;");
document.writeln("	if (acti_id == '1' && obj.littoral >= '1') {isIn = true;}");
document.writeln("	if (acti_id == '2' && obj.golf >= '1') {isIn = true;}");
document.writeln("	if (acti_id == '3' && obj.thalasso >= '1') {isIn = true;}");
document.writeln("	if (acti_id == '4' && obj.montagne >= '1') {isIn = true;}");
document.writeln("	return isIn;");
document.writeln("}");
document.writeln("function setActiStation(acti_id)");
document.writeln("{");
document.writeln("	var i;");
document.writeln("	var nb = 0");
document.writeln("	var station = document.travelhorizon.lieu;");
document.writeln("	clean_select(station);");
document.writeln("	for (i=0; i<array_lieu.length; i++)");
document.writeln("	{");
document.writeln("		if (isInStation(array_lieu[i], acti_id) || acti_id == '')");
document.writeln("		{");
document.writeln("			nb++;");
document.writeln("			station[nb] = new Option(array_lieu[i].nom, array_lieu[i].id);");
document.writeln("		}");
document.writeln("	}");
document.writeln("}");
document.writeln("function init_select(value)");
document.writeln("{");
document.writeln("	var form1 = document.travelhorizon;");
document.writeln("	var station = form1.lieu;");
document.writeln("	var station_index = station.selectedIndex;");
document.writeln("	setActiStation(value);");
document.writeln("	if (station_index > 0)");
document.writeln("	{");
document.writeln("		station.selectedIndex = station_index;");
document.writeln("	}");
document.writeln("}");
document.writeln("function valide_form()");
document.writeln("{");
document.writeln("	var form = document.travelhorizon;");
document.writeln("	if (form.lieu[form.lieu.selectedIndex].value == 0)");
document.writeln("	{");
document.writeln("		alert('Merci de choisir une région !');");
document.writeln("		return false;");
document.writeln("	}");
document.writeln("	if(form.date_debut.selectedIndex == 0)");
document.writeln("	{");
document.writeln("		alert('Vous n avez pas précisé la date d arrivée !');");
document.writeln("		return false;");
document.writeln("	}");
document.writeln("	form.submit();");
document.writeln("}");
document.writeln("function select_value(select)");
document.writeln("{");
document.writeln("return select[select.selectedIndex].value;");
document.writeln("}");
document.writeln("//-->");
document.writeln("</SCRIPT>");
