+function updateSensors()
+{
+ reloadImg(document.getElementById("tempsensor"));
+ reloadImg(document.getElementById("movementsensor"));
+ reloadImg(document.getElementById("lightsensor"));
+}
+
+function IsImageOk(img) {
+ if (!img.complete)
+ {
+ return false;
+ }
+ if (typeof img.naturalWidth == "undefined" || (typeof img.naturalWidth == "number" && img.naturalWidth == 0))
+ {
+ return false;
+ }
+ return true;
+}
+
+var img_orig_src = {};
+function reloadImgAlt(element)