

var current="";

var mode=0;



function uni( id, descr) {

  if (mode==0) {

    document.write('<option value="');

    document.write(id);

    document.write('" ');

    if (current == id) document.write('selected ');

    document.write('>');

    document.writeln(descr);

  } else

  if (mode==1) {

    if ( current == id) document.write(descr);

  }

}





function ScriviCorso(token, flag) {

  current = token.toUpperCase();

  mode = flag;

  if (mode==0) document.writeln("<option value=\"00\">------------------------------ seleziona -------------------------------");





  uni( "00" , "------------ CORSI DI PREPARAZIONE PER DIPLOMA ------------");

  uni( "Liceo Classico" , "Liceo Classico");

  uni( "Liceo Linguistico" , "Liceo Linguistico");

  uni( "Liceo Scientifico" , "Liceo Scientifico");

  uni( "Perito termotecnico" , "Perito termotecnico"); 

  uni( "PACLE" , "Perito aziendale corrisp. lingue estere (P.A.C.L.E.)");  

  uni( "Dirig. comunità" , "Dirigente di comunità");

  uni( "Economo dietista" , "Economo dietista");

  uni( "Geometra" , "Geometra");

  uni( "Integ. mat. a mat." , "Integrazione da maturità a maturità");

  uni( "Ragioneria I.G.E.A." , "Ragioneria I.G.E.A.");

  uni( "Stilista e creatrice" , "Stilista e creatrice di moda");

   uni( "00" , "------------------ CORSI PROFESSIONALI ------------------");

   uni( "Amminist. ufficio" , "Amministrazione di ufficio");

   uni( "Gestione alberghiera" , "Gestione alberghiera"); 

   uni( "Accomp. turistica" , "Accompagnatrice turistica");

   uni( "Stilista e creatrice" , "Stilista e creatrice di moda");

   uni( "Arred. - designer" , "Arredamento - designer");

   uni( "Grafica pubb. comp." , "Grafica pubblicitaria computerizzata");

   uni( "Informatica" , "Informatica");

   uni( "Marketing" , "Marketing e strategie della vendita");

   uni( "New Economy" , "New Economy");

   uni( "Amminist. ufficio" , "Amministrazione di ufficio");

        

}









function ScriviProfessione(token, flag) {

  current = token.toUpperCase();

  mode = flag;

  if (mode==0) document.writeln("<option value=\"nd\">------- seleziona -------");

  uni( "nessuno" , "nessuno");

  uni( "Elementare" , "Licenza elementare");

  uni( "Media inferiore" , "Licenza media inferiore");

  uni( "Media superiore" , "Licenza media superiore");

  uni( "Altro" , "Altro");

}







function ScriviAnno(token, flag) {

  current=token;

  mode = flag;

  if (mode==0) document.writeln("<option value=\"\">-------");

  for ( anno=1990; anno>=1945; anno--) uni ( ""+anno, ""+anno );

}



function ScriviOra(token, flag) {

  current = token.toLowerCase();

  mode = flag;

  if (mode==0) document.writeln("<option value=\"00\">-------");

  uni( "09:00" , "09:00");

  uni( "10:00" , "10:00");

  uni( "11:00" , "11:00");

  uni( "12:00" , "12:00");

  uni( "13:00" , "13:00");

  uni( "14:00" , "14:00");

  uni( "15:00" , "15:00");

  uni( "16:00" , "16:00");

  uni( "17:00" , "17:00");

  uni( "18:00" , "18:00");

  uni( "19:00" , "19:00");

  uni( "20:00" , "20:00");

  uni( "21:00" , "21:00");

  uni( "22:00" , "22:00");

}





function ScriviReper(token, flag) {

  current = token.toLowerCase();

  mode = flag;

  if (mode==0) document.writeln("<option value=\"00\">------- seleziona -------");

  uni( "Tutti i giorni" , "Tutti i giorni");

  uni( "Luned́ - Venerd́" , "Luned́ - Venerd́");

  uni( "Sabato - Domenica" , "Sabato - Domenica");

}





