Update Select List Based Upon Selections

[Total: 0    Average: 0/5]

This updates the select lists based upon select list items choosen.

Head Code:

<script>
var maximum="10"; //Maximum amount of options any box may have (1,2,3,4,5,.....) 

//Don't edit below 
var max=eval(maximum-1);
var package=new Array(); 
for (a=0;a<=max;a++) { 
  package[a]=new Array(); 
} 
var guest1treatment=new Array(); 
for (b=0;b<=max;b++) { 
  guest1treatment[b]=new Array(); 
  for (c=0;c<=max;c++) { 
    guest1treatment[b][c]=new Array(); 
  } 
} 
var guest2treatment=new Array(); 
for (d=0;d<=max;d++) { 
  guest2treatment[d]=new Array(); 
  for (e=0;e<=max;e++) { 
    guest2treatment[d][e]=new Array(); 
    for (f=0;f<=max;f++) { 
      guest2treatment[d][e][f]=new Array(); 
    } 
  } 
} 
var typeofvilla=new Array(); 
for (g=0;g<=max;g++) { 
  typeofvilla[g]=new Array(); 
  for (h=0;h<=max;h++) { 
    typeofvilla[g][h]=new Array(); 
      for (i=0;i<=max;i++) { 
      typeofvilla[g][h][i]=new Array(); 
      for (j=0;j<=max;j++) { 
        typeofvilla[g][h][i][j]=new Array(); 
      } 
    } 
  } 
} 
/* 
Edit below to reflect proper options and categories. 
Leave e values in e arrays "package" and "guest1treatment" alprogram. 
Change e values in e guest2treatment array to e appropriate url. 
If adding more options, calculate e proper value using 
common sense. (For example, a typeofvilla option should have a value of 4.) 
*/ 
package[0][0]=new Option("3h Package for 1 PAX (suite Villa:$160)","0"); 
package[0][1]=new Option("3h Package for 2 PAX (suite Villa:$280)","1"); 
package[0][2]=new Option("Halfday (4h) Package for 1 PAX (Suite Villa:$220, Presidential Villa:$320)","2"); 
package[0][3]=new Option("Halfday (4h) Package for 2 PAX (Suite Villa:$390, Presidential Villa:$490)","3"); 
package[0][4]=new Option("Fullday (5.5h) Package for 1 PAX (Suite Villa:$300, Presidential Villa:$440)","4"); 
package[0][5]=new Option("Fullday (5.5h) Package for 2 PAX (Suite Villa:$520, Presidential Villa:$660)","5"); 
package[0][6]=new Option("Whole Day Package at Presidential Villa)","6"); 

package[1][0]=new Option("2h treatment for 1 PAX ($130)","0"); 
package[1][1]=new Option("2h treatment for 2 PAX ($260)","1"); 
package[1][2]=new Option("1h treatment for 1 PAX ($70)","2"); 
package[1][3]=new Option("1h treatment for 2 PAX ($140)","3"); 
package[1][4]=new Option("","4"); 
package[1][5]=new Option("","5"); 
package[1][6]=new Option("","6"); 

guest1treatment[0][0][0]=new Option("Relaxing Body Treatment (120 min.)","0"); 
guest1treatment[0][0][1]=new Option("Revitalizing Body Treatment (60 min.) & Facial Treatment (60 min.)","1"); 
guest1treatment[0][0][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)","2"); 
guest1treatment[0][0][3]=new Option("Foot & Leg Treatment (60 min.) &  Facial Treatment (60 min.)","3"); 
guest1treatment[0][0][4]=new Option("Want more explanation to decide rough counseling treatment","4"); 
guest1treatment[0][0][5]=new Option("","4"); 
guest1treatment[0][0][6]=new Option("","5"); 

guest1treatment[0][1][0]=new Option("Relaxing Body Treatment (120 min.)","0"); 
guest1treatment[0][1][1]=new Option("Revitalizing Body Treatment (60 min.) & Facial Treatment (60 min.)","1"); 
guest1treatment[0][1][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)","2"); 
guest1treatment[0][1][3]=new Option("Foot & Leg Treatment (60 min.) &  Facial Treatment (60 min.)","3"); 
guest1treatment[0][1][4]=new Option("Want more explanation to decide rough counseling treatment","4"); 
guest1treatment[0][1][5]=new Option("","4"); 
guest1treatment[0][1][6]=new Option("","5"); 

guest1treatment[0][2][0]=new Option("Relaxing Body Treatment (120 min) & Facial Treatment (60 min)","0"); 
guest1treatment[0][2][1]=new Option("Relaxing Body Treatment (120 min) & Foot & Leg Treatment (60 min)","1"); 
guest1treatment[0][2][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)& facial Treatment","2"); 
guest1treatment[0][2][3]=new Option("Want more explanation to decide through counseling before treatment","3"); 

guest1treatment[0][3][0]=new Option("Relaxing Body Treatment (120 min) & Facial Treatment (60 min)","0"); 
guest1treatment[0][3][1]=new Option("Relaxing Body Treatment (120 min) & Foot & Leg Treatment (60 min)","1"); 
guest1treatment[0][3][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)& facial Treatment","2"); 
guest1treatment[0][3][3]=new Option("Want more explanation to decide through counseling before treatment","3"); 

guest1treatment[0][4][0]=new Option("Relaxing Body Treatment (120 min) & Foot & Leg Treatment (60 min)& facial Treatment (60min.)","0"); 
guest1treatment[0][4][1]=new Option("","1"); 
guest1treatment[0][4][2]=new Option("","2"); 
guest1treatment[0][4][3]=new Option("","3"); 

guest1treatment[0][5][0]=new Option("Relaxing Body Treatment (120 min) & Foot & Leg Treatment (60 min)& facial Treatment (60min.)","0"); 
guest1treatment[0][5][1]=new Option("","1"); 
guest1treatment[0][5][2]=new Option("","2"); 
guest1treatment[0][5][3]=new Option("","3"); 

