 // Set the BaseURL to the url of your camera
 // Note: Since this file is located inside the unit itself, no base url is specified here
 // Example:  var BaseURL = "http://172.21.1.122/";
 var BaseURL = "http://www.ceskenoviny.cz/.extern_kontejner/webkamera/";
    
 // This is the filepath to the image generating file inside the camera itself
 var File = "obrazek.jpg";
       
 // Force an immediate image load
 var theTimer = setTimeout("reloadImage()",1);
	
 function reloadImage() {
    theDate = new Date();
    var url = BaseURL;
    url += File;
    url += "?dummy=";
    url += theDate.getTime().toString(10);
    // The above dummy cgi-parameter enforce a bypass of the browser image cache.

   // Here we actually load the image
    document.theImage.src = url;
			 
   // Reload the image every 10 seconds (10000 ms)
     theTimer = setTimeout("reloadImage()",10000);   
 }
