var aus = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1); //Data
var ver1 = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
var ver2 = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
var ver3 = new Array(-1,-1,-1,-1,-1,-1,-1);
var ver4 = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
var ver5 = new Array(-1,-1,-1,-1,-1);
var ver8 = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
var ver1l = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
var ver2l = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
var ver3l = new Array(-1,-1,-1,-1,-1,-1,-1);
var ver5l = new Array(-1,-1,-1,-1,-1);
var ver6l = new Array(-1,-1,-1,-1,-1,-1,-1);
var ver7l = new Array(-1,-1,-1,-1,-1);
var lables1 = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
var lables2 = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
var lables3 = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
var lables4 = new Array(-1,-1,-1,-1,-1,-1,-1);
var lables5 = new Array(-1,-1,-1,-1,-1);
var lables6 = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1);
var lables7 = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
var lables8 = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
var erf = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1); //Erfolgsvergleichswerte und Unterstützung
var alt = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
var berf = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
var geld = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1);

ver1l[0]="Compulsory education";
ver1l[1]="Apprenticeship";
ver1l[2]="Vocational college";
ver1l[3]="Higher vocational college";
ver1l[4]="General qualification for university entrance";
ver1l[5]="University entrance examination without A level or school leaving examination";
ver1l[6]="Specialist acadamy (no university) with a work placement";
ver1l[7]="college of higher education / polytechnic / technical college / university of applied sciences";
ver1l[8]="University";
ver1l[9]="Formal adult education";
ver1l[10]="Postgraduate education";
ver2l[0]="Graduate engineer";
ver2l[1]="PhD";
ver2l[2]="Masters degree";
ver2l[3]="Bachelors degree";
ver2l[4]="Engineering degree";
ver2l[5]="Bachelors degree";
ver2l[6]="Masters degree";
ver2l[7]="Masters degree";
ver2l[8]="Bachelors degree";
ver2l[9]="Postdoctoral lecture qualification";
ver2l[10]="Doctorate";
ver2l[11]="Professorship";
ver3l[0]="Humanities";
ver3l[1]="Medicine";
ver3l[2]="Agriculture, forestry, veterinary medicine";
ver3l[3]="Mining and metallurgical studies";
ver3l[4]="Natural sciences";
ver3l[5]="Social sciences or economics";
ver3l[6]="Technical sciences";
ver5l[0]="Tenure of office";
ver5l[1]="Permanent contract";
ver5l[2]="Temporary contract";
ver5l[3]="Short-time employment";
ver5l[4]="Freelancer contract";
ver6l[0]="University";
ver6l[1]="college of higher education / polytechnic / technical college / university of applied sciences";
ver6l[2]="Specialist acadamy (no university) with a work placement";
ver6l[3]="Non-university research institute";
ver6l[4]="Non-profit organisation";
ver6l[5]="Private company";
ver6l[6]="Public administration";
ver7l[0]="It came about through a freelance contract";
ver7l[1]="I purchased a firm/business";
ver7l[2]="I was given a firm/business as a present/I took over a firm/business";
ver7l[3]="I inherited a firm/business";
ver7l[4]="I set up my own business";
lables1[0]=" completed compulsory education";
lables1[1]=" completed an apprenticeship";
lables1[2]=" been to a vocational college";
lables1[3]=" been to a higher vocational college";
lables1[4]=" completed examinations for general qualification for university entrance";
lables1[5]=" completed a university entrance examination without A level or school leaving examination";
lables1[6]=" been to a specialist acadamy (no university) with a work placement";
lables1[7]=" been to a college of higher education";
lables1[8]=" been to university";
lables1[9]=" completed formal adult education";
lables1[10]=" completed postgraduate studies";
lables2[0]="are graduate engineers";
lables2[1]="are studying towards a PhD";
lables2[2]="have a masters degree";
lables2[3]="have a bachelors degree";
lables2[4]="have an engineering degree";
lables2[5]="have a bachelors degree";
lables2[6]="have a masters degree";
lables2[7]="have a masters degree";
lables2[8]="have a  bachelors degree";
lables2[9]="have a postdoctoral lecture qualification";
lables2[10]="have a doctorate";
lables2[11]="are professors";
lables3[0]=" graduate engineering degree";
lables3[1]=" PhD";
lables3[2]=" masters degree";
lables3[3]=" bachelors degree";
lables3[4]="n engineering degree";
lables3[5]=" bachelors degree";
lables3[6]=" masters degree";
lables3[7]=" masters degree";
lables3[8]=" bachelors degree";
lables3[9]=" postdoctoral lecture qualification";
lables3[10]=" doctorate";
lables3[11]=" professorship";
lables4[0]="Humanities";
lables4[1]="Medicine";
lables4[2]="Agriculture, forestry, veterinary medicine";
lables4[3]="Mining and metallurgical studies";
lables4[4]="Natural sciences";
lables4[5]="Social sciences or economics";
lables4[6]="Technical sciences";
lables5[0]="have tenure of office";
lables5[1]="work on a permanent contract";
lables5[2]="work on a temporary contract";
lables5[3]="have a short-time employment";
lables5[4]="work on a freelancer contract";
lables6[0]="Maternity/paternity leave";
lables6[1]="Vocational training";
lables6[2]="Educational leave";
lables6[3]="Voluntary 'time out' from job";
lables6[4]="Job seeking";
lables6[5]="Retirement";
lables6[6]="Early retirement";
lables6[7]="Long-term disability";
lables6[8]="Voluntary back out of job";
lables7[0]="Change of role at work";
lables7[1]="Change of department at work";
lables7[2]="Change of institution";
lables7[3]="Change of industrial sector";
lables7[4]="Promotion";
lables7[5]="Demotion";
lables7[6]="Foreign assignment";
lables7[7]="Resignation";
lables7[8]="Dismissal/end of contract";
lables7[9]="Greater involvement in the inner workings of the company";
lables7[10]="Less involvement in the inner workings of the company";
lables7[11]="Relocation for work";
lables7[12]="Taking on an additional salaried job";
lables7[13]="Taking on an additional self-employed job";
lables7[14]="Starting a new salaried job";
lables7[15]="Starting a new self-employed job";
lables7[16]="Changing from a salaried to a self-employed job";
lables7[17]="Changing from a self-employed to a salaried job";
lables7[18]="Exit from self-employed work due to competition, selling the business or termination of the business";
lables7[19]="Change in working hours (e.g. change from part-time to full-time or vice-versa)";
lables8[0]="Bonus (one-off sum)";
lables8[1]="Individual performance-based bonus";
lables8[2]="Team performance-based bonus";
lables8[3]="Share ownershipn";
lables8[4]="Share in profits";
lables8[5]="Options";
lables8[6]="Fixed bonus";
lables8[7]="Time off in lieu";
lables8[8]="Paid internal professional training/development";
lables8[9]="Paid external professional training/development";
lables8[10]="Holiday throughout the year for professional trainig/developmentn";
lables8[11]="Additional (bejond the standard) pension contributions (company pension)";
lables8[12]="Additional (bejond the standard) medical insurance (company health insurance fund)";
lables8[13]="Work canteen/food vouchers";
lables8[14]="Company kindergarten";
lables8[15]="Company sport and leisure facilities";
lables8[16]="Discounts for using company or group-owned services";
lables8[17]="A company car";
lables8[18]="A company mobile telephone";