guest1treatment[0][6][0]=new Option("Relaxing Body Treatment (120 min) & Foot & Leg Treatment (60 min)& facial Treatment (60min.)","0"); 
guest1treatment[0][6][1]=new Option("","1"); 
guest1treatment[0][6][2]=new Option("","2"); 
guest1treatment[0][6][3]=new Option("","3"); 


guest1treatment[1][0][0]=new Option("Relaxing Body Treatment (120 min.)","0"); 
guest1treatment[1][0][1]=new Option("Revitalizing Body Treatment (60 min.) & Facial Treatment (60 min.)","1"); 
guest1treatment[1][0][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)","2"); 
guest1treatment[1][0][3]=new Option("Foot & Leg Treatment (60 min.) &  Facial Treatment (60 min.)","3"); 
guest1treatment[1][0][4]=new Option("Want more explanation to decide rough counseling treatment","4"); 
guest1treatment[1][0][5]=new Option("","5"); 
guest1treatment[1][0][6]=new Option("","6"); 

guest1treatment[1][1][0]=new Option("Relaxing Body Treatment (120 min.)","0"); 
guest1treatment[1][1][1]=new Option("Revitalizing Body Treatment (60 min.) & Facial Treatment (60 min.)","1"); 
guest1treatment[1][1][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)","2"); 
guest1treatment[1][1][3]=new Option("Foot & Leg Treatment (60 min.) &  Facial Treatment (60 min.)","3"); 
guest1treatment[1][1][4]=new Option("Want more explanation to decide rough counseling treatment","4"); 
guest1treatment[1][1][5]=new Option("","5"); 
guest1treatment[1][1][6]=new Option("","6"); 

guest1treatment[1][2][0]=new Option("Revitalizing Body Treatment ","0"); 
guest1treatment[1][2][1]=new Option("Facial Treatment","1"); 
guest1treatment[1][2][2]=new Option("Foot & Leg Treatment","2"); 
guest1treatment[1][2][3]=new Option("","3"); 

guest1treatment[1][3][0]=new Option("Revitalizing Body Treatment ","0"); 
guest1treatment[1][3][1]=new Option("Facial Treatment","1"); 
guest1treatment[1][3][2]=new Option("Foot & Leg Treatment","2"); 
guest1treatment[1][3][3]=new Option("","3"); 


guest2treatment[0][0][0][0]=new Option("Relaxing Body Treatment (120 min.)","0"); 
guest2treatment[0][0][0][1]=new Option("Revitalizing Body Treatment (60 min.) & Facial Treatment (60 min.)","1"); 
guest2treatment[0][0][0][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)","2"); 
guest2treatment[0][0][0][3]=new Option("Foot & Leg Treatment (60 min.) &  Facial Treatment (60 min.)","3"); 
guest2treatment[0][0][0][4]=new Option("Want more explanation to decide rough counseling treatment","4"); 
guest2treatment[0][0][0][5]=new Option("","5"); 
guest2treatment[0][0][0][6]=new Option("","6"); 




guest2treatment[0][0][1][0]=new Option("Relaxing Body Treatment (120 min.)","0"); 
guest2treatment[0][0][1][1]=new Option("Revitalizing Body Treatment (60 min.) & Facial Treatment (60 min.)","1"); 
guest2treatment[0][0][1][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)","2"); 
guest2treatment[0][0][1][3]=new Option("Foot & Leg Treatment (60 min.) &  Facial Treatment (60 min.)","3"); 
guest2treatment[0][0][1][4]=new Option("Want more explanation to decide rough counseling treatment","4"); 
guest2treatment[0][0][1][5]=new Option("","5"); 
guest2treatment[0][0][1][6]=new Option("","6"); 


guest2treatment[0][0][2][0]=new Option("Relaxing Body Treatment (120 min.)","0"); 
guest2treatment[0][0][2][1]=new Option("Revitalizing Body Treatment (60 min.) & Facial Treatment (60 min.)","1"); 
guest2treatment[0][0][2][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)","2"); 
guest2treatment[0][0][2][3]=new Option("Foot & Leg Treatment (60 min.) &  Facial Treatment (60 min.)","3"); 
guest2treatment[0][0][2][4]=new Option("Want more explanation to decide rough counseling treatment","4"); 
guest2treatment[0][0][2][5]=new Option("","5"); 
guest2treatment[0][0][2][6]=new Option("","6"); 

guest2treatment[0][0][3][0]=new Option("Relaxing Body Treatment (120 min.)","0"); 
guest2treatment[0][0][3][1]=new Option("Revitalizing Body Treatment (60 min.) & Facial Treatment (60 min.)","1"); 
guest2treatment[0][0][3][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)","2"); 
guest2treatment[0][0][3][3]=new Option("Foot & Leg Treatment (60 min.) &  Facial Treatment (60 min.)","3"); 
guest2treatment[0][0][3][4]=new Option("Want more explanation to decide rough counseling treatment","4"); 
guest2treatment[0][0][3][5]=new Option("","5"); 
guest2treatment[0][0][3][6]=new Option("","6"); 

guest2treatment[0][0][4][0]=new Option("Relaxing Body Treatment (120 min.)","0"); 
guest2treatment[0][0][4][1]=new Option("Revitalizing Body Treatment (60 min.) & Facial Treatment (60 min.)","1"); 
guest2treatment[0][0][4][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)","2"); 
guest2treatment[0][0][4][3]=new Option("Foot & Leg Treatment (60 min.) &  Facial Treatment (60 min.)","3"); 
guest2treatment[0][0][4][4]=new Option("Want more explanation to decide rough counseling treatment","4"); 
guest2treatment[0][0][4][5]=new Option("","5"); 
guest2treatment[0][0][4][6]=new Option("","6"); 

