<!-- Begin

//	Local= 0000-0999
//	Faraway= 1000-3999
//	Dead= 4000-5999

/*
url=document.URL
//document.write("gjhgjff");
SivStatusTxt= new Array('Single','Dating','Married');
PersGrade= new Array('Extremely','Very','Quite','Rather','Sort of','','Sort of','Rather','Quite','Very','Extremely');
PersNeatTxt= new Array('Slobby','Slobby','Slobby','Slobby','Slobby','','Neat','Neat','Neat','Neat','Neat');
PersOutgTxt= new Array('Shy','Shy','Shy','Shy','Shy','','People person','People person','People person','People person','People person');
PersActiTxt= new Array('Lazy','Lazy','Lazy','Lazy','Lazy','','Energic','Energic','Energic','Energic','Energic');
PersPlayTxt= new Array('Serious','Serious','Serious','Serious','Serious','','Fun loving','Fun loving','Fun loving','Fun loving','Fun loving');
PersNiceTxt= new Array('Mean','Mean','Mean','Mean','Mean','','Compassionate','Compassionate','Compassionate','Compassionate','Compassionate');
SkillGrade= new Array('','','Hardly','Some','Some','','','','','','');
AstroTxt= new Array('','Aries','Taurus','Gemini','Cancer','Lion','Virgo','Libra','Scorpio','Sagittarius','Capricorn','Aquarius','Pisces');
AstroElement= new Array('','Energic','Calm','Intellectual','Emotional','Energic','Calm','Intellectual','Emotional','Energic','Calm','Intellectual','Emotional');
JobTrackTxt= new Array('Unemployed','Politics','Medicine','Business','Athletic','Criminal','Military','Slacker','Law Enforcement','Culinary','Science','Artist','Natural Science','Paranormal','Show Business','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','Homebusiness','Business','Entertainment','Law Enforcement','Life of Crime','Medicine','Military','Politics','Pro Athlete','Science','Xtreme','Musician','Slacker','Paranormal','Journalism','Hacker','Fashion','Education','Animal Care','Culinary','Circus');
InterestTxtTS2= new Array('Politics','Money','Environment','Crime','Entertainment','Culture','Food','Health','Fashion','Sports','Paranormal','Travel','Work','Weather','Animals','School','Toys','Sci-Fi');
InterestTxtAdult= new Array('Travel','Money','Politics','60īs','Weather','Sports','Music','Outdoors','Exercise','Food','Parties','Style','Hollywood','Technology','Romance');
InterestTxtKids= new Array('Toys','Aliens','Pets','School','Weather','Sports','Music','Outdoors');
AspirationTxt= new Array('Growing up','Family','Fortune','Romance','Popularity','Knowledge','','','','Pleasure');
NeighName= new Array('001-Sim City','221-Simmerville','222-Betterville','223-Summerset','224-Slemmon Heights','225-Windmill Heights','226-Testville','227-Goodhill','002-Sim State University','231-Lobsterville','232-Bloomdale','233-Frostydale','234-Otherville','235-Bluedale','236-Golden Pond','237-Northdale','241-Mountain Falls','242-Rosewood','243-Sunville','244-Hope Cave','245-Sunny Heights','246-Muggerville','247-Waterwood','248-Gothan Forest','251-Springdale','251-Bestonville','251-Rusterwood','251-Hitch Heights','251-Frogdale');
Street= new Array('00-Undefined address','01-Old Simmer Lane','02-Mervil Farm','03-Simmer Heights','04-Edmund Lane','05-Lucie Lane','06-Cabbage Road','07-Dragon View','08-Hunter Road','09-New Simmer Lane','10-Avenue de Lobos','11-Bendic Lane','12-Test Lane','13-Sim State University','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','50-(TS1)','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','91-Custer Boulevard','92-Mendoza Lane','93-King Street','94-Greaves Avenue','','','','','');

LocalSimday=43;

var tell=0
Personnr= new Array();
Name1= new Array();
Name2= new Array();
Name3= new Array();
Age= new Array();
Job= new Array();
SkillCook= new Array();
SkillMech= new Array();
SkillChar= new Array();
SkillBody= new Array();
SkillLogi= new Array();
SkillCrea= new Array();
SkillClea= new Array();
School= new Array();
Kids= new Array();
Partner= new Array();
Address= new Array();
Hello= new Array();
Bye= new Array();
Laughter= new Array();
Anger= new Array();
Int= new Array();
Astro= new Array();
PersNeat= new Array();
PersOutg= new Array();
PersActi= new Array();
PersPlay= new Array();
PersNice= new Array();
Parents= new Array();
Expression= new Array();
History= new Array();
Aspiration= new Array();
Dead= new Array();
*/