aus[0]='May  2, 2010';
aus[1]=463;
aus[2]=87;
aus[3]=17;
aus[4]=61;
aus[5]=35;
aus[6]=0;
aus[7]=64;
aus[8]=33;
aus[9]=0;
aus[10]=24;
aus[11]=7;
aus[12]=8;
aus[13]=71;
aus[14]=4;
aus[15]=50;
aus[16]=82;
aus[17]=6;
aus[18]=35;
aus[19]=0;
aus[20]=10;
aus[21]=12;
aus[22]=5;
aus[23]=38;
aus[24]=6;
aus[25]=28;
aus[26]=0;
aus[27]=35;
aus[28]=0;
aus[29]=0;
aus[30]=48;
aus[31]=0;
aus[32]=49;
aus[33]=0;
aus[34]=55;
aus[35]=41;
aus[36]=57;
aus[37]=43;
aus[38]=0;
aus[39]=8;
aus[40]=10;
aus[41]=82;
aus[42]=14;
aus[43]=4;
aus[44]=1;
aus[45]=72;
aus[46]=2;
aus[47]=17;
aus[48]=84;
aus[49]=3;
aus[50]=13;
aus[51]=47;
aus[52]=34;
aus[53]=2;
aus[54]=17;
aus[55]=2;
aus[56]=1;
aus[57]=10;
aus[58]=11;
aus[59]=48;
aus[60]=9;
aus[61]=32;
aus[62]=2;
aus[63]=5;
aus[64]=0;
aus[65]=56;
aus[66]=58;
aus[67]=13;
aus[68]=3;
aus[69]=24;
aus[70]=3;
aus[71]=100;
aus[72]=45;
aus[73]=0;
aus[74]=20;
aus[75]=4;
aus[76]=21;
aus[77]=0;
aus[78]=25;
aus[79]=4;
aus[80]=21;
aus[81]=0;
aus[82]=18;
aus[83]=8;
aus[84]=33;
aus[85]=9;
aus[86]=30;
ver1[0]=0;
ver1[1]=6;
ver1[2]=4;
ver1[3]=19;
ver1[4]=50;
ver1[5]=3;
ver1[6]=3;
ver1[7]=9;
ver1[8]=71;
ver1[9]=7;
ver1[10]=22;
ver2[0]=20;
ver2[1]=5;
ver2[2]=2;
ver2[3]=7;
ver2[4]=3;
ver2[5]=0;
ver2[6]=35;
ver2[7]=12;
ver2[8]=4;
ver2[9]=2;
ver2[10]=16;
ver2[11]=1;
ver3[0]=16;
ver3[1]=3;
ver3[2]=3;
ver3[3]=2;
ver3[4]=17;
ver3[5]=38;
ver3[6]=28;
ver4[0]=2;
ver4[1]=7;
ver4[2]=11;
ver4[3]=18;
ver4[4]=21;
ver4[5]=26;
ver4[6]=31;
ver4[7]=37;
ver4[8]=42;
ver4[9]=45;
ver4[10]=54;
ver4[11]=57;
ver4[12]=60;
ver4[13]=63;
ver4[14]=67;
ver4[15]=72;
ver4[16]=75;
ver4[17]=77;
ver4[18]=80;
ver4[19]=82;
ver4[20]=88;
ver4[21]=90;
ver4[22]=92;
ver4[23]=93;
ver4[24]=93;
ver4[25]=95;
ver4[26]=95;
ver4[27]=95;
ver4[28]=96;
ver4[29]=96;
ver4[30]=97;
ver4[31]=97;
ver4[32]=97;
ver4[33]=97;
ver4[34]=98;
ver4[35]=98;
ver4[36]=98;
ver4[37]=98;
ver4[38]=98;
ver4[39]=98;
ver4[40]=98;
ver5[0]=7;
ver5[1]=72;
ver5[2]=17;
ver5[3]=3;
ver5[4]=3;
geld[5]=3130;
geld[6]=2326;
ver8[0]=20;
ver8[1]=39;
ver8[2]=57;
ver8[3]=72;
ver8[4]=83;
ver8[5]=90;
ver8[6]=94;
ver8[7]=95;
ver8[8]=97;
ver8[9]=98;
ver8[10]=99;
ver8[11]=99;
ver8[12]=99;
ver8[13]=99;
ver8[14]=99;
ver8[15]=99;
ver8[16]=99;
ver8[17]=99;
ver8[18]=99;
ver8[19]=99;
ver8[20]=99;
ver8[21]=99;
ver8[22]=99;
ver8[23]=99;
ver8[24]=99;
ver8[25]=99;
ver8[26]=99;
ver8[27]=99;
ver8[28]=99;
ver8[29]=99;
erf[0]=3;
erf[1]=3;
erf[2]=4;
erf[3]=5;
erf[4]=4;
erf[5]=7;
erf[6]=3;
erf[7]=3;
erf[8]=4;
erf[9]=1;
erf[10]=5;
erf[11]=7;
erf[12]=6;
erf[13]=4;
erf[14]=4;
alt[0]=2977;
alt[1]=-1;
alt[2]=-1;
alt[3]=3217;
alt[4]=4052;
alt[5]=1669;
alt[6]=3827;
alt[7]=4280;
alt[8]=1853;
alt[9]=1289;
alt[10]=1807;
alt[11]=3578;
alt[12]=3805;
alt[13]=4838;
alt[14]=2443;
alt[15]=1686;
alt[16]=-1;
berf[0]=2977;
berf[1]=1529;
berf[2]=-1;
berf[3]=3420;
berf[4]=2829;
berf[5]=2984;
berf[6]=4035;
berf[7]=2873;
berf[8]=-1;
berf[9]=3479;
berf[10]=2032;
berf[11]=4614;
berf[12]=2082;
berf[13]=2474;
berf[14]=-1;
berf[15]=-1;
berf[16]=-1;
geld[0]=2534;
geld[1]=2626;
geld[2]=3307;
geld[3]=3314;
geld[4]=749;
geld[7]=3526;
geld[8]=1121;

