1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
| <SCRIPT language="JavaScript">
<!--
function Choix(form)
{
i = form.Rando.selectedIndex;
if (i == 0)
{
for (i=0;i<4;i++)
{
form.Dist.options[i].text="";
}
return;
for (i=0;i<4;i++)
{
form.DateR.options[i].text="";
}
return;
for (i=0;i<4;i++)
{
form.prix.options[i].text="";
}
return;
}
switch (i)
{
case 1 : var txt = new Array ('2016-03-13'); break;
case 2 : var txt = new Array ('2016-03-20'); break;
case 3 : var txt = new Array ('2016-04-20'); break;
}
form.DateR.options[1].text="--- date rando ---";
for (i=0;i<1;i++)
{
form.DateR.options[i+1].text=txt[i];
}
form.DateR.selectedIndex = 1;
i = form.Rando.selectedIndex;
///////////////////////////////////////////////////////////////////
if (i == 0)
{
for (i=0;i<4;i++)
{
form.Dist.options[i].text="";
}
return;
for (i=0;i<4;i++)
{
form.DateR.options[i].text="";
}
return;
}
switch (i)
{
case 1 : var txt = new Array ('30','60','90'); break;
case 2 : var txt = new Array ('70','120'); break;
case 3 : var txt = new Array ('140','200'); break;
}
form.Dist.options[0].text="-choix dist-";
for (i=0;i<3;i++)
{
form.Dist.options[i+1].text=txt[i];
}
form.Dist.selectedIndex = 0;
//////////////////////////////////////////////////////////////////
i == 0;
if (i == 0)
{
for (i=0;i<3;i++)
{
form.prix.options[i].text="";
}
return;
for (i=0;i<4;i++)
{
form.Rando.options[i].text="";
}
return;
for (i=0;i<4;i++)
{
form.Dist.options[i].text="";
}
return;
}
switch (i)
{
case 1 : var txt = new Array ('3','5'); break;
case 2 : var txt = new Array ('4','6'); break;
case 3 : var txt = new Array ('7','15'); break;
}
form.prix.options[0].text="-choix prix-";
for (i=0;i<3;i++)
{
form.prix.options[i+1].text=txt[i];
}
form.prix.selectedIndex = 0;
}
// -->
</SCRIPT> |
Partager