function print_stats_oldest(){
rank= new Array("00","00","00","00","99","99","99");
	for(tell=0;tell<Personnr.length;tell+=1){
		if(Personnr[tell].slice(0,1)<9){
		Alder="000"+((LocalSimday/1)-(Age[tell]/1));
		Alder=Alder.slice(Alder.length-2,Alder.length);
		rank[0]=Alder+Personnr[tell]+Address[tell].slice(4,9)+Name1[tell]+" "+Name3[tell];
//document.write(rank[6]+'<br>');	
		if(rank[0].slice(0,2)/1>rank[3].slice(0,2)/1){	rank[3]=rank[0];	}
		if(rank[0].slice(0,2)/1>rank[2].slice(0,2)/1){	rank[3]=rank[2];	rank[2]=rank[0];	}
		if(rank[0].slice(0,2)/1>rank[1].slice(0,2)/1){	rank[2]=rank[1];	rank[1]=rank[0];	}
		if(rank[0].slice(0,2)/1<rank[4].slice(0,2)/1){	rank[4]=rank[0]	}
		if(rank[0].slice(0,2)/1<rank[5].slice(0,2)/1){	rank[4]=rank[5];	rank[5]=rank[0];	}
		if(rank[0].slice(0,2)/1<rank[6].slice(0,2)/1){	rank[5]=rank[6];	rank[6]=rank[0];	}
		}
		}
	for(skrivtell=clue;skrivtell<clue+3;skrivtell+=1){
//document.write(rank[skrivtell]+" ");
		document.write('<table width=100%><tr><td><img border=1 width=50 height=50 hspace=3 src=\"../../../001-famtree/portraits/'+rank[skrivtell].slice(2,7)+'.jpg\"></td>');
		document.write('<td valign=\"left\"><font size=2 face=arial>'+rank[skrivtell].slice(12,rank[skrivtell].length)+" ("+rank[skrivtell].slice(0,2)/1+")"+'</font></td></tr></table>');
		}
	}

function print_stats_networth(){
rank= new Array("000","000","000","000","999","999","999");
for(tell=0;tell<Personnr.length;tell+=1){
	if((Address[tell].slice(10,15)=="01-01")&&(Personnr[tell]!="0000x")){
		if(Personnr[tell].slice(0,1)<9){
		Alder="000"+((LocalSimday/1)-(Age[tell]/1));
		Alder=Alder.slice(Alder.length-2,Alder.length);
		rank[0]=Address[tell].slice(17,20)+Alder+Personnr[tell]+Address[tell].slice(4,9)+Name1[tell]+" "+Name3[tell];
//document.write(rank[6]+'<br>');	
		if(rank[0].slice(0,3)/1>rank[3].slice(0,3)/1){	rank[3]=rank[0];	}
		if(rank[0].slice(0,3)/1>rank[2].slice(0,3)/1){	rank[3]=rank[2];	rank[2]=rank[0];	}
		if(rank[0].slice(0,3)/1>rank[1].slice(0,3)/1){	rank[2]=rank[1];	rank[1]=rank[0];	}
		if(rank[0].slice(0,3)/1<rank[4].slice(0,3)/1){	rank[4]=rank[0]	}
		if(rank[0].slice(0,3)/1<rank[5].slice(0,3)/1){	rank[4]=rank[5];	rank[5]=rank[0];	}
		if(rank[0].slice(0,3)/1<rank[6].slice(0,3)/1){	rank[5]=rank[6];	rank[6]=rank[0];	}
		}
		}
	}
	for(skrivtell=clue;skrivtell<clue+3;skrivtell+=1){
//document.write(rank[skrivtell]+" ");
		document.write('<table width=100%><tr><td><img border=1 align=left width=50 height=50 hspace=3 src=\"../../../001-famtree/portraits/'+rank[skrivtell].slice(5,10)+'.jpg\"></td>');
		document.write('<td><font size=2 face=arial>');
		document.write("§"+rank[skrivtell].slice(0,3)/1+".000");
		document.write('<br>'+rank[skrivtell].slice(15,rank[skrivtell].length)+" ("+rank[skrivtell].slice(3,5)/1+")");
		document.write('</font></td></tr></table>');
		}
	}

