<!-- Begin

function listupdates_all(){
tell1=0
PreviousName="";
PreviousName1="";
PreviousName2="";
Dagsdato=0;
Alder=0;

//document.write("haha");

ListeOppdatSort= new Array

//document.write(SUNID.length);
for (tellalle=0;tellalle<SUNID.length;tellalle+=1){
	ListeOppdatSort[tellalle]= SUNDatoUp[tellalle];
	}

ListeOppdatSort.sort();
ListeOppdatSort.reverse();

//document.write('<p>'+ListeOppdatSort);

PrintedHood=0

			// Beregn dager siden 1.1.2000
Dagsdato=((TodayDate.slice(0,4)/1)-2001)*365;
Dagsdato+=(TodayDate.slice(4,6)/1)*30;
Dagsdato+=(TodayDate.slice(6,8)/1);
//document.write(TodayDate.slice(4,6));


document.write('<table>');
for (telldetalj=0;telldetalj<SUNID.length;telldetalj+=1){
	for (tellalle=0;tellalle<SUNID.length;tellalle+=1){
		if ((SUNDatoUp[tellalle]==ListeOppdatSort[telldetalj])&&(SUNName[tellalle]!=PreviousName)&&(SUNName[tellalle]!=PreviousName1)&&(SUNName[tellalle]!=PreviousName2)){
			//document.write(PreviousName+", "+SUNName[tellalle]);
			document.write('<tr>');
			Alder=((SUNDatoUp[tellalle].slice(0,4)/1)-2001)*365;
			Alder+=(SUNDatoUp[tellalle].slice(4,6)/1)*30;
			Alder+=(SUNDatoUp[tellalle].slice(6,8)/1);
			NyAlder=Dagsdato-Alder;
			if(NyAlder>-200){   oppdatering="green"	}
			if(NyAlder>90){   oppdatering="yellow"	}
			if(NyAlder>365){   oppdatering="red"	}
			document.write('<td><font color=\"'+oppdatering+'\"><b>'+"*"+'</b></font></td>');

			document.write('<td><font face=arial size=2>'+MonthText[(SUNDatoUp[tellalle].slice(4,6)/1)].slice(0,3)+", "+SUNDatoUp[tellalle].slice(6,8)+": "+'</font></td>');
			document.write('<td><font face=arial size=2><b><a href=\"'+SUNID[tellalle].slice(0,3)+".html"+'\">'+SUNName[tellalle]+'</a></b></font><br><font face=arial size=-2>'+SUNContact[tellalle]+'</font></td>');

			document.write('<td>')
			Existen=""
/*			var position=SUNfacility[tellalle].indexOf("TS1");
			if (position>-1){
				document.write('<img hspace=2 title=\"This is a TS1 hood\" align=center src=\"graphics/ts1-logo.gif\"></b>')
				}

			var position=SUNfacility[tellalle].indexOf("TS2");
			if (position>-1){
				document.write('<img hspace=2 title=\"This is a TS2 hood\" align=center src=\"graphics/ts2-logo.gif\"></b>')
				}
*/
			var position=SUNfacility[tellalle].indexOf("-UV");
			if (position>-1){
				document.write('<img hspace=2 title=\"University\" align=center src=\"graphics/university-logo.gif\"></b>')
				}
			var position=SUNfacility[tellalle].indexOf("-NL");
			if (position>-1){
				document.write('<img hspace=2 title=\"Nightlife\" align=center src=\"graphics/logo-nl.gif\"></b>')
				}
			var position=SUNfacility[tellalle].indexOf("-OFB");
			if (position>-1){
				document.write('<img hspace=2 title=\"Business\" align=center src=\"graphics/logo-ofb.gif\"></b>')
				}
			var position=SUNfacility[tellalle].indexOf("-PET");
			if (position>-1){
				document.write('<img hspace=2 title=\"Pets\" align=center src=\"graphics/logo-pets.gif\"></b>')
				}
			var position=SUNfacility[tellalle].indexOf("-SEA");
			if (position>-1){
				document.write('<img hspace=2 title=\"Seasons\" align=center src=\"graphics/logo-sea.gif\"></b>')
				}
			var position=SUNfacility[tellalle].indexOf("-VAC");
			if (position>-1){
				document.write('<img hspace=2 title=\"Vacations\" align=center src=\"graphics/logo-vac.gif\"></b>')
				}
			var position=SUNfacility[tellalle].indexOf("-FT");
			if (position>-1){
				document.write('<img hspace=2 title=\"Freetime\" align=center src=\"graphics/logo-ft.gif\"></b>')
				}
			var position=SUNfacility[tellalle].indexOf("-AL");
			if (position>-1){
				document.write('<img hspace=2 title=\"Apartment Life\" align=center src=\"graphics/logo-al.gif\"></b>')
				}
				document.write('</td>')
/*
*/


			if(SUNJPG[tellalle].length>2){
				document.write('<td><img hspace=15 width=20 height=15 src=\"http://'+SUNJPG[tellalle]+'\"></td>');
				}
			else{ document.write('<td></td>');	}

			if(SUNURL[tellalle].length>2){
				document.write('<td><font face=\"arial\" size=2><a href=\"http://'+SUNURL[tellalle]+'\" target=\"http://'+SUNURL[tellalle]+'\">'+"Web"+'</a></font></td>');
				}
			else{ document.write('<td></td>');	}

			PrintedHood+=1;
			PreviousName2=PreviousName1;
			PreviousName1=PreviousName;
			PreviousName=SUNName[tellalle];
			if(PrintedHood==1000){ break }
			}
		}
	}
			document.write('</table>');

//document.write('<br><font face=arial size=1>'+"Link to full member list coming soon");

}
// End -->

