// JavaScript Document

function placeImages() {

        var rnd1 = Math.floor(Math.random()*14) + 1;
        var rnd2 = Math.floor(Math.random()*14) + 1;
		var rnd3 = Math.floor(Math.random()*14) + 1;

        while(rnd2 == rnd1)	{
		rnd2 = Math.floor(Math.random()*14) + 1;
		}
	
		while(rnd3 == rnd2 || rnd3 == rnd1) {
		rnd3 = Math.floor(Math.random()*14) + 1;
		}

        document.rndImg1.src = "images/"
+ rnd1 + ".jpg";
        document.rndImg2.src = "images/"
+ rnd2 + ".jpg";
		document.rndImg3.src = "images/"
+ rnd3 + ".jpg";
   }

/* This is the original code
function placeImages() {

        var rnd1 = Math.floor(Math.random()*14) + 1;
        var rnd2 = Math.floor(Math.random()*14) + 1;
		var rnd3 = Math.floor(Math.random()*14) + 1;
		var rnd4 = Math.floor(Math.random()*14) + 1;

        while (rnd1 == rnd2) {
                rnd2 = Math.floor(Math.random()*14) + 1;
        };

        document.rndImg1.src = "http://abel.imag.gwu.edu/~devel/new_employee_site/images/"
+ rnd1 + ".jpg";
        document.rndImg2.src = "http://abel.imag.gwu.edu/~devel/new_employee_site/images/"
+ rnd2 + ".jpg";
		document.rndImg3.src = "http://abel.imag.gwu.edu/~devel/new_employee_site/images/"
+ rnd3 + ".jpg";
		document.rndImg4.src = "http://abel.imag.gwu.edu/~devel/new_employee_site/images/"
+ rnd4 + ".jpg";
   }
*/