function print_stats_score(){
rank= new Array("000","000","000","000","999","999","999");
for(tell=0;tell<Personnr.length;tell+=1){
	if(Personnr[tell].slice(0,1)<9){
	if(((LocalSimday-(Age[tell])/1)>27)&&(Personnr[tell]!="0000x")&&(Job[tell].slice(2,3)!="r")){
		Alder="000"+((LocalSimday/1)-(Age[tell]/1));
		Alder=Alder.slice(Alder.length-2,Alder.length);
		Comscore=((Int[tell].slice(0,2)/1)*(SkillCook[tell]/1+SkillMech[tell]/1+SkillChar[tell]/1+SkillBody[tell]/1+SkillLogi[tell]/1+SkillCrea[tell]/1+SkillClea[tell]/1));
//		if(Job[tell].slice(0,2)!="00"){	Comscore=Comscore*(Job[tell].slice(3,5)/1)	}
		Comscore="000"+Comscore;
//document.write(Comscore+'<br>');
		Comscore=Comscore.slice(Comscore.length-4,Comscore.length);
		rank[0]=Comscore+Alder+Personnr[tell]+Address[tell].slice(4,9)+Name1[tell]+" "+Name3[tell];
		if(rank[0].slice(0,3)/1>rank[3].slice(0,3)/1){	rank[3]=rank[0];	}
		if(rank[0].slice(0,3)/1>rank[2].slice(0,3)/1){	rank[3]=rank[2];	rank[2]=rank[0];	}
		if(rank[0].slice(0,3)/1>rank[1].slice(0,3)/1){	rank[2]=rank[1];	rank[1]=rank[0];	}
		if(rank[0].slice(0,3)/1<rank[4].slice(0,3)/1){	rank[4]=rank[0]	}
		if(rank[0].slice(0,3)/1<rank[5].slice(0,3)/1){	rank[4]=rank[5];	rank[5]=rank[0];	}
		if(rank[0].slice(0,3)/1<rank[6].slice(0,3)/1){	rank[5]=rank[6];	rank[6]=rank[0];	}
		}
	}
	}
	for(skrivtell=clue;skrivtell<clue+3;skrivtell+=1){
//document.write(rank[skrivtell]+" ");
		document.write('<table width=100%><tr><td><img border=1 align=left width=50 height=50 hspace=3 src=\"../../../001-famtree/portraits/'+rank[skrivtell].slice(6,11)+'.jpg\"></td>');
		document.write('<td><font size=2 face=arial>');
		document.write((rank[skrivtell].slice(0,4)/1)+" points");
		document.write('<br>'+rank[skrivtell].slice(16,rank[skrivtell].length)+" ("+rank[skrivtell].slice(4,6)/1+")");
		document.write('</font></td></tr></table>');
		}
	}