guest2treatment[0][0][5][0]=new Option("Relaxing Body Treatment (120 min.)","0"); 
guest2treatment[0][0][5][1]=new Option("Revitalizing Body Treatment (60 min.) & Facial Treatment (60 min.)","1"); 
guest2treatment[0][0][5][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)","2"); 
guest2treatment[0][0][5][3]=new Option("Foot & Leg Treatment (60 min.) &  Facial Treatment (60 min.)","3"); 
guest2treatment[0][0][5][4]=new Option("Want more explanation to decide rough counseling treatment","4"); 
guest2treatment[0][0][5][5]=new Option("","5"); 
guest2treatment[0][0][5][6]=new Option("","6"); 




guest2treatment[0][1][0][0]=new Option("Relaxing Body Treatment (120 min.)","0"); 
guest2treatment[0][1][0][1]=new Option("Revitalizing Body Treatment (60 min.) & Facial Treatment (60 min.)","1"); 
guest2treatment[0][1][0][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)","2"); 
guest2treatment[0][1][0][3]=new Option("Foot & Leg Treatment (60 min.) &  Facial Treatment (60 min.)","3"); 
guest2treatment[0][1][0][4]=new Option("Want more explanation to decide rough counseling treatment","4"); 
guest2treatment[0][1][0][5]=new Option("","5"); 
guest2treatment[0][1][0][6]=new Option("","6"); 

guest2treatment[0][1][1][0]=new Option("Relaxing Body Treatment (120 min.)","0"); 
guest2treatment[0][1][1][1]=new Option("Revitalizing Body Treatment (60 min.) & Facial Treatment (60 min.)","1"); 
guest2treatment[0][1][1][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)","2"); 
guest2treatment[0][1][1][3]=new Option("Foot & Leg Treatment (60 min.) &  Facial Treatment (60 min.)","3"); 
guest2treatment[0][1][1][4]=new Option("Want more explanation to decide rough counseling treatment","4"); 
guest2treatment[0][1][1][5]=new Option("","5"); 
guest2treatment[0][1][1][6]=new Option("","6"); 

guest2treatment[0][1][2][0]=new Option("Relaxing Body Treatment (120 min.)","0"); 
guest2treatment[0][1][2][1]=new Option("Revitalizing Body Treatment (60 min.) & Facial Treatment (60 min.)","1"); 
guest2treatment[0][1][2][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)","2"); 
guest2treatment[0][1][2][3]=new Option("Foot & Leg Treatment (60 min.) &  Facial Treatment (60 min.)","3"); 
guest2treatment[0][1][2][4]=new Option("Want more explanation to decide rough counseling treatment","4"); 
guest2treatment[0][1][2][5]=new Option("","5"); 
guest2treatment[0][1][2][6]=new Option("","6"); 

guest2treatment[0][1][3][0]=new Option("Relaxing Body Treatment (120 min.)","0"); 
guest2treatment[0][1][3][1]=new Option("Revitalizing Body Treatment (60 min.) & Facial Treatment (60 min.)","1"); 
guest2treatment[0][1][3][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)","2"); 
guest2treatment[0][1][3][3]=new Option("Foot & Leg Treatment (60 min.) &  Facial Treatment (60 min.)","3"); 
guest2treatment[0][1][3][4]=new Option("Want more explanation to decide rough counseling treatment","4"); 
guest2treatment[0][1][3][5]=new Option("","5"); 
guest2treatment[0][1][3][6]=new Option("","6"); 

guest2treatment[0][1][4][0]=new Option("Relaxing Body Treatment (120 min.)","0"); 
guest2treatment[0][1][4][1]=new Option("Revitalizing Body Treatment (60 min.) & Facial Treatment (60 min.)","1"); 
guest2treatment[0][1][4][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)","2"); 
guest2treatment[0][1][4][3]=new Option("Foot & Leg Treatment (60 min.) &  Facial Treatment (60 min.)","3"); 
guest2treatment[0][1][4][4]=new Option("Want more explanation to decide rough counseling treatment","4"); 
guest2treatment[0][1][4][5]=new Option("","5"); 
guest2treatment[0][1][4][6]=new Option("","6"); 

guest2treatment[0][2][0][0]=new Option("Relaxing Body Treatment (120 min) & Facial Treatment (60 min)","0"); 
guest2treatment[0][2][0][1]=new Option("Relaxing Body Treatment (120 min) & Foot & Leg Treatment (60 min)","1"); 
guest2treatment[0][2][0][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)& facial Treatment","2"); 
guest2treatment[0][2][0][3]=new Option("Want more explanation to decide through counseling before treatment","3"); 
guest2treatment[0][2][1][0]=new Option("Relaxing Body Treatment (120 min) & Facial Treatment (60 min)","0"); 
guest1treatment[0][2][1][1]=new Option("Relaxing Body Treatment (120 min) & Foot & Leg Treatment (60 min)","1"); 
guest2treatment[0][2][1][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)& facial Treatment","2"); 
guest2treatment[0][2][1][3]=new Option("Want more explanation to decide through counseling before treatment","3"); 
guest2treatment[0][2][2][0]=new Option("Relaxing Body Treatment (120 min) & Facial Treatment (60 min)","0"); 
guest2treatment[0][2][2][1]=new Option("Relaxing Body Treatment (120 min) & Foot & Leg Treatment (60 min)","1"); 
guest2treatment[0][2][2][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)& facial Treatment","2"); 
guest2treatment[0][2][2][3]=new Option("Want more explanation to decide through counseling before treatment","3"); 

