function holdUp()
	{
	// Set the value of refreshFreq to how often (in seconds)
	// you want the picture to refresh
	//
	refreshFreq=30;
	//after the refresh time elapses, go and update the picture
	setTimeout("freshPic()", refreshFreq*1000);
	}

function freshPic()
	{
	//
	var currentPath=document.campic.src;
	// Declare a new array to put the trimmed part of the source
	// value in
	var trimmedPath=new Array();
	// put it in the array we created e.g. cam.jpg?0.32234 becomes
	// cam.jpg (with the 0.32234 going into the second array spot
	trimmedPath=currentPath.split("?");
	// Take the source value and tack a qustion mark followed by a random number
	// This makes the browser treat it as a new image and not use the cached copy
	document.campic.src = trimmedPath[0] + "?imgrand=" + Math.random();
	//
	// Go back and wait again.
	holdUp();
	}