function print_stats_private(){
rank= new Array("000","000","000","000","999","999","999");
for(tell=0;tell<Personnr.length;tell+=1){
//document.write(School[tell].slice(2,5));
	if((School[tell].slice(2,5)=="pri")&&(Job[tell]=="00-03")){
		Alder="000"+((LocalSimday/1)-(Age[tell]/1));
		Alder=Alder.slice(Alder.length-2,Alder.length);
		if(School[tell].slice(0,2)=="F "){	Grade="01";	}
		if(School[tell].slice(0,2)=="D-"){	Grade="02";	}
		if(School[tell].slice(0,2)=="D "){	Grade="03";	}
		if(School[tell].slice(0,2)=="D+"){	Grade="04";	}
		if(School[tell].slice(0,2)=="C-"){	Grade="05";	}
		if(School[tell].slice(0,2)=="C "){	Grade="06";	}
		if(School[tell].slice(0,2)=="C+"){	Grade="07";	}
		if(School[tell].slice(0,2)=="B-"){	Grade="08";	}
		if(School[tell].slice(0,2)=="B "){	Grade="09";	}
		if(School[tell].slice(0,2)=="B+"){	Grade="10";	}
		if(School[tell].slice(0,2)=="A-"){	Grade="11";	}
		if(School[tell].slice(0,2)=="A "){	Grade="12";	}
		if(School[tell].slice(0,2)=="A+"){	Grade="13";	}
//document.write(Grade+'<br>');
		rank[0]=Grade+Alder+Personnr[tell]+Address[tell].slice(4,9)+Name1[tell]+" "+Name3[tell];
		if(rank[0].slice(0,2)/1>rank[3].slice(0,2)/1){	rank[3]=rank[0];	}
		if(rank[0].slice(0,2)/1>rank[2].slice(0,2)/1){	rank[3]=rank[2];	rank[2]=rank[0];	}
		if(rank[0].slice(0,2)/1>rank[1].slice(0,2)/1){	rank[2]=rank[1];	rank[1]=rank[0];	}
		if(rank[0].slice(0,2)/1<rank[4].slice(0,2)/1){	rank[4]=rank[0]	}
		if(rank[0].slice(0,2)/1<rank[5].slice(0,2)/1){	rank[4]=rank[5];	rank[5]=rank[0];	}
		if(rank[0].slice(0,2)/1<rank[6].slice(0,2)/1){	rank[5]=rank[6];	rank[6]=rank[0];	}
		}
	}
	for(skrivtell=clue;skrivtell<clue+3;skrivtell+=1){
//document.write(rank[skrivtell]+" ");
		document.write('<table width=100%><tr><td><img border=1 align=left width=50 height=50 hspace=3 src=\"../../../001-famtree/portraits/'+rank[skrivtell].slice(4,9)+'.jpg\"></td>');
		document.write('<td><font size=2 face=arial>');
		if(rank[skrivtell].slice(0,2)=="01"){	Grade="F";	}
		if(rank[skrivtell].slice(0,2)=="02"){	Grade="D-";	}
		if(rank[skrivtell].slice(0,2)=="03"){	Grade="D";	}
		if(rank[skrivtell].slice(0,2)=="04"){	Grade="D+";	}
		if(rank[skrivtell].slice(0,2)=="05"){	Grade="C-";	}
		if(rank[skrivtell].slice(0,2)=="06"){	Grade="C";	}
		if(rank[skrivtell].slice(0,2)=="07"){	Grade="C+";	}
		if(rank[skrivtell].slice(0,2)=="08"){	Grade="B-";	}
		if(rank[skrivtell].slice(0,2)=="09"){	Grade="B";	}
		if(rank[skrivtell].slice(0,2)=="10"){	Grade="B+";	}
		if(rank[skrivtell].slice(0,2)=="11"){	Grade="A-";	}
		if(rank[skrivtell].slice(0,2)=="12"){	Grade="A";	}
		if(rank[skrivtell].slice(0,2)=="13"){	Grade="A+";	}
		document.write(Grade);
		document.write('<br>'+rank[skrivtell].slice(14,rank[skrivtell].length)+" ("+rank[skrivtell].slice(2,4)/1+")");
		document.write('</font></td></tr></table>');
		}
	}