guest2treatment[0][2][3][0]=new Option("Relaxing Body Treatment (120 min) & Facial Treatment (60 min)","0"); 
guest2treatment[0][2][3][1]=new Option("Relaxing Body Treatment (120 min) & Foot & Leg Treatment (60 min)","1"); 
guest2treatment[0][2][3][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)& facial Treatment","2"); 
guest2treatment[0][2][3][3]=new Option("Want more explanation to decide through counseling before treatment","3"); 
guest2treatment[0][3][0][0]=new Option("Relaxing Body Treatment (120 min) & Facial Treatment (60 min)","0"); 
guest2treatment[0][3][0][1]=new Option("Relaxing Body Treatment (120 min) & Foot & Leg Treatment (60 min)","1"); 
guest2treatment[0][3][0][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)& facial Treatment","2"); 
guest2treatment[0][3][0][3]=new Option("Want more explanation to decide through counseling before treatment","3"); 
guest2treatment[0][3][1][0]=new Option("Relaxing Body Treatment (120 min) & Facial Treatment (60 min)","0"); 
guest2treatment[0][3][1][1]=new Option("Relaxing Body Treatment (120 min) & Foot & Leg Treatment (60 min)","1"); 
guest2treatment[0][3][1][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)& facial Treatment","2"); 
guest2treatment[0][3][1][3]=new Option("Want more explanation to decide through counseling before treatment","3"); 
guest2treatment[0][3][2][0]=new Option("Relaxing Body Treatment (120 min) & Facial Treatment (60 min)","0"); 
guest2treatment[0][3][2][1]=new Option("Relaxing Body Treatment (120 min) & Foot & Leg Treatment (60 min)","1"); 
guest2treatment[0][3][2][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)& facial Treatment","2"); 
guest2treatment[0][3][2][3]=new Option("Want more explanation to decide through counseling before treatment","3"); 
guest2treatment[0][3][3][0]=new Option("Relaxing Body Treatment (120 min) & Facial Treatment (60 min)","0"); 
guest2treatment[0][3][3][1]=new Option("Relaxing Body Treatment (120 min) & Foot & Leg Treatment (60 min)","1"); 
guest2treatment[0][3][3][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)& facial Treatment","2"); 
guest2treatment[0][3][3][3]=new Option("Want more explanation to decide through counseling before treatment","3"); 

guest2treatment[0][4][0][0]=new Option("Relaxing Body Treatment (120 min) & Foot & Leg Treatment (60 min)& facial Treatment (60min.)","0"); 
guest2treatment[0][4][0][1]=new Option("","1"); 
guest2treatment[0][4][0][2]=new Option("","2"); 
guest2treatment[0][4][0][3]=new Option("","3"); 

guest2treatment[0][5][0][0]=new Option("Relaxing Body Treatment (120 min) & Foot & Leg Treatment (60 min)& facial Treatment (60min.)","0"); 
guest2treatment[0][5][0][1]=new Option("","1"); 
guest2treatment[0][5][0][2]=new Option("","2"); 
guest2treatment[0][5][0][3]=new Option("","3"); 

guest2treatment[0][6][0][0]=new Option("Relaxing Body Treatment (120 min) & Foot & Leg Treatment (60 min)& facial Treatment (60min.)","0"); 
guest2treatment[0][6][0][1]=new Option("","1"); 
guest2treatment[0][6][0][2]=new Option("","2"); 
guest2treatment[0][6][0][3]=new Option("","3"); 

guest2treatment[1][0][0][0]=new Option("Relaxing Body Treatment (120 min.)","0"); 
guest2treatment[1][0][0][1]=new Option("Revitalizing Body Treatment (60 min.) & Facial Treatment (60 min.)","1"); 
guest2treatment[1][0][0][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)","2"); 
guest2treatment[1][0][0][3]=new Option("Foot & Leg Treatment (60 min.) &  Facial Treatment (60 min.)","3"); 
guest2treatment[1][0][0][4]=new Option("Want more explanation to decide rough counseling treatment","4"); 
guest2treatment[1][0][0][5]=new Option("","5"); 
guest2treatment[1][0][0][6]=new Option("","6"); 

guest2treatment[1][0][1][0]=new Option("Relaxing Body Treatment (120 min.)","0"); 
guest2treatment[1][0][1][1]=new Option("Revitalizing Body Treatment (60 min.) & Facial Treatment (60 min.)","1"); 
guest2treatment[1][0][1][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)","2"); 
guest2treatment[1][0][1][3]=new Option("Foot & Leg Treatment (60 min.) &  Facial Treatment (60 min.)","3"); 
guest2treatment[1][0][1][4]=new Option("Want more explanation to decide rough counseling treatment","4"); 
guest2treatment[1][0][1][5]=new Option("","5"); 
guest2treatment[1][0][1][6]=new Option("","6"); 

guest2treatment[1][0][2][0]=new Option("Relaxing Body Treatment (120 min.)","0"); 
guest2treatment[1][0][2][1]=new Option("Revitalizing Body Treatment (60 min.) & Facial Treatment (60 min.)","1"); 
guest2treatment[1][0][2][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)","2"); 
guest2treatment[1][0][2][3]=new Option("Foot & Leg Treatment (60 min.) &  Facial Treatment (60 min.)","3"); 
guest2treatment[1][0][2][4]=new Option("Want more explanation to decide rough counseling treatment","4"); 
guest2treatment[1][0][2][5]=new Option("","5"); 
guest2treatment[1][0][2][6]=new Option("","6"); 

