Below it is very useful webcam image refresh code;

var refreshrate=4; //SECONDS BETWEEN REFRESH
var image="cam_office1.jpg"; //IMAGE NAME
var imgheight=480; //IMAGE HEIGHT
var imgwidth=640; //IMAGE WIDTH
function refresh(){
document.images["pic"].src=image+"?"+new Date();
setTimeout('refresh()', refreshrate*1000);}
document.write('<IMG SRC="'+image+'" ALT="WebCam" NAME="pic" ID="pic" WIDTH="'+imgwidth+'" HEIGHT="'+imgheight+'" STYLE="border: 1px solid Black;">');

I don't know javascript, I found code on web. I want to use it in the same webpage for 4 different webcam images together. Can anyone help ?