var g_timeout="",g_imageUpdateCounter=0;function ShowInvalidIpAddressErrorMessage(a){g_htmlElementId=a.id;$.prompt("The IP-address entered is invalid.\n Please enter a decimal dotted IP-address of the form: xxx.xxx.xxx.xxx \n with xxx in the range [0...255].",{callback:CallbackFocus})}function ContainsCorrectIpAddress(a){var b=!1,a=a.value.split(".");if(4==a.length&&0!=a[3].length)for(var b=!0,c=0;3>=c;c++)if(isNaN(a[c])||255>"))}function IsValidMxCharacter(a){a=GetKeyPressed(a);return IsValidCharacter(a,"!,?~&#")}function IsValidMxUsernameCharacter(a){a=GetKeyPressed(a);return IsValidCharacter(a,"!,?~&# ")}function IsEnterKeyPressed(a){return 13==GetKeyPressed(a)?!0:!1}function GetKeyPressed(a){return window.event?window.event.keyCode:a?a.which:null} function IsValidCharacter(a,b){var c=String.fromCharCode(a);return-1==b.indexOf(c)?!0:!1}function MjpegStreamIdAndUrl(a,b){this.id=a;this.url=b}function DisableMjpegStreams(){clearTimeout(g_timeout)}function SetMjpegStreams(a,b){for(i=g_imageUpdateCounter=0;i=c;)a=CheckDateTime(this.page.getElementById(b[c])),c++;return a} function DateTimeSubmit(){var a="",b="",c=Array(7);c[0]=this.page.getElementById(this.idYear).value;c[1]=this.page.getElementById(this.idMonth).value;c[2]=this.page.getElementById(this.idDay).value;c[3]=this.page.getElementById(this.idHours).value;c[4]=this.page.getElementById(this.idMinutes).value;c[5]=this.page.getElementById(this.idSeconds).value;c[6]=this.page.getElementById(this.idCentiSeconds).value;for(var d=0;db.length&&(c[d]="0"+b);a+=c[0]+"-"+c[1]+"-"+c[2]+" "+c[3]+ ":"+c[4]+":"+c[5]+"."+c[6];this.page.getElementById(this.idLocalTime).value=a} function CheckDateTime(a){g_htmlElementId=a.id;if("idYear"==g_htmlElementId)return 2E3>a.value||2099a.value||12a.value||31a.value||23a.value||59this.bitrateMibVar.GetMax()?this.bitrateMibVar.GetMax():b;this.frameRateDivider.value=this.frameRateDropdownBox.value;this.mibUpdater.Update(this.frameRateDivider);this.mibUpdater.Update(this.bitrate)}; FrameRate.prototype.SelectFrameRate=function(){var a=this.frameRateDivider.value,b=this.frameRateDropdownBox.options.length,c=0,d=0,f=0;if(a<=parseFloat(this.frameRateDropdownBox.options[0].value))c=0;else if(a>=parseFloat(this.frameRateDropdownBox.options[b-1].value))c=b-1;else for(var e=0;e=d&&a<=f){c=a>Math.abs(f-d)/2+d?e+1:e;break}this.frameRateDropdownBox.options[c].selected= !0};function QueryStringParser(a){this.queryString=a;this.ParseQueryString()}QueryStringParser.prototype.ParseQueryString=function(){this.queryStringArray={};for(var a=this.queryString.split("&"),b=0;b