function print_stats_public(){
rank= new Array("000","000","000","000","999","999","999");
for(tell=0;tell<Personnr.length;tell+=1){
	if((School[tell].slice(2,5)=="pub")&&(Job[tell]=="00-03")){
		Alder="000"+((LocalSimday/1)-(Age[tell]/1));
		Alder=Alder.slice(Alder.length-2,Alder.length);
		if(School[tell].slice(0,2)=="F "){	Grade="01";	}
		if(School[tell].slice(0,2)=="D-"){	Grade="02";	}
		if(School[tell].slice(0,2)=="D "){	Grade="03";	}
		if(School[tell].slice(0,2)=="D+"){	Grade="04";	}
		if(School[tell].slice(0,2)=="C-"){	Grade="05";	}
		if(School[tell].slice(0,2)=="C "){	Grade="06";	}
		if(School[tell].slice(0,2)=="C+"){	Grade="07";	}
		if(School[tell].slice(0,2)=="B-"){	Grade="08";	}
		if(School[tell].slice(0,2)=="B "){	Grade="09";	}
		if(School[tell].slice(0,2)=="B+"){	Grade="10";	}
		if(School[tell].slice(0,2)=="A-"){	Grade="11";	}
		if(School[tell].slice(0,2)=="A "){	Grade="12";	}
		if(School[tell].slice(0,2)=="A+"){	Grade="13";	}
//document.write(Grade+'<br>');
		rank[0]=Grade+Alder+Personnr[tell]+Address[tell].slice(4,9)+Name1[tell]+" "+Name3[tell];
		if(rank[0].slice(0,2)/1>rank[3].slice(0,2)/1){	rank[3]=rank[0];	}
		if(rank[0].slice(0,2)/1>rank[2].slice(0,2)/1){	rank[3]=rank[2];	rank[2]=rank[0];	}
		if(rank[0].slice(0,2)/1>rank[1].slice(0,2)/1){	rank[2]=rank[1];	rank[1]=rank[0];	}
		if(rank[0].slice(0,2)/1<rank[4].slice(0,2)/1){	rank[4]=rank[0]	}
		if(rank[0].slice(0,2)/1<rank[5].slice(0,2)/1){	rank[4]=rank[5];	rank[5]=rank[0];	}
		if(rank[0].slice(0,2)/1<rank[6].slice(0,2)/1){	rank[5]=rank[6];	rank[6]=rank[0];	}
		}
	}
	for(skrivtell=clue;skrivtell<clue+3;skrivtell+=1){
//document.write(rank[skrivtell]+" ");
		document.write('<table width=100%><tr><td><img border=1 align=left width=50 height=50 hspace=3 src=\"../../../001-famtree/portraits/'+rank[skrivtell].slice(4,9)+'.jpg\"></td>');
		document.write('<td><font size=2 face=arial>');
		if(rank[skrivtell].slice(0,2)=="01"){	Grade="F";	}
		if(rank[skrivtell].slice(0,2)=="02"){	Grade="D-";	}
		if(rank[skrivtell].slice(0,2)=="03"){	Grade="D";	}
		if(rank[skrivtell].slice(0,2)=="04"){	Grade="D+";	}
		if(rank[skrivtell].slice(0,2)=="05"){	Grade="C-";	}
		if(rank[skrivtell].slice(0,2)=="06"){	Grade="C";	}
		if(rank[skrivtell].slice(0,2)=="07"){	Grade="C+";	}
		if(rank[skrivtell].slice(0,2)=="08"){	Grade="B-";	}
		if(rank[skrivtell].slice(0,2)=="09"){	Grade="B";	}
		if(rank[skrivtell].slice(0,2)=="10"){	Grade="B+";	}
		if(rank[skrivtell].slice(0,2)=="11"){	Grade="A-";	}
		if(rank[skrivtell].slice(0,2)=="12"){	Grade="A";	}
		if(rank[skrivtell].slice(0,2)=="13"){	Grade="A+";	}
		document.write(Grade);
		document.write('<br>'+rank[skrivtell].slice(14,rank[skrivtell].length)+" ("+rank[skrivtell].slice(2,4)/1+")");
		document.write('</font></td></tr></table>');
		}
	}