guest2treatment[1][0][3][0]=new Option("Relaxing Body Treatment (120 min.)","0"); 
guest2treatment[1][0][3][1]=new Option("Revitalizing Body Treatment (60 min.) & Facial Treatment (60 min.)","1"); 
guest2treatment[1][0][3][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)","2"); 
guest2treatment[1][0][3][3]=new Option("Foot & Leg Treatment (60 min.) &  Facial Treatment (60 min.)","3"); 
guest2treatment[1][0][3][4]=new Option("Want more explanation to decide rough counseling treatment","4"); 
guest2treatment[1][0][3][5]=new Option("","5"); 
guest2treatment[1][0][3][6]=new Option("","6"); 
guest2treatment[1][0][4][0]=new Option("Relaxing Body Treatment (120 min.)","0"); 
guest2treatment[1][0][4][1]=new Option("Revitalizing Body Treatment (60 min.) & Facial Treatment (60 min.)","1"); 
guest2treatment[1][0][4][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)","2"); 
guest2treatment[1][0][4][3]=new Option("Foot & Leg Treatment (60 min.) &  Facial Treatment (60 min.)","3"); 
guest2treatment[1][0][4][4]=new Option("Want more explanation to decide rough counseling treatment","4"); 
guest2treatment[1][0][4][5]=new Option("","5"); 
guest2treatment[1][0][4][6]=new Option("","6"); 

guest2treatment[1][1][0][0]=new Option("Relaxing Body Treatment (120 min.)","0"); 
guest2treatment[1][1][0][1]=new Option("Revitalizing Body Treatment (60 min.) & Facial Treatment (60 min.)","1"); 
guest2treatment[1][1][0][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)","2"); 
guest2treatment[1][1][0][3]=new Option("Foot & Leg Treatment (60 min.) &  Facial Treatment (60 min.)","3"); 
guest2treatment[1][1][0][4]=new Option("Want more explanation to decide rough counseling treatment","4"); 
guest2treatment[1][1][0][5]=new Option("","5"); 
guest2treatment[1][0][0][6]=new Option("","6"); 

guest2treatment[1][1][1][0]=new Option("Relaxing Body Treatment (120 min.)","0"); 
guest2treatment[1][0][1][1]=new Option("Revitalizing Body Treatment (60 min.) & Facial Treatment (60 min.)","1"); 
guest2treatment[1][1][1][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)","2"); 
guest2treatment[1][1][1][3]=new Option("Foot & Leg Treatment (60 min.) &  Facial Treatment (60 min.)","3"); 
guest2treatment[1][1][1][4]=new Option("Want more explanation to decide rough counseling treatment","4"); 
guest2treatment[1][1][1][5]=new Option("","5"); 
guest2treatment[1][1][1][6]=new Option("","6"); 

guest2treatment[1][1][2][0]=new Option("Relaxing Body Treatment (120 min.)","0"); 
guest2treatment[1][1][2][1]=new Option("Revitalizing Body Treatment (60 min.) & Facial Treatment (60 min.)","1"); 
guest2treatment[1][1][2][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)","2"); 
guest2treatment[1][1][2][3]=new Option("Foot & Leg Treatment (60 min.) &  Facial Treatment (60 min.)","3"); 
guest2treatment[1][1][2][4]=new Option("Want more explanation to decide rough counseling treatment","4"); 
guest2treatment[1][1][2][5]=new Option("","5"); 
guest2treatment[1][0][2][6]=new Option("","6"); 

guest2treatment[1][1][3][0]=new Option("Relaxing Body Treatment (120 min.)","0"); 
guest2treatment[1][1][3][1]=new Option("Revitalizing Body Treatment (60 min.) & Facial Treatment (60 min.)","1"); 
guest2treatment[1][1][3][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)","2"); 
guest2treatment[1][1][3][3]=new Option("Foot & Leg Treatment (60 min.) &  Facial Treatment (60 min.)","3"); 
guest2treatment[1][1][3][4]=new Option("Want more explanation to decide rough counseling treatment","4"); 
guest2treatment[1][1][3][5]=new Option("","5"); 
guest2treatment[1][1][3][6]=new Option("","6"); 
guest2treatment[1][1][4][0]=new Option("Relaxing Body Treatment (120 min.)","0"); 
guest2treatment[1][1][4][1]=new Option("Revitalizing Body Treatment (60 min.) & Facial Treatment (60 min.)","1"); 
guest2treatment[1][1][4][2]=new Option("Revitalizing Body Treatment (60 min.) & Foot & Leg Treatment (60 min.)","2"); 
guest2treatment[1][1][4][3]=new Option("Foot & Leg Treatment (60 min.) &  Facial Treatment (60 min.)","3"); 
guest2treatment[1][1][4][4]=new Option("Want more explanation to decide rough counseling treatment","4"); 
guest2treatment[1][1][4][5]=new Option("","5"); 
guest2treatment[1][1][4][6]=new Option("","6"); 

guest2treatment[1][2][0][0]=new Option("Revitalizing Body Treatment ","0"); 
guest2treatment[1][2][0][1]=new Option("Facial Treatment","1"); 
guest2treatment[1][2][0][2]=new Option("Foot & Leg Treatment","2"); 
guest2treatment[1][2][0][3]=new Option("","3"); 

guest2treatment[1][2][1][0]=new Option("Revitalizing Body Treatment ","0"); 
guest2treatment[1][2][1][1]=new Option("Facial Treatment","1"); 
guest2treatment[1][2][1][2]=new Option("Foot & Leg Treatment","2"); 
guest2treatment[1][2][1][3]=new Option("","3"); 
guest2treatment[1][2][2][0]=new Option("Revitalizing Body Treatment ","0"); 
guest2treatment[1][2][2][1]=new Option("Facial Treatment","1"); 
guest2treatment[1][2][2][2]=new Option("Foot & Leg Treatment","2"); 
guest2treatment[1][2][2][3]=new Option("","3"); 

