function holdUp() {
  setTimeout("freshPic()", 10*1000);
}

function freshPic() {
  if ('undefined' == typeof document.getElementById) return false;
  var image = document.getElementById('campic');
  var currentPath = image.src;
  var trimmedPath = new Array();
  
  trimmedPath = currentPath.split("?");
  image.src = trimmedPath[0] + "?" + Math.random();
  holdUp();
}

freshPic();