function print_stats_skills(){
rank= new Array("000","000","000","000","999","999","999");
for(tell=0;tell<Personnr.length;tell+=1){
	if(((LocalSimday-(Age[tell])/1)>6)&&(Personnr[tell]!="0000x")){
		if(Personnr[tell].slice(0,1)<9){
		Alder="000"+((LocalSimday/1)-(Age[tell]/1));
		Alder=Alder.slice(Alder.length-2,Alder.length);
		Sumskills="0"+Math.round((SkillCook[tell]/1+SkillMech[tell]/1+SkillChar[tell]/1+SkillBody[tell]/1+SkillLogi[tell]/1+SkillCrea[tell]/1+SkillClea[tell]/1)*10/Alder);
//document.write(Sumskills+'<br>');	
		Sumskills=Sumskills.slice(Sumskills.length-2,Sumskills.length);
		rank[0]=Sumskills+Alder+Personnr[tell]+Address[tell].slice(4,9)+Name1[tell]+" "+Name3[tell];
		if(rank[0].slice(0,2)/1>rank[3].slice(0,2)/1){	rank[3]=rank[0];	}
		if(rank[0].slice(0,2)/1>rank[2].slice(0,2)/1){	rank[3]=rank[2];	rank[2]=rank[0];	}
		if(rank[0].slice(0,2)/1>rank[1].slice(0,2)/1){	rank[2]=rank[1];	rank[1]=rank[0];	}
		if(rank[0].slice(0,2)/1<rank[4].slice(0,2)/1){	rank[4]=rank[0]	}
		if(rank[0].slice(0,2)/1<rank[5].slice(0,2)/1){	rank[4]=rank[5];	rank[5]=rank[0];	}
		if(rank[0].slice(0,2)/1<rank[6].slice(0,2)/1){	rank[5]=rank[6];	rank[6]=rank[0];	}
		}
		}
	}
	for(skrivtell=clue;skrivtell<clue+3;skrivtell+=1){
//document.write(rank[skrivtell]+" ");
		document.write('<table width=100%><tr><td><img border=1 align=left width=50 height=50 hspace=3 src=\"../../../001-famtree/portraits/'+rank[skrivtell].slice(4,9)+'.jpg\"></td>');
		document.write('<td><font size=2 face=arial>');
//		document.write(rank[skrivtell].slice(0,2)/1*rank[skrivtell].slice(2,5)+" skill points");
		document.write((rank[skrivtell].slice(0,2)/1)/10+" skills/age");
		document.write('<br>'+rank[skrivtell].slice(14,rank[skrivtell].length)+" ("+rank[skrivtell].slice(2,4)/1+")");
		document.write('</font></td></tr></table>');
		}
	}

function print_stats_astro(){
rank= new Array(0,0,0,0,0,0,0,0,0,0,0,0,0);
for(tell=0;tell<Personnr.length;tell+=1){
	if(Personnr[tell].slice(0,1)<9){
	if(((LocalSimday-(Age[tell])/1)>5)&&(Personnr[tell]!="0000x")){
//document.write(rank[Astro[tell/1]]+" ");
		rank[Astro[tell]/1]+=1;
		}
	}
	}
	document.write('<table border=0 width=100%><tr><td>');
	for(skrivtell=1;skrivtell<13;skrivtell+=1){
		document.write('<tr><td>');
		document.write(AstroTxt[skrivtell]+'</td>');
		document.write('<td>'+rank[skrivtell]+'</td><td>');
		widde=(rank[skrivtell]*5);
		document.write('<left><img height=10 width='+widde+' src=\"../../../graphic/03bg-indigo-medio.jpg\"></left>');
		document.write('</td></tr>');
		}
		document.write('</table>');
	}