guest2treatment[1][3][0][0]=new Option("Revitalizing Body Treatment ","0"); 
guest2treatment[1][3][0][1]=new Option("Facial Treatment","1"); 
guest2treatment[1][3][0][2]=new Option("Foot & Leg Treatment","2"); 
guest2treatment[1][3][0][3]=new Option("","3"); 
guest2treatment[1][3][1][0]=new Option("Revitalizing Body Treatment ","0"); 
guest2treatment[1][3][1][1]=new Option("Facial Treatment","1"); 
guest2treatment[1][3][1][2]=new Option("Foot & Leg Treatment","2"); 
guest2treatment[1][3][1][3]=new Option("","3"); 
guest2treatment[1][3][2][0]=new Option("Revitalizing Body Treatment ","0"); 
guest2treatment[1][3][2][1]=new Option("Facial Treatment","1"); 
guest2treatment[1][3][2][2]=new Option("Foot & Leg Treatment","2"); 
guest2treatment[1][3][2][3]=new Option("","3"); 

// --type villa 

typeofvilla[0][0][0][0][0]=new Option("Suite Villa","#"); 
typeofvilla[0][0][0][0][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][0][0][1][0]=new Option("Suite Villa","#"); 
typeofvilla[0][0][0][1][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][0][0][2][0]=new Option("Suite Villa","#"); 
typeofvilla[0][0][0][2][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][0][0][3][0]=new Option("Suite Villa","#"); 
typeofvilla[0][0][0][3][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][0][0][4][0]=new Option("Suite Villa","#"); 
typeofvilla[0][0][0][4][1]=new Option("Presidential Villa","#"); 

typeofvilla[0][0][1][0][0]=new Option("Suite Villa","#"); 
typeofvilla[0][0][1][0][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][0][1][1][0]=new Option("Suite Villa","#"); 
typeofvilla[0][0][1][1][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][0][1][2][0]=new Option("Suite Villa","#"); 
typeofvilla[0][0][1][2][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][0][1][3][0]=new Option("Suite Villa","#"); 
typeofvilla[0][0][1][3][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][0][1][4][0]=new Option("Suite Villa","#"); 
typeofvilla[0][0][1][4][1]=new Option("Presidential Villa","#"); 

typeofvilla[0][0][2][0][0]=new Option("Suite Villa","#"); 
typeofvilla[0][0][2][0][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][0][2][1][0]=new Option("Suite Villa","#"); 
typeofvilla[0][0][2][1][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][0][2][2][0]=new Option("Suite Villa","#"); 
typeofvilla[0][0][2][2][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][0][2][3][0]=new Option("Suite Villa","#"); 
typeofvilla[0][0][2][3][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][0][2][4][0]=new Option("Suite Villa","#"); 
typeofvilla[0][0][2][4][1]=new Option("Presidential Villa","#"); 

typeofvilla[0][0][3][0][0]=new Option("Suite Villa","#"); 
typeofvilla[0][0][3][0][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][0][3][1][0]=new Option("Suite Villa","#"); 
typeofvilla[0][0][3][1][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][0][3][2][0]=new Option("Suite Villa","#"); 
typeofvilla[0][0][3][2][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][0][3][3][0]=new Option("Suite Villa","#"); 
typeofvilla[0][0][3][3][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][0][3][4][0]=new Option("Suite Villa","#"); 
typeofvilla[0][0][3][4][1]=new Option("Presidential Villa","#"); 

typeofvilla[0][0][4][0][0]=new Option("Suite Villa","#"); 
typeofvilla[0][0][4][0][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][0][4][1][0]=new Option("Suite Villa","#"); 
typeofvilla[0][0][4][1][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][0][4][2][0]=new Option("Suite Villa","#"); 
typeofvilla[0][0][4][2][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][0][4][3][0]=new Option("Suite Villa","#"); 
typeofvilla[0][0][4][3][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][0][4][4][0]=new Option("Suite Villa","#"); 
typeofvilla[0][0][4][4][1]=new Option("Presidential Villa","#"); 

typeofvilla[0][1][0][0][0]=new Option("Suite Villa","#"); 
typeofvilla[0][1][0][0][1]=new Option("Presidential Villa","#"); 

typeofvilla[0][1][0][1][0]=new Option("Suite Villa","#"); 
typeofvilla[0][1][0][1][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][1][0][2][0]=new Option("Suite Villa","#"); 
typeofvilla[0][1][0][2][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][1][0][3][0]=new Option("Suite Villa","#"); 
typeofvilla[0][1][0][3][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][1][0][4][0]=new Option("Suite Villa","#"); 
typeofvilla[0][1][0][4][1]=new Option("Presidential Villa","#"); 

typeofvilla[0][1][1][0][0]=new Option("Suite Villa","#"); 
typeofvilla[0][1][1][0][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][1][2][0][0]=new Option("Suite Villa","#"); 
typeofvilla[0][1][2][0][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][1][3][0][0]=new Option("Suite Villa","#"); 
typeofvilla[0][1][3][0][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][1][4][0][0]=new Option("Suite Villa","#"); 
typeofvilla[0][1][4][0][1]=new Option("Presidential Villa","#"); 

typeofvilla[0][1][1][1][0]=new Option("Suite Villa","#"); 
typeofvilla[0][1][1][1][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][1][1][2][0]=new Option("Suite Villa","#"); 
typeofvilla[0][1][1][2][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][1][1][3][0]=new Option("Suite Villa","#"); 
typeofvilla[0][1][1][3][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][1][1][4][0]=new Option("Suite Villa","#"); 
typeofvilla[0][1][1][4][1]=new Option("Presidential Villa","#"); 

typeofvilla[0][1][2][1][0]=new Option("Suite Villa","#"); 
typeofvilla[0][1][2][1][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][1][2][2][0]=new Option("Suite Villa","#"); 
typeofvilla[0][1][2][2][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][1][2][3][0]=new Option("Suite Villa","#"); 
typeofvilla[0][1][2][3][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][1][2][4][0]=new Option("Suite Villa","#"); 
typeofvilla[0][1][2][4][1]=new Option("Presidential Villa","#"); 

