var imgToUpdate;
var imgUpdateInterval;

function initUpdate(whichIMG,interval) {
	imgUpdateInterval = interval;
	imgToUpdate = whichIMG;
	upDateLoop();
}

function updateLiveImage() {		
	myImg = document.images[imgToUpdate];
	myImg.src = "model.jpg?refresh="+Math.ceil(Math.random()*20000000033);		
}

function upDateLoop() {
	updateLiveImage();
	setTimeout("upDateLoop()", imgUpdateInterval);
}