function ScriviProvincia(token, flag) {

  current = token.toLowerCase();

  mode = flag;

  if (mode==0) document.writeln("<option value=\"00\">--");

  uni( "AG" , "AG");

  uni( "AL" , "AL");

  uni( "AN" , "AN");

  uni( "AO" , "AO");

  uni( "AR" , "AR");

  uni( "AP" , "AP");

  uni( "AT" , "AT");

  uni( "AV" , "AV");

  uni( "BA" , "BA");

  uni( "BL" , "BL");

  uni( "BN" , "BN");

   uni( "BG" , "BG");

  uni( "BI" , "BI");

   uni( "BO" , "BO");

  uni( "BZ" , "BZ");

   uni( "BS" , "BS");

  uni( "BR" , "BR");

  uni( "CA" , "CA");

  uni( "CL" , "CL");

  uni( "CB" , "CB");

  uni( "CE" , "CE");

  uni( "CT" , "CT");

  uni( "CZ" , "CZ");

  uni( "CH" , "CH");

   uni( "CO" , "CO");

  uni( "CS" , "CS");

   uni( "CR" , "CR");

  uni( "KR" , "KR");

  uni( "CN" , "CN");

  uni( "EN" , "EN");

   uni( "FE" , "FE");

  uni( "FI" , "FI");

  uni( "FG" , "FG");

   uni( "FO" , "FO");

  uni( "Fr" , "FR");

  uni( "Ge" , "GE");

  uni( "GO" , "GO");

  uni( "GR" , "GR");

  uni( "IM" , "IM");

  uni( "IS" , "IS");

  uni( "LP" , "LP");

  uni( "AQ" , "AQ");

  uni( "LT" , "LT");

  uni( "LE" , "LE");

   uni( "LC" , "LC");

  uni( "LI" , "LI");

   uni( "LO" , "LO");

  uni( "LU" , "LU");

  uni( "MC" , "MC");

   uni( "MN" , "MN");

  uni( "MS" , "MS");

  uni( "MT" , "MT");

  uni( "ME" , "ME");

   uni( "MI" , "MI");

   uni( "MO" , "MO");

  uni( "NA" , "NA");

   uni( "NO" , "NO");

  uni( "NU" , "NU");

  uni( "OR" , "OR");

  uni( "PD" , "PD");

  uni( "PA" , "PA");

   uni( "PR" , "PR");

   uni( "PV" , "PV");

  uni( "PG" , "PG");

  uni( "PS" , "PS");

  uni( "PE" , "PE");

   uni( "PC" , "PC");

  uni( "PI" , "PI");

  uni( "PT" , "PT");

  uni( "PN" , "PN");

  uni( "PZ" , "PZ");

  uni( "PO" , "PO");

  uni( "RG" , "RG");

   uni( "RA" , "RA");

  uni( "RC" , "RC");

   uni( "RE" , "RE");

  uni( "RI" , "RI");

   uni( "RN" , "RN");

  uni( "RM" , "RM");

  uni( "RO" , "RO");

  uni( "SA" , "SA");

  uni( "SS" , "SS");

  uni( "SV" , "SV");

  uni( "SI" , "SI");

  uni( "SR" , "SR");

   uni( "SO" , "SO");

  uni( "TA" , "TA");

  uni( "TE" , "TE");

  uni( "TR" , "TR");

  uni( "TO" , "TO");

  uni( "TP" , "TP");

   uni( "TN" , "TN");

  uni( "TV" , "TV");

  uni( "TS" , "TS");

  uni( "UD" , "UD");

   uni( "VA" , "VA");

  uni( "VE" , "VE");

  uni( "VB" , "VB");

   uni( "VC" , "VC");

   uni( "VR" , "VR");

  uni( "VV" , "VV");

   uni( "VI" , "VI");

  uni( "VT" , "VT");

}