typeofvilla[0][1][3][1][0]=new Option("Suite Villa","#"); 
typeofvilla[0][1][3][1][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][1][3][2][0]=new Option("Suite Villa","#"); 
typeofvilla[0][1][3][2][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][1][3][3][0]=new Option("Suite Villa","#"); 
typeofvilla[0][1][3][3][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][1][3][4][0]=new Option("Suite Villa","#"); 
typeofvilla[0][1][3][4][1]=new Option("Presidential Villa","#"); 

typeofvilla[0][1][4][1][0]=new Option("Suite Villa","#"); 
typeofvilla[0][1][4][1][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][1][4][2][0]=new Option("Suite Villa","#"); 
typeofvilla[0][1][4][2][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][1][4][3][0]=new Option("Suite Villa","#"); 
typeofvilla[0][1][4][3][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][1][4][4][0]=new Option("Suite Villa","#"); 
typeofvilla[0][1][4][4][1]=new Option("Presidential Villa","#"); 

typeofvilla[0][2][0][0][0]=new Option("Suite Villa","#"); 
typeofvilla[0][2][0][0][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][2][0][1][0]=new Option("Suite Villa","#"); 
typeofvilla[0][2][0][1][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][2][0][2][0]=new Option("Suite Villa","#"); 
typeofvilla[0][2][0][2][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][2][0][3][0]=new Option("Suite Villa","#"); 
typeofvilla[0][2][0][3][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][2][1][0][0]=new Option("Suite Villa","#"); 
typeofvilla[0][2][1][0][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][2][1][1][0]=new Option("Suite Villa","#"); 
typeofvilla[0][2][1][1][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][2][1][2][0]=new Option("Suite Villa","#"); 
typeofvilla[0][2][1][2][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][2][1][3][0]=new Option("Suite Villa","#"); 
typeofvilla[0][2][1][3][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][2][2][0][0]=new Option("Suite Villa","#"); 
typeofvilla[0][2][2][0][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][2][2][1][0]=new Option("Suite Villa","#"); 
typeofvilla[0][2][2][1][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][2][2][2][0]=new Option("Suite Villa","#"); 
typeofvilla[0][2][2][2][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][2][2][3][0]=new Option("Suite Villa","#"); 
typeofvilla[0][2][2][3][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][2][3][0][0]=new Option("Suite Villa","#"); 
typeofvilla[0][2][3][0][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][2][3][1][0]=new Option("Suite Villa","#"); 
typeofvilla[0][2][3][1][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][2][3][2][0]=new Option("Suite Villa","#"); 
typeofvilla[0][2][3][2][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][2][3][3][0]=new Option("Suite Villa","#"); 
typeofvilla[0][2][3][3][1]=new Option("Presidential Villa","#"); 


typeofvilla[0][3][0][0][0]=new Option("Suite Villa","#"); 
typeofvilla[0][3][0][0][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][3][0][1][0]=new Option("Suite Villa","#"); 
typeofvilla[0][3][0][1][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][3][0][2][0]=new Option("Suite Villa","#"); 
typeofvilla[0][3][0][2][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][3][0][3][0]=new Option("Suite Villa","#"); 
typeofvilla[0][3][0][3][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][3][1][0][0]=new Option("Suite Villa","#"); 
typeofvilla[0][3][1][0][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][3][1][1][0]=new Option("Suite Villa","#"); 
typeofvilla[0][3][1][1][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][3][1][2][0]=new Option("Suite Villa","#"); 
typeofvilla[0][3][1][2][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][3][1][3][0]=new Option("Suite Villa","#"); 
typeofvilla[0][3][1][3][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][3][2][0][0]=new Option("Suite Villa","#"); 
typeofvilla[0][3][2][0][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][3][2][1][0]=new Option("Suite Villa","#"); 
typeofvilla[0][3][2][1][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][3][2][2][0]=new Option("Suite Villa","#"); 
typeofvilla[0][3][2][2][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][3][2][3][0]=new Option("Suite Villa","#"); 
typeofvilla[0][3][2][3][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][3][3][0][0]=new Option("Suite Villa","#"); 
typeofvilla[0][3][3][0][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][3][3][1][0]=new Option("Suite Villa","#"); 
typeofvilla[0][3][3][1][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][3][3][2][0]=new Option("Suite Villa","#"); 
typeofvilla[0][3][3][2][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][3][3][3][0]=new Option("Suite Villa","#"); 
typeofvilla[0][3][3][3][1]=new Option("Presidential Villa","#"); 
typeofvilla[0][4][0][0][0]=new Option("Presidential Villa","#"); 
typeofvilla[0][5][0][0][0]=new Option("Presidential Villa","#"); 
typeofvilla[0][6][0][0][0]=new Option("Presidential Villa","#"); 

typeofvilla[1][0][0][0][0]=new Option("Treatment Villa","#"); 


typeofvilla[1][0][0][1][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][0][0][2][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][0][0][3][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][0][0][4][0]=new Option("Treatment Villa","#"); 


typeofvilla[1][0][1][0][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][0][1][1][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][0][1][2][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][0][1][3][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][0][1][4][0]=new Option("Treatment Villa","#"); 


typeofvilla[1][0][2][0][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][0][2][1][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][0][2][2][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][0][2][3][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][0][2][4][0]=new Option("Treatment Villa","#"); 


typeofvilla[1][0][3][0][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][0][3][1][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][0][3][2][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][0][3][3][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][0][3][4][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][0][4][0][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][0][4][1][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][0][4][2][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][0][4][3][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][0][4][4][0]=new Option("Treatment Villa","#"); 


typeofvilla[1][1][0][0][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][1][0][1][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][1][0][2][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][1][0][3][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][1][0][4][0]=new Option("Treatment Villa","#"); 


typeofvilla[1][1][1][0][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][1][1][1][0]=new Option("Treatment Villaa","#"); 