function retaus(i){
if(i>101){
i=i-102;
if(geld[i]==-1)
return("-");
else
return(geld[i]);
}
if(i==100){
if(data[1]!=-1 && data[1].length!=0){
w=parseInt(data[1]);
g1=-1;
g2=-1;
g3=-1;
g4=-1;
g5=-1;
g2_=-1;
g3_=-1;
g4_=-1;
g5_=-1;
g1=alt[0];
if(w<20) {g2=alt[1]; g2_="<20";}
if(w>60) {g2=alt[2]; g2_=">60";}
if(w>=20 && w<40) {g3=alt[3]; g3_="20 to 40";}
if(w>=40 && w<60) {g3=alt[4]; g3_="40 to 60";}
if(w>=20 && w<30) {g4=alt[5]; g4_="20 to 30";}
if(w>=30 && w<40) {g4=alt[6]; g4_="30 to 40";}
if(w>=40 && w<50) {g4=alt[7]; g4_="40 to 50";}
if(w>=50 && w<60) {g4=alt[8]; g4_="50 to 60";}
if(w>=20 && w<25) {g5=alt[9];  g5_="20 to 25";}
if(w>=25 && w<30) {g5=alt[10]; g5_="25 to 30";}
if(w>=30 && w<35) {g5=alt[11]; g5_="30 to 35";}
if(w>=35 && w<40) {g5=alt[12]; g5_="35 to 40";}
if(w>=40 && w<45) {g5=alt[13]; g5_="40 to 45";}
if(w>=45 && w<50) {g5=alt[14]; g5_="45 to 50";}
if(w>=50 && w<55) {g5=alt[15]; g5_="50 to 55";}
if(w>=55 && w<60) {g5=alt[16]; g5_="55 to 60";}
if(g5>-1 || g4>-1 || g3>-1 || g2>-1)
out="The average income for someone in your age group ";
else
return("No average income is currently known for your age group. The average income for the entire sample of people is " + g1 + " Euro.");
if(g5>-1)
return(out + "(" + g5_ +" years) is " + g5 + " Euro.");
if(g4>-1)
return(out + "(" + g4_ +" years) is " + g4 + " Euro.");
if(g3>-1)
return(out + "(" + g3_ +" years) ist " + g3 + " Euro.");
if(g2>-1)
return(out + "(" + g2_ +" years) is " + g2 + " Euro.");}
return("No average income is currently known for your age group. The average income for the entire sample of people is " + alt[0] + " Euro.");}
if(i==101){
if(data[68]!=-1 && data[68].length!=0){
w=parseInt(data[68]);
g1=-1;
g2=-1;
g3=-1;
g4=-1;
g5=-1;
g2_=-1;
g3_=-1;
g4_=-1;
g5_=-1;
g1=berf[0];
if(w<5) {g2=berf[1]; g2_="<5";}
if(w>45) {g2=berf[2]; g2_=">45";}
if(w>=5 && w<25) {g3=berf[3];  g3_="5 to 25";}
if(w>=25 && w<45) {g3=berf[4]; g3_="25 to 45";}
if(w>=5 && w<15) {g4=berf[5];  g4_="5 to 15";}
if(w>=15 && w<25) {g4=berf[6]; g4_="15 to 25";}
if(w>=25 && w<35) {g4=berf[7]; g4_="25 to 35";}
if(w>=35 && w<45) {g4=berf[8]; g4_="35 to 45";}
if(w>=5 && w<10) {g5=berf[9];  g5_="5 to 10";}
if(w>=10 && w<15) {g5=berf[10]; g5_="10 to 15";}
if(w>=15 && w<20) {g5=berf[11]; g5_="15 to 20";}
if(w>=20 && w<25) {g5=berf[12]; g5_="20 to 25";}
if(w>=25 && w<30) {g5=berf[13]; g5_="25 to 30";}
if(w>=30 && w<35) {g5=berf[14]; g5_="30 to 35";}
if(w>=35 && w<40) {g5=berf[15]; g5_="35 to 40";}
if(w>=40 && w<45) {g5=berf[16]; g5_="40 to 45";}
if(g5>-1 || g4>-1 || g3>-1 || g2>-1)
out="The average income for participants with similar work experience to you ";
else
return("No average income is currently known for someone with your amount of work experience.  The average income for the entire sample of people is " + g1 + " Euro.");
if(g5>-1)
return(out + "(" + g5_ +" years) is " + g5 + " Euro.");
if(g4>-1)
return(out + "(" + g4_ +" years) is " + g4 + " Euro.");
if(g3>-1)
return(out + "(" + g3_ +" years) is " + g3 + " Euro.");
if(g2>-1)
return(out + "(" + g2_ +" years) is " + g2 + " Euro.");
}
return("No average income is currently known for someone with your amount of work experience.  The average income for the entire sample of people is " + berf[0] + " Euro.");
}
if(i==2){
if(aus[i]>55)
return("A clear majority of the participants are female. "  + aus[i]);
else
return(aus[i]);
}
if(i==6){
if(aus[i]==0)
return("live alone");
if(aus[i]==1)
return("live together with a partner");
if(aus[i]==2)
return("have a partner but live separately");
}
if(i==12){
return(lables1[aus[i]]);}
if(i==14){
return(ver1l[aus[i]]);}
if(i==17){
return(lables2[aus[i]]);}
if(i==19){
if(aus[21]>20)
return("Quite a lot ");
else
return("Some ");}
if(i==20){
return(lables3[aus[i]]);}
if(i==22){
return(lables4[aus[i]]);}
if(i==24){
return(ver3l[aus[i]]);}
if(i==26){
if(aus[i+1]<5)
return("have unfortunately not proved very popular among participants");
if(aus[i+1]>=5)
return("have been quite popular among participants");}
if(i==28){
if(data[35]==1 || data[35]==-1)
return("You should think about whether you could improve your career by taking part in formal adult education in management studies.");
else
return("")}
if(i==29){
if(aus[i+1]<10)
return("Few");
if(aus[i+1]<50)
return("Some");
if(aus[i+1]>=50)
return("Many");}
if(i==31){
if(aus[i+1]<aus[i-1])
return("is less popular");
if(aus[i+1]>aus[i-1])
return("is more popular");
if(aus[i+1]==aus[i-1])
return("is equally as popular");}
if(i==33){
if(aus[i+1]>20)
return("relatively popular");
else
return("quite popular");}
if(i==38){
if(aus[i+1]>20)
return("Quite a lot of the participants questioned have no work experience or have just entered the world of work.");
if(aus[i+1]>10)
return("Some of the participants questioned have no work experience or have just entered the world of work.");
if(aus[i+1]>2)
return("Only a few of the participants questioned have no work experience or have just entered the world of work.");
return("Hardly any of the participants questioned have no work experience at all.");}
if(i==44 || i==46){
return(lables5[aus[i]]);}
if(i==73){
if(aus[i+1]<10)
return("");
return("");}
if(i==75){
return(lables6[aus[i]]);}
if(i==77 || i==79){
return(lables7[aus[i]]);}
if(i==81){
p=-1;
if(data[165]!=-1) p="taking on a new key role at work";
if(data[166]!=-1) p="landing a big project";
if(data[172]!=-1) p="your scientific publication";
if(data[173]!=-1) p="your international publication";
if(data[170]!=-1) p="your patent application";
if(data[171]!=-1) p="your award/research prize";
if(data[169]!=-1) p="your PhD";
if(data[168]!=-1) p="your postdoctoral lecture qualification";
if(data[167]!=-1) p="your professorship";
if(p!=-1)
return("Firstly, we would like to congratulate you on " + p +"!")
else
return("");}
if(i==83 || i==85){
return(lables8[aus[i]]);}
return(aus[i]);}

