data_1_1= new Option("Akourdalia", "Akourdalia");
data_1_2= new Option("Anarita", "Anarita");
data_1_3= new Option("Choulou", "Choulou");
data_1_4= new Option("Coral Bay", "Coral Bay");
data_1_5= new Option("Geroskipou", "Geroskipou");
data_1_6= new Option("Konia", "Konia");

data_2_1= new Option("Agios Georgios", "Agios Georgios");





displaywhenempty="-empty-"
valuewhenempty="-empty-"
displaywhennotempty="-select-"
valuewhennotempty="-select-"
function change(currentbox)
{
  var numb = currentbox.id.split("_");
  var currentbox = numb[1];
  var i=parseInt(currentbox)+1;
  var _t=eval("typeof(document.getElementById('combo_"+i+"'))!='undefined'");
  while (_t && document.getElementById("combo_"+i)!=null)
  {
    var son = document.getElementById("combo_"+i);
    for (m=son.options.length-1;m>0;m--)
      son.options[m]=null;
    son.options[0]=new Option(displaywhenempty,valuewhenempty);
    i=i+1;
  }
  var stringa='data';
  i=0;
  _t=eval("typeof(document.getElementById('combo_"+i+"'))!='undefined'");
  while (_t && document.getElementById("combo_"+i)!=null)
  {
    eval("stringa=stringa+'_'+document.getElementById(\"combo_"+i+"\").selectedIndex");
    if (i==currentbox)
      break;
    i=i+1;
  }
  var following=parseInt(currentbox)+1;
  _t=eval("typeof(document.getElementById('combo_"+following+"'))!='undefined'");
  if (_t && document.getElementById("combo_"+following)!=null)
  {
    son=document.getElementById("combo_"+following);
    stringa=stringa+"_";
	var string_text;
	var string_value;
    i=0;
    while ((eval("typeof("+stringa+i+")!='undefined'")) || (i==0))
    {
      if ((i==0) && eval("typeof("+stringa+"0)=='undefined'"))
        if (eval("typeof("+stringa+"1)=='undefined'"))
          eval("son.options[0]=new Option(displaywhenempty,valuewhenempty)");
        else
          eval("son.options[0]=new Option(displaywhennotempty,valuewhennotempty)");
        else
          eval("son.options["+i+"]=new Option("+stringa+i+".text,"+stringa+i+".value)")
      i++;
    }
    i=1;
    combostatus='';
    cstatus=stringa.split("_");
    while (cstatus[i]!=null)
    {
      combostatus=combostatus+cstatus[i];
      i=i+1;
    }
    return combostatus;
  }
}