function print_stats_aspiration(){
rank= new Array(0,0,0,0,0,0,0,0,0,0);
for(tell=0;tell<Personnr.length;tell+=1){
	if(Personnr[tell].slice(0,1)<9){
	if(((LocalSimday-(Age[tell])/1)>5)&&(Personnr[tell]!="0000x")){
//document.write(rank[Astro[tell/1]]+" ");
		rank[Aspiration[tell]/1]+=1;
		}
	}
	}
	document.write('<table border=0 width=100%><tr><td>');
	for(skrivtell=1;skrivtell<6;skrivtell+=1){
		document.write('<tr><td>');
		document.write(AspirationTxt[skrivtell]+'</td>');
		document.write('<td>'+rank[skrivtell]+'</td><td>');
		widde=(rank[skrivtell]*5);
		document.write('<left><img height=10 width='+widde+' src=\"../../../graphic/03bg-green-medio.jpg\"></left>');
		document.write('</td></tr>');
		}
	for(skrivtell=9;skrivtell<10;skrivtell+=1){
		document.write('<tr><td>');
		document.write(AspirationTxt[skrivtell]+'</td>');
		document.write('<td>'+rank[skrivtell]+'</td><td>');
		widde=(rank[skrivtell]*5);
		document.write('<left><img height=10 width='+widde+' src=\"../../../graphic/03bg-green-medio.jpg\"></left>');
		document.write('</td></tr>');
		}
	document.write('</table>');
	}

function print_stats_career(){
rank= new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
for(tell=0;tell<Personnr.length;tell+=1){
	if(Personnr[tell].slice(0,1)<9){
	if(((LocalSimday-(Age[tell])/1)>28)&&(Personnr[tell]!="0000x")){
//document.write(rank[Job[tell].slice(0,2)/1]+" ");
		rank[(Job[tell].slice(0,2))/1]+=1;
		}
	}
	}
	document.write('<table border=0 width=100%><tr><td>');
	for(skrivtell=1;skrivtell<21;skrivtell+=1){
		document.write('<tr><td>');
		document.write(JobTrackTxt[skrivtell]+'</td>');
		document.write('<td>'+rank[skrivtell]+'</td><td>');
		widde=(rank[skrivtell]*5);
		document.write('<left><img height=10 width='+widde+' src=\"../../../graphic/03bg-blue-medio.jpg\"></left>');
		document.write('</td></tr>');
		}
		document.write('</table>');
	}

function print_stats_interests(){
rank= new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
for(tell=0;tell<Personnr.length;tell+=1){
	if(Personnr[tell].slice(0,1)<9){
	if(((LocalSimday-(Age[tell])/1)>28)&&(Personnr[tell]!="0000x")){
//document.write(rank[nytell]+" ");
		rank[0]+=Int[tell].slice(0,2)/1;
		rank[1]+=Int[tell].slice(2,4)/1;
		rank[2]+=Int[tell].slice(4,6)/1;
		rank[3]+=Int[tell].slice(6,8)/1;
		rank[4]+=Int[tell].slice(8,10)/1;
		rank[5]+=Int[tell].slice(10,12)/1;
		rank[6]+=Int[tell].slice(12,14)/1;
		rank[7]+=Int[tell].slice(14,16)/1;
		rank[8]+=Int[tell].slice(16,18)/1;
		rank[9]+=Int[tell].slice(18,20)/1;
		rank[10]+=Int[tell].slice(20,22)/1;
		rank[11]+=Int[tell].slice(22,24)/1;
		rank[12]+=Int[tell].slice(24,26)/1;
		rank[13]+=Int[tell].slice(26,28)/1;
		rank[14]+=Int[tell].slice(28,30)/1;
		rank[15]+=Int[tell].slice(30,32)/1;
		rank[16]+=Int[tell].slice(32,34)/1;
		rank[17]+=Int[tell].slice(34,36)/1;
		}
	}
	}
	document.write('<table border=0 width=100%><tr><td>');
	for(skrivtell=0;skrivtell<18;skrivtell+=1){
		document.write('<tr><td>');
		document.write(InterestTxtTS2[skrivtell]+'</td>');
		document.write('<td>'+Math.round(rank[skrivtell])+'</td><td>');
		widde=(rank[skrivtell]/10);
		document.write('<left><img height=10 width='+widde+' src=\"../../../graphic/03bg-blue-medio.jpg\"></left>');
		document.write('</td></tr>');
		}
		document.write('</table>');
	}

// End -->

