
/***************************************************************/

friends = new Array(numFriends);
friends[0] = "<a target=\"_blank\" href=\"http://www.salt.co.za\">Marina Sea Salt</a>";
//friends[1] = "Friend 2";
//friends[2] = "Friend 3";
//friends[3] = "Friend 4";
//friends[4] = "Friend 5";
//friends[5] = "Friend 6";
//friends[6] = "Friend 7";
//friends[7] = "Friend 8";
//friends[8] = "Friend 9";
//friends[9] = "Friend 10";

var numFriends = friends.length; //hoeveel friende sover??
/***************************************************************/

/*do{
	do{
		var een = Math.random();
	}while(een.toString().charAt(2)>friends.length-1)

	do{
		var twee = Math.random();
	}while(twee.toString().charAt(2)>friends.length-1)

	do{
		var drie = Math.random();
	}while(drie.toString().charAt(2)>friends.length-1)

	do{
		var vier = Math.random();
	}while(vier.toString().charAt(2)>friends.length-1)

}while((een.toString().charAt(2)==twee.toString().charAt(2))||(twee.toString().charAt(2)==drie.toString().charAt(2))||(een.toString().charAt(2)==drie.toString().charAt(2))||(drie.toString().charAt(2)==vier.toString().charAt(2))||(vier.toString().charAt(2)==twee.toString().charAt(2))||(vier.toString().charAt(2)==een.toString().charAt(2)))
*/
/***************************************************************/
/*
var f1 = een.toString().charAt(2)
var f2 = twee.toString().charAt(2)
var f3 = drie.toString().charAt(2)
var f4 = vier.toString().charAt(2)

document.write("<img src=\"images/dot.gif\" height=\"1\" width=\"3\">" + friends[f1]+"<br>"); //prints friend name
document.write("<img src=\"images/dot.gif\" height=\"1\" width=\"3\">" + friends[f2]+"<br>"); //prints friend name
document.write("<img src=\"images/dot.gif\" height=\"1\" width=\"3\">" + friends[f3]+"<br>"); //prints friend name
document.write("<img src=\"images/dot.gif\" height=\"1\" width=\"3\">" + friends[f4]+"<br>"); //prints friend name
*/
document.write("<img src=\"images/dot.gif\" height=\"1\" width=\"3\">" + friends[0]+"<br>"); //prints friend name