function vergleich(i){
if(i==1){
max=-1;
was=-1;
for(z=0; z<=10; z++){
m=-1;
if(data[z+10]!=-1)
m=ver1[z];
if(m>max)
{
max=m;
was=z;
}}
if(max>-1){
return(max + "% have the same qualification as you (" + ver1l[was] + ")");
}
else
return("Education");
}
if(i==2){
max=-1;
was=-1;
for(z=0; z<=11; z++){
m=-1;
if(data[z+21]!=-1)
m=ver2[z];
if(m>max){
max=m;
was=z;
}}
if(max>-1){
return(max + "% have the same academic qualification as you (" + ver2l[was] + ")");
}
else
return("Academic Qualification");
}
if(i==3){
max=-1;
was=-1;
for(z=0; z<=6; z++){
m=-1;
if(data[z+36]!=-1)
m=ver3[z];
if(m>max){
max=m;
was=z;
}}
if(max>-1){
return(max + "%  are in the same academic field as you (" + ver3l[was] + ")");
}
else
return("Academic field");
}
if(i==4){
if(data[68]!=-1 && data[68].length!=0 && parseInt(data[68])<20)
{
w=parseInt(data[68]);
if(w!=0 && w<20)
return(ver4[w-1] + "%  have a lower level of work experience than you.");
}
return("Work experience");
}
if(i==5){
max=-1;
was=-1;
m=-1;
if(data[71]!=-1) m=ver5[0];
if(m>max){
max=m;
was=0;
}
if(data[72]==1) m=ver5[1];
if(m>max){
max=m;
was=1;
}
if(data[72]==2) m=ver5[2];
if(m>max){
max=m;
was=2;
}
if(data[73]!=-1) m=ver5[3];
if(m>max){
max=m;
was=3;
}
if(data[74]!=-1) m=ver5[4];
if(m>max){
max=m;
was=4;
}
if(max>-1){
return(max + "% have the same type of employment contract as you (" + ver5l[was] + ")");
}
else
return("Type of employment");
}
if(i==6){
w=data[79];
if(w!=-1){
if(w==4) w2=aus[53];
if(w==3) w2=aus[53]+aus[52];
if(w==2) w2=aus[53]+aus[52]+aus[51];
if(w==1) w2=aus[53]+aus[52]+aus[51]+aus[50];
if(w==0) w2=aus[53]+aus[52]+aus[51]+aus[50]+aus[49];
return(w2 + "%  work in a lower level job than you or in a job at the same level");
}
else
return("Rank at work");
}
if(i==7){
if(data[90]!=-1){
max=aus[54+data[90]];
return(max + "%work in a similar place of work to you (" + ver6l[data[90]] + ")");
}
else
return("Place of work");
}
if(i==8){
max=-1;
was=-1;
for(z=0; z<=4; z++){
m=-1;
if(data[z+94]!=-1)
m=aus[61+z];
if(m>max){
max=m;
was=z;
}}
if(max>-1){
return(max + "% became self-employed for the same reasons as you (" + ver7l[was] + ")");
}
else
return("Setting up a business");
}
if(i==9){
w=0;
for(p=101; p<131; p++)
if(data[p]!=-1)w++;
return((100-ver8[w]) + "% had been affected by more breaks from work and changes to their work than you");
}}