var cams=new Array();

function updateWebcam(obj,t) {
  var i=cams.length;
  cams[i]=obj;
  obj.onload=null;
  obj.src_orig=obj.src;
  obj.wait = false;
  window.setInterval("updateImg("+i+")",t*1001);
}
function updateImg(i) {
  obj=cams[i];
  if (obj.wait) return;
  var time=new Date();
  var ts="t"+time.getFullYear()+time.getMonth()+time.getDate()+time.getHours()+time.getMinutes()+time.getSeconds();
  obj.src=obj.src_orig+"?"+ts;
}

function viewAW(s,t) {
  if (t.complete) {
    obj=document.getElementById("awimg");
    if (obj) {
      obj.wait = true;
      obj.src=s;
    }
  }
}