typeofvilla[1][1][1][2][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][1][1][3][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][1][1][4][0]=new Option("Treatment Villa","#"); 


typeofvilla[1][1][2][0][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][1][2][1][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][1][2][2][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][1][2][3][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][1][2][4][0]=new Option("Treatment Villa","#"); 


typeofvilla[1][1][3][0][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][1][3][1][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][1][3][2][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][1][3][3][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][1][3][4][0]=new Option("Treatment Villa","#"); 


typeofvilla[1][1][4][0][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][1][4][1][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][1][4][2][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][1][4][3][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][1][4][4][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][2][0][0][0]=new Option("Treatment Villa","#"); 
typeofvilla[1][2][0][1][0]=new Option("Treatment Villa","#"); 
typeofvilla[1][2][0][2][0]=new Option("Treatment Villa","#"); 
typeofvilla[1][2][1][0][0]=new Option("Treatment Villa","#"); 
typeofvilla[1][2][1][1][0]=new Option("Treatment Villa","#"); 
typeofvilla[1][2][1][2][0]=new Option("Treatment Villa","#"); 
typeofvilla[1][2][2][0][0]=new Option("Treatment Villa","#"); 
typeofvilla[1][2][2][1][0]=new Option("Treatment Villa","#"); 
typeofvilla[1][2][2][2][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][3][0][0][0]=new Option("Treatment Villa","#"); 
typeofvilla[1][3][0][1][0]=new Option("Treatment Villa","#"); 
typeofvilla[1][3][0][2][0]=new Option("Treatment Villa","#"); 

typeofvilla[1][3][1][0][0]=new Option("Treatment Villa","#"); 
typeofvilla[1][3][1][1][0]=new Option("Treatment Villa","#"); 
typeofvilla[1][3][1][2][0]=new Option("Treatment Villa","#"); 
typeofvilla[1][3][2][0][0]=new Option("Treatment Villa","#"); 
typeofvilla[1][3][2][1][0]=new Option("Treatment Villa","#"); 
typeofvilla[1][3][2][2][0]=new Option("Treatment Villa","#"); 

function change1() { 
for (x=0;x<=max;x++) { 
if (package[document.myform.program.options[document.myform.program.selectedIndex].value][x] != null) { 
document.myform.package.options[x]=package[document.myform.program.options[document.myform.program.selectedIndex].value][x]; 
document.myform.package.selectedIndex=0; 
} 
else {document.myform.package.options[x]=null;} 
} 
} 
function change2() { 
for (y=0;y<=max;y++) { 
if (guest1treatment[document.myform.program.options[document.myform.program.selectedIndex].value][document.myform.package.options[document.myform.package.selectedIndex].value][y] != null) { 
document.myform.guest1treatment.options[y]=guest1treatment[document.myform.program.options[document.myform.program.selectedIndex].value][document.myform.package.options[document.myform.package.selectedIndex].value][y]; 
document.myform.guest1treatment.selectedIndex=0; 
} 
else {document.myform.guest1treatment.options[y]=null;} 
} 
} 
function change3() { 
for (z=0;z<=max;z++) { 
if (guest2treatment[document.myform.program.options[document.myform.program.selectedIndex].value][document.myform.package.options[document.myform.package.selectedIndex].value][document.myform.guest1treatment.options[document.myform.guest1treatment.selectedIndex].value][z] != null) { 
document.myform.guest2treatment.options[z]=guest2treatment[document.myform.program.options[document.myform.program.selectedIndex].value][document.myform.package.options[document.myform.package.selectedIndex].value][document.myform.guest1treatment.options[document.myform.guest1treatment.selectedIndex].value][z]; 
document.myform.guest2treatment.selectedIndex=0; 
%

Body Code:

<center> 
  <table wid="85%" width="350"> 
    <tr><td wid="100%"> 
<center> 
<form name="myform"> 
            <table width="100%" border="0" cellspacing="5" cellpadding="1"> 
              <tr> 
                <td width="31%"> <font face="Verdana, Arial, Helvetica, sans-serif" size="2">program 
                  </font></td> 
                <td width="69%"> 
                  <select name="program" onChange="change1();change2();change3();change4()" size="1"> 
                    <option value="--">Choose Program</option> 
                    <option value="0">Private Spa Package</option> 
                    <option value="1">Spa treatment ( treament only]</option> 
                  </select> 
                </td> 
              </tr> 
              <tr> 
                <td width="31%"> <font face="Verdana, Arial, Helvetica, sans-serif" size="2">package 
                  </font></td> 
                <td width="69%"> 
                  <select name="package" onChange="change2();change3();change4()"> 
                    <option value="0">*******************************</option> 
                
                  </select> 
                </td> 
              </tr> 
              <tr> 
                <td width="31%"> <font face="Verdana, Arial, Helvetica, sans-serif" size="2">guest1 
                  </font></td> 
                <td width="69%"> 
                  <select name="guest1treatment" onChange="change3();change4()"> 
                    <option value="0">*******************************</option> 
                    
                  </select> 
                </td> 
              </tr> 
              <tr> 
                <td width="31%"> <font face="Verdana, Arial, Helvetica, sans-serif" size="2">guest2 
                  </font></td> 
                <td width="69%"> 
                  <select name="guest2treatment" onChange="change4()"> 
                    <option value="0">*******************************</option> 
                    

                  </select> 
                </td> 
              </tr> 
              <tr> 
                <td width="31%"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"> 
                  villatype </font></td> 
                <td width="69%"> 
                  <select name="type_of_villa"> 
                    <option value="0">******************************</option> 
        
                  </select> 
                </td> 
              </tr> 
            </table> 
            <p> 
              <input type="submit" name="Submit" value="Submit"> 
              <br> 
            </p> 
            </form></center></td></tr></table><p><center> 
  
</center> 
</center> 

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *