Advertisement
Guest User

FI8601W

a guest
Mar 12th, 2013
1,287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  4.   <script language="JavaScript1.2" src="cgi-bin/hi3510/getvencattr.cgi?-chn=11" type="text/javascript"></script>
  5.   <script language="JavaScript1.2" src="cgi-bin/hi3510/getvencattr.cgi?-chn=12" type="text/javascript"></script>
  6.   <script language="JavaScript1.2" src="cgi-bin/hi3510/getsetupflag.cgi" type="text/javascript"></script>
  7.   <SCRIPT language=JavaScript src="slider.js"></SCRIPT>
  8.   <SCRIPT LANGUAGE="JavaScript1.2" SRC="cgi-bin/hi3510/param.cgi?cmd=getvdisplayattr&-brightness=&-saturation=&-contrast=&-hue=&-flip=&-mirror=&-powerfreq=&" TYPE="text/javascript"></SCRIPT>
  9.  
  10.   <script type="text/javascript">
  11.   function newImage(arg) {
  12. if (document.images) {
  13. rslt = new Image();
  14. rslt.src = arg;
  15. return rslt;
  16. }
  17. }
  18. function changeImages() {
  19. if (document.images && (preloadFlag == true)) {
  20. for (var i=0; i<changeImages.arguments.length; i+=2) {
  21. document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
  22. }
  23. }
  24. }
  25. var preloadFlag = false;
  26. function preloadImages() {
  27. if (document.images) {
  28. index_08_Over = newImage("images/index_08-Over.gif");
  29. index_09_Over = newImage("images/index_09-Over.gif");
  30. index_11_Over = newImage("images/index_11-Over.gif");
  31. index_12_Over = newImage("images/index_12-Over.gif");
  32. index_13_Over = newImage("images/index_13-Over.gif");
  33. index_39_Over = newImage("images/index_39-Over.gif");
  34. index_39_Down = newImage("images/index_39-Down.gif");
  35. preloadFlag = true;
  36. }
  37. }
  38. // -->
  39. function MM_findObj(n, d) { //v4.01
  40. var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  41. d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  42. if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  43. for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  44. if(!x && d.getElementById) x=d.getElementById(n); return x;
  45. }
  46. //-->
  47. var w;
  48. var h;
  49. var rtsp;
  50.  
  51. var img2345 = new Image();
  52.  
  53. function update()
  54. {
  55.     var imgObj;
  56.    
  57.     imgObj = document.getElementById('rimg12');
  58.    
  59.     imgObj.src = img2345.src;
  60.     img2345.src = "/tmpfs/auto.jpg?" + (new Date()).getTime();
  61. }
  62.  
  63. function takeError()
  64. {
  65.     img2345.src = "/tmpfs/auto.jpg?" + (new Date()).getTime();
  66. }
  67.  
  68. function startonload()
  69. {
  70.     img2345.src = "/tmpfs/auto.jpg?" + (new Date()).getTime();
  71.     img2345.onerror=takeError;
  72.     img2345.onload=update;
  73. }
  74.  
  75. function ptzout()
  76. {
  77.     MM_swapImgRestore();
  78. //  ptzcmdSubmit('stop');
  79. }
  80.  
  81. function load1()
  82. {
  83. /*
  84. if(language=='simple_chinese'){
  85.             document.getElementById('Image8_c').style.display="";
  86.             document.getElementById('Image8').style.display="none";
  87.             document.getElementById('mediaid_c').style.display="";
  88.             document.getElementById('mediaid').style.display="none";
  89.             document.getElementById('networkid_c').style.display="";
  90.             document.getElementById('networkid').style.display="none";
  91.             document.getElementById('alarmid_c').style.display="";
  92.             document.getElementById('alarmid').style.display="none";
  93.             document.getElementById('adbancedid_c').style.display="";
  94.             document.getElementById('adbancedid').style.display="none";
  95.             document.getElementById('systemid_c').style.display="";
  96.             document.getElementById('systemid').style.display="none";
  97.     }else{
  98.             document.getElementById('Image8').style.display="";
  99.             document.getElementById('Image8_c').style.display="none";
  100.             document.getElementById('mediaid').style.display="";
  101.             document.getElementById('mediaid_c').style.display="none";
  102.             document.getElementById('networkid').style.display="";
  103.             document.getElementById('networkid_c').style.display="none";
  104.             document.getElementById('alarmid').style.display="";
  105.             document.getElementById('alarmid_c').style.display="none";
  106.             document.getElementById('adbancedid').style.display="";
  107.             document.getElementById('adbancedid_c').style.display="none";
  108.             document.getElementById('systemid').style.display="";
  109.             document.getElementById('systemid_c').style.display="none";
  110.     }
  111. */
  112.     var ip=document.location.host;
  113.     //var url="rtsp://"+ip;
  114.     var url = "http://"+ip;
  115.    
  116.     if ((navigator.appVersion.indexOf("iPod")!=-1) || (navigator.appVersion.indexOf("iPhone")!=-1))
  117.     {
  118.         data="<img src='/tmpfs/auto.jpg' id='rimg12'>";
  119.         document.getElementById('mydisplay').innerHTML=data;
  120.     }
  121.     else
  122.     {
  123.         if (navigator.appName.indexOf("Microsoft Internet Explorer") != -1)
  124.         {
  125.             var streamnum = DHiMPlayer.GetStreamNum();
  126.             if (streamnum == 11)
  127.             {
  128.                 w=parseInt(width_1);
  129.                 h=parseInt(height_1);
  130.                 document.form1.streamselect[0].selected=true;
  131.             }
  132.             else
  133.             {
  134.                 w=parseInt(width_2);
  135.                 h=parseInt(height_2);
  136.                 document.form1.streamselect[1].selected=true;  
  137.             }
  138.         }
  139.         else
  140.         {
  141.             w=parseInt(width_1);
  142.             h=parseInt(height_1);
  143.             rtsp=url+"/"+"iphone/11"+"?"+name0+":"+password0+"&";
  144.             h=h+14;
  145.             data='<embed src='+rtsp+' width='+w+' height='+h+' autoplay="true" controller="true" ShowStatusBar="false" type="video/quicktime"';
  146.             data=data+' pluginspage="http://www.apple.com/quicktime/download/index.html"> </embed>';
  147.             document.getElementById('mydisplay').innerHTML=data;
  148.         }
  149.     }
  150.    
  151.     if ((navigator.appVersion.indexOf("iPod")!=-1) || (navigator.appVersion.indexOf("iPhone")!=-1))
  152.     {
  153.         startonload();
  154.     }
  155.     else
  156.     {
  157.         if (navigator.appName.indexOf("Microsoft Internet Explorer") != -1)
  158.         {
  159.             DHiMPlayer.SetUrl(url,80,streamnum,name0,password0);
  160.             DHiMPlayer.SetWndPos(0, 0, w, h);
  161.             DHiMPlayer.SetZoomFlag(0);
  162.             DHiMPlayer.Play();
  163.             document.form1.sizeselect[3].selected=true;
  164.         }
  165.     //else
  166.     //{
  167.     //  startonload();
  168.     //}
  169.     }
  170. //DHiMPlayer1.OpenMDSetPage(1);
  171. // startflag=1;
  172. }
  173. /*
  174. function do_cancel()
  175.     {
  176.         var form=document.form2;
  177.         var form1=document.form11;
  178.         var index=0;
  179.  
  180.         form.bright.value=brightness;      
  181.         form.contrast.value=contrast;  
  182.         form.hue.value = hue;      
  183.         form.saturation.value = saturation;
  184.         form.cmd.value = "setvdisplayattrcancel";
  185.        
  186.         form.bright.name="-brightness";
  187.         form.contrast.name="-contrast";
  188.         form.hue.name="-hue";
  189.         form.saturation.name="-saturation";
  190.         form.cururl.value=document.URL ;   
  191.         form.action="cgi-bin/hi3510/param.cgi";
  192.         form.submit();     
  193.     }
  194. function do_submit()
  195.     {
  196.         var form=document.form2;
  197.         var form1=document.form11;
  198.         var index=0;
  199.  
  200.         form.bright.value=form1.brightnesstext.value;
  201.        
  202.         form.contrast.value=form1.contrasttext.value;
  203.    
  204.         form.hue.value = form1.huetext.value;
  205.        
  206.         form.saturation.value = form1.saturationtext.value;
  207.        
  208.  
  209.     form.bright.name="-brightness";
  210.     form.contrast.name="-contrast";
  211.     form.hue.name="-hue";
  212.     form.saturation.name="-saturation";
  213.         form.cururl.value=document.URL ;   
  214.         form.action="cgi-bin/hi3510/param.cgi";
  215.         form.submit();     
  216.     }
  217. function defaultset()
  218. {
  219.     var form=document.form2;
  220.   var form1=document.form11;
  221.  
  222.   form.bright.value = "120";
  223.   form.contrast.value = "140";
  224.   form.saturation.value = "150";
  225.   form.hue.value = "255";
  226. form.cmd.value = "setvdisplayattr";
  227.  
  228.     form.bright.name="-brightness";
  229.     form.contrast.name="-contrast";
  230.   form.hue.name="-hue";
  231.   form.saturation.name="-saturation";
  232.  
  233.   form.cururl.value=document.URL ; 
  234.   form.action="cgi-bin/hi3510/param.cgi";
  235.   form.submit();
  236. }
  237. */
  238. function audioctrl()
  239. {
  240.     DHiMPlayer.Mute();     
  241. }
  242.  
  243. function talkctrl()
  244. {
  245.     DHiMPlayer.Talk();     
  246. }
  247.  
  248. function SetPath()
  249. {
  250.     DHiMPlayer.SetRecordPath();
  251. }
  252.  
  253. function IsMonitorMute()
  254. {
  255.     var MuteState = DHiMPlayer.GetMuteState;
  256.     //alert(MuteState);
  257.     if (MuteState == true)
  258.     {//静音
  259.         document.getElementById("audioctrl").alt = str_mute_mute;
  260.         //audioctrl.alt = str_mute_mute;
  261.         document.getElementById("audioctrl").src = "images/MuteStateoff.gif";
  262.     }
  263.     else
  264.     {//监听
  265.         document.getElementById("audioctrl").alt = str_monitor_monitor;
  266.         //audioctrl.alt = str_monitor_monitor;
  267.         document.getElementById("audioctrl").src = "images/MuteStateno.gif";
  268.     }
  269. }
  270.  
  271. function IsTalkState()
  272. {
  273.    
  274.     var TalkState = DHiMPlayer.GetTalkState;
  275.     //alert(MuteState);
  276.     if (TalkState == true)
  277.     {//正在对讲
  278.         document.getElementById("talkctrl").alt = str_talk_start;
  279.         document.getElementById("talkctrl").src = "images/TalkStateno.gif";
  280.     }
  281.     else
  282.     {//停止对讲
  283.         document.getElementById("talkctrl").alt = str_talk_stop;
  284.         document.getElementById("talkctrl").src = "images/TalkStateoff.gif";
  285.     }
  286. }
  287. function flush()
  288. {
  289. DHiMPlayer.InvalidateWnd();
  290. MM_swapImage('Image100','','images/botton/capture.jpg',1);
  291. }
  292. function sizechange()
  293. {
  294. var form=document.form1;
  295. if(form.sizeselect[0].selected==true)
  296. {
  297. if ((h == 576) || (h == 288) || (h == 144))
  298.     DHiMPlayer.SetWndPos(0, 0, 704, 576);
  299. else
  300.     DHiMPlayer.SetWndPos(0, 0, 704, 480);
  301. }
  302. else if(form.sizeselect[1].selected==true)
  303. {
  304. if ((h == 576) || (h == 288) || (h == 144))
  305.     DHiMPlayer.SetWndPos(0, 0, 352, 288);
  306. else
  307.     DHiMPlayer.SetWndPos(0, 0, 352, 240);  
  308. }
  309. else if(form.sizeselect[2].selected==true)
  310. {
  311. if ((h == 576) || (h == 288) || (h == 144))
  312.     DHiMPlayer.SetWndPos(0, 0, 176, 144);
  313. else
  314.     DHiMPlayer.SetWndPos(0, 0, 176, 120);
  315. }
  316. else
  317. {
  318. DHiMPlayer.SetWndPos(0, 0, w, h);
  319. }
  320. }
  321.  
  322. function streamchange()
  323. {
  324.     var form=document.form1;
  325.  
  326.     if (form.streamselect[0].selected==true)
  327.     {
  328.         DHiMPlayer.SetStreamNum(11);
  329.         location.reload();
  330.     }
  331.     else
  332.     if (form.streamselect[1].selected==true)
  333.     {
  334.         DHiMPlayer.SetStreamNum(12);
  335.         location.reload();
  336.     }  
  337. }
  338.  
  339.  
  340. function snap()
  341. {
  342. DHiMPlayer.Snapshot();
  343. }
  344. function record()
  345. {
  346. DHiMPlayer.Record(0);
  347. }
  348. function playback()
  349. {
  350. DHiMPlayer.PlayBack();
  351. }
  352. function ptzcmdSubmit(casename)
  353. {
  354.     var speed1 = document.getElementById('speedslct').value;
  355.     parent.retframe.location.href='cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=' + casename+'&-speed='+speed1;
  356. }
  357. function ptzctrlpresetSubmit(casenum)
  358. {
  359.     parent.retframe.location.href='cgi-bin/hi3510/preset.cgi?-act=goto&-number=' + casenum;
  360. }
  361. function ptzsetpresetSubmit(casenum)
  362. {
  363.     parent.retframe.location.href='cgi-bin/hi3510/preset.cgi?-act=set&-status=1&-number=' + casenum;
  364. }
  365. function ptzcmdextSubmit(flag)
  366. {
  367.     parent.retframe.location.href='cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=auto&-switch=' + flag;
  368. }
  369. function ptzcmdbrushSubmit(flag)
  370. {
  371.     parent.retframe.location.href='cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=brush&-switch=' + flag;
  372. }
  373. function ptzcmdlightSubmit(flag)
  374. {
  375.     parent.retframe.location.href='cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=light&-switch=' + flag;
  376. }
  377. function MM_preloadImages() { //v3.0
  378. var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  379. var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  380. if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  381. }
  382. function MM_swapImgRestore() { //v3.0
  383. var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  384. }
  385. function MM_swapImage() { //v3.0
  386. var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  387. if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  388. }
  389.  
  390. var request = null;
  391.  
  392. function CreateRequest(){  
  393.     request = null;
  394.     try {
  395.       request = new XMLHttpRequest();
  396.     } catch (trymicrosoft) {
  397.       try {
  398.         request = new ActiveXObject("Msxml2.XMLHTTP");
  399.       } catch (othermicrosoft) {
  400.         try {
  401.           request = new ActiveXObject("Microsoft.XMLHTTP");
  402.         } catch (failed) {
  403.           request = false;
  404.         }
  405.       }
  406.     }
  407.  
  408.     if (!request)
  409.         alert("Error initializing XMLHttpRequest!");
  410.     return request;
  411. }
  412.  
  413. function HttpRequest(method, cgistr, cb, async){
  414.     var tempstring = eval("'"+cgistr+"'");
  415.     request=CreateRequest();
  416.     if ( request == null) { // Sorry, no Ajax
  417.         alert("Ajax not available");
  418.         return null;
  419.     }
  420.     request.open(method, tempstring, async); //synchronous
  421.     if(async)
  422.     {
  423.         request.onreadystatechange = function(){  
  424.             if (request.readyState == 4)
  425.             {
  426.                if (request.status == 200){      
  427.                    response = request.responseText
  428.                    if(cb) cb();
  429.                }
  430.                else if (request.status == 404)
  431.                    alert("Request URL does not exist");
  432.             }
  433.         }
  434.     }
  435.     if(method=="POST")
  436.     {
  437.         request.send(cgistr);
  438.     }
  439.     else
  440.     {
  441.         request.setRequestHeader( "If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT" );
  442.         request.send(null);
  443.     }
  444.     if(async) return;
  445.     if (request.status != 200)
  446.     {
  447.         return error;
  448.     }
  449.     return request.responseText;
  450. }
  451.  
  452. function SendCGICMD(cgistring){  
  453.     return HttpRequest("GET", cgistring, null, false);
  454. }
  455.  
  456. function BrightnessChg(val){
  457.     var string = eval("'cgi-bin/hi3510/param.cgi?cmd=setvdisplayattrnosave&-brightness="+val+"'");
  458.     SendCGICMD(string);
  459. }
  460.  
  461. function ContrastChg(val){
  462.     var string = eval("'cgi-bin/hi3510/param.cgi?cmd=setvdisplayattrnosave&-contrast="+val+"'");
  463.     SendCGICMD(string);
  464. }
  465.  
  466. function SaturationChg(val){
  467.     var string = eval("'cgi-bin/hi3510/param.cgi?cmd=setvdisplayattrnosave&-saturation="+val+"'");
  468.     SendCGICMD(string);
  469. }
  470.  
  471. function HueChg(val){
  472.     var string = eval("'cgi-bin/hi3510/param.cgi?cmd=setvdisplayattrnosave&-hue="+val+"'");
  473.     SendCGICMD(string);
  474. }
  475. //-->
  476.   </script><!-- End Preload Script -->
  477. <style>a{color:000000;TEXT-DECORATION:none}a:hover{color:FF0000;TEXT-DECORATION:underline}</style>
  478. <style>
  479. BODY {
  480.     MARGIN: 0px; BACKGROUND-COLOR: #848284;  font: arial;font-family:Arial, Helvetica, sans-serif;
  481. }
  482.  
  483. .mid01{border-top-width:1px; border-top-style:none; border-right-style:none; border-bottom-style:none; border-left-style:none; border-top-color:#d8d8d8; border-right-color:#d8d8d8; border-bottom-color:#d8d8d8; border-left-color:#d8d8d8; border-right-width:1px; border-bottom-width:1px; border-left-width:1px;}
  484. .mid02{border-top-width:1px; border-right-width:1px; border-bottom-width:1px; border-left-width:1px;    border-top-style:none;  border-right-style:none; border-bottom-style:none; border-left-style:none; border-top-color:#205f8b; border-right-color:#205f8b; border-bottom-color:#205f8b; border-left-color:#205f8b;}
  485. .mid03{border-top-width:1px; border-right-width:1px; border-bottom-width:1px; border-left-width:1px;    border-top-style:none;  border-right-style:none; border-bottom-style:none; border-left-style:none; border-top-color:#205f8b; border-right-color:#205f8b; border-bottom-color:#205f8b; border-left-color:#205f8b;}
  486. .rect_left{border-top-width:1px; border-top-style:none; border-right-style:none; border-bottom-style:none; border-left-style:none; border-top-color:#205f8b; border-right-color:#205f8b; border-bottom-color:#205f8b; border-left-color:#205f8b; border-right-width:1px; border-bottom-width:1px; border-left-width:1px;}
  487. .rect_right{border-top-width:1px; border-top-style:none; border-right-style:none; border-bottom-style:none; border-left-style:none; border-top-color:#205f8b; border-right-color:#205f8b; border-bottom-color:#205f8b; border-left-color:#205f8b; border-right-width:1px; border-bottom-width:1px; border-left-width:1px;}
  488. </style>
  489. <title></title>
  490. </head>
  491.  <script src="public.js"></script>
  492. <script src="language.js"></script>
  493.  
  494. <script language="javascript">
  495. var record_osd=1;
  496.  
  497. var current = 0;
  498.  
  499. var PRI_REFUSE = 0;
  500. var PRI_VISITOR = 1;
  501. var PRI_OPERATOR = 2;
  502. var PRI_ADMINISTRATOR = 3;
  503.  
  504.  
  505. var R320_240 = 8;
  506. var R640_480 = 32;
  507.  
  508. var OK = 0;                        
  509. var ERROR_CONNECT = -1;
  510. var ERROR_SOCKET = -2;             
  511. var ERROR_TIMEOUT = -3;        
  512. var ERROR_VERSION = -4;
  513. var ERROR_CANCEL = -5;
  514. var ERROR_CLOSED = -6;
  515. var ERROR_UNKNOWN = -7;
  516. var ERROR_FILE = -8;
  517. var ERROR_PARAM = -9;              
  518. var ERROR_THREAD = -10;            
  519. var ERROR_STATUS = -11;
  520. var ERROR_ID = -12;
  521. var FAIL_USER = 1;
  522. var FAIL_MAXCONNS = 2;
  523. var FAIL_VERSION = 3;
  524. var FAIL_ID = 4;               
  525. var FAIL_PWD = 5;
  526. var FAIL_PRI = 6;
  527. var FAIL_UNSUPPORT = 7;
  528.  
  529.  
  530. var PTZ_STOP = 1;
  531. var TILT_UP = 0;
  532. var TILT_DOWN = 2;
  533. var PAN_LEFT = 6;
  534. var PAN_RIGHT = 4;
  535. var PTZ_LEFT_UP = 91;
  536. var PTZ_RIGHT_UP = 90;
  537. var PTZ_LEFT_DOWN = 93;
  538. var PTZ_RIGHT_DOWN = 92;
  539. var PTZ_CENTER = 25;
  540. var PTZ_VPATROL = 26;
  541. var PTZ_VPATROL_STOP = 27;
  542. var PTZ_HPATROL = 28;
  543. var PTZ_HPATROL_STOP = 29;
  544. var IO_ON = 95;
  545. var IO_OFF = 94;
  546. var FILE_NO =1;
  547.  
  548. var cameras = {};
  549. cameras.alias = new Array();
  550. cameras.host = new Array();
  551. cameras.port = new Array();
  552. cameras.user = new Array();
  553. cameras.pwd = new Array();
  554. cameras.pri = new Array();
  555. cameras.valid = new Array();
  556. cameras.restart = new Array();
  557. cameras.retry_times = new Array();
  558. cameras.alarm = new Array();
  559. cameras.alarm_light = new Array();
  560. cameras.count = 1;
  561. cameras.first = 0;
  562. cameras.pri[0] = cameras.pri[1] = cameras.pri[2] = cameras.pri[3] = 0;
  563. cameras.pri[4] = cameras.pri[5] = cameras.pri[6] = cameras.pri[7] = 0;
  564. cameras.pri[8] = 0;
  565.  
  566. cameras.set_params = function(index,alias,host,port,user,pwd)  
  567. {
  568.     if ((index > 8) || (index < 0))
  569.         return;
  570.    
  571.     this.alias[index] = alias;
  572.     this.host[index] = host;
  573.     this.port[index] = port;
  574.     this.user[index] = user;
  575.     this.pwd[index] = pwd;
  576. }
  577.  
  578. cameras.set_count = function(current,count)
  579. {
  580.     if(count > 9)
  581.         count = 9;
  582.     if ((count > 4) && (count < 9))
  583.         count = 4;
  584.     if (count < 1 || ((count > 1) && (count <4)))
  585.         count = 1; 
  586.        
  587.     this.count = count;
  588.    
  589.     if (parseInt(current) + parseInt(count) > 9)
  590.         this.first = 9 - count;
  591.     else
  592.         this.first = current;
  593.    
  594.     for (i = 0;i < 9;++ i)
  595.         this.valid[i] = 0;
  596.     for (i = this.first;i < parseInt(this.first) + parseInt(this.count);++ i)
  597.         this.valid[i] = 1;     
  598. }
  599. /*
  600. function timer()
  601. {
  602.     for (i = 0;i < 9;++ i)
  603.     {
  604.         if (cameras.alarm[i] == 1)
  605.         {
  606.             if (cameras.alarm_light[i] == 1)
  607.             {
  608.                 sound_player.controls.play();
  609.                 device_status[i].src = red_ball.src;
  610.                                
  611.                 cameras.alarm_light[i] = 0;
  612.             }
  613.             else
  614.             {
  615.                 device_status[i].src = green_ball.src;
  616.                 cameras.alarm_light[i] = 1;
  617.             }
  618.         }
  619.     }
  620.    
  621.     setTimeout('timer()',1000);
  622. }
  623. */
  624. function showerror(index,msg,err)
  625. {
  626. var err_info;
  627.  
  628.     switch (err)
  629.     {
  630.     case OK:
  631.         err_info = '';
  632.         break;
  633.     case ERROR_CONNECT:
  634.         err_info = str_err_connect;
  635.         break;
  636.     case ERROR_SOCKET:
  637.         err_info = str_err_socket;
  638.         break;
  639.     case ERROR_TIMEOUT:
  640.         err_info = str_error_timeout;
  641.         break;
  642.     case ERROR_VERSION:
  643.         err_info = str_err_version;
  644.         break;
  645.     case ERROR_CANCEL:
  646.         err_info = str_err_cancel;
  647.         break;
  648.     case ERROR_CLOSED:
  649.         err_info = str_err_closed;
  650.         break;
  651.     case ERROR_FILE:
  652.         err_info = str_err_file;
  653.         break;
  654.     case ERROR_PARAM:
  655.         err_info = str_err_param;
  656.         break;
  657.     case ERROR_THREAD:
  658.         err_info = str_err_thread;
  659.         break;
  660.     case ERROR_STATUS:
  661.         err_info = str_err_status;
  662.         break;
  663.     case ERROR_ID:
  664.         err_info = str_err_id;
  665.         break;
  666.     case FAIL_USER:
  667.         err_info = str_fail_user;
  668.         break;
  669.     case FAIL_MAXCONNS:
  670.         err_info = str_fail_maxconns;
  671.         break;
  672.     case FAIL_VERSION:
  673.         err_info = str_fail_version;
  674.         break;
  675.     case FAIL_ID:
  676.         err_info = str_fail_id;
  677.         break;
  678.     case FAIL_PWD:
  679.         err_info = str_fail_pwd;
  680.         break;
  681.     case FAIL_PRI:
  682.         err_info = str_fail_pri;
  683.         break;
  684.     case FAIL_UNSUPPORT:
  685.         err_info = str_fail_unsupport;
  686.         break; 
  687.     default:
  688.         err_info = str_err_unknown;
  689.         break;
  690.     }
  691.    
  692.     alert(cameras.alias[index] + ' : ' + msg + ' : ' + err_info);
  693. }
  694.  
  695. function x_onclick()
  696. {
  697.     if (x1.checked)
  698.     {
  699.         if (cameras.count == 1)
  700.             return;
  701.         cameras.set_count(current,1);
  702.     }  
  703.     else if(x4.checked)
  704.     {
  705.         if (cameras.count == 4)
  706.             return;
  707.         cameras.set_count(current,4);
  708.     }
  709.     else
  710.     {
  711.         if (cameras.count == 9)
  712.             return;
  713.         cameras.set_count(current,9);
  714.     }
  715.     for (i = 0;i < 9; ++ i)
  716.     {
  717.         if (cameras.valid[i] == 1)
  718.         {
  719.             if ((cameras.count == 1) && (ipcam[i].resolution == R640_480))
  720.             {
  721.                 ipcam[i].style.width = 640;
  722.                 ipcam[i].style.height = 480;
  723.             }
  724.             else if(cameras.count == 4)
  725.             {
  726.                 ipcam[i].style.width = 320;
  727.                 ipcam[i].style.height = 240;
  728.             }
  729.             else if(cameras.count == 9)
  730.             {
  731.                 ipcam[i].style.width = 213;
  732.                 ipcam[i].style.height = 160;
  733.             }
  734.            
  735.             ipcam[i].PlayVideo();
  736.         }
  737.         else
  738.         {
  739.             ipcam[i].StopVideo();
  740.             ipcam[i].StopRecord();
  741.             ipcam[i].style.width = 0;
  742.             ipcam[i].style.height = 0;
  743.         }
  744.     }          
  745. }
  746.  
  747. function image_reversal_onclick()
  748. {
  749.     if (ipcam[current].MonitorStatus != 2)
  750.         return;
  751.     if (image_reversal.checked)
  752.         ipcam[current].CameraFlip = ipcam[current].CameraFlip | 0x01;
  753.     else
  754.         ipcam[current].CameraFlip = ipcam[current].CameraFlip & 0x02;
  755. }
  756.  
  757. function image_mirror_onclick()
  758. {
  759.     if (ipcam[current].MonitorStatus != 2)
  760.         return;
  761.     if (image_mirror.checked)
  762.         ipcam[current].CameraFlip = ipcam[current].CameraFlip | 0x02;
  763.     else
  764.         ipcam[current].CameraFlip = ipcam[current].CameraFlip & 0x01;
  765. }
  766.  
  767. function nofilePop_onmousedown()
  768. {
  769.      /*  if (ipcam[current].MonitorStatus != 2)
  770.         return;
  771.     */
  772.         if(FILE_NO==1)
  773.         {      
  774.             ipcam[current].AutoDisplayAlarmRecord = false;
  775.             nofilePop.src = filePop_no1.src;
  776.             setcookie('filepop',1,720);
  777.             FILE_NO = 0;
  778.         }
  779.         else  
  780.         {        
  781.             ipcam[current].AutoDisplayAlarmRecord = true;
  782.             nofilePop.src = filePop_yes1.src;
  783.             setcookie('filepop',0,720);
  784.             FILE_NO = 1;
  785.         }
  786. }
  787.  
  788.  
  789. function playvideo_onclick()
  790. {
  791.     /*if (ipcam[current].MonitorStatus != 2)
  792.         return;*/
  793.     ipcam[current].PlayVideo();
  794. }
  795.  
  796. function playvideo_onmousedown()
  797. {
  798.     /*if (ipcam[current].MonitorStatus != 2)
  799.         return;*/
  800.     playvideo.src = play_down.src;
  801. }
  802.  
  803. function playvideo_onmouseup()
  804. {
  805.     /*if (ipcam[current].MonitorStatus != 2)
  806.         return;*/
  807.     playvideo.src = play_up.src;
  808. }
  809.  
  810. function stopvideo_onclick()
  811. {
  812.     /*if (ipcam[current].MonitorStatus != 2)
  813.         return;*/
  814.     ipcam[current].StopVideo();
  815. }
  816.  
  817. function stopvideo_onmousedown()
  818. {
  819.     /*if (ipcam[current].MonitorStatus != 2)
  820.         return;*/
  821.     stopvideo.src = record_down.src;
  822. }
  823.  
  824. function stopvideo_onmouseup()
  825. {
  826. /*  if (ipcam[current].MonitorStatus != 2)
  827.         return;*/
  828.     stopvideo.src = record_up.src;
  829. }
  830.  
  831. function snapshot_onclick()
  832. {
  833.     /*if (ipcam[current].MonitorStatus != 2)
  834.         return;
  835.     */
  836.     var url = 'snapshot.html';
  837.     var page = window.open(url,'','toolbar=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+700+',height='+550+',left='+100+', top='+100+',screenX='+100+',screenY='+100+'');  
  838.     page.focus();
  839. }
  840.  
  841. function snapshot_onmousedown()
  842. {
  843.     /*if (ipcam[current].MonitorStatus != 2)
  844.         return;*/
  845.     snapshot.src = snapshot_down.src;
  846. }
  847.  
  848. function snapshot_onmouseup()
  849. {
  850.     /*if (ipcam[current].MonitorStatus != 2)
  851.         return;*/
  852.     snapshot.src = snapshot_up.src;
  853. }
  854.  
  855. function record_onclick(index)
  856. {
  857.     if ((ipcam[index].VideoStatus != 2) && (ipcam[index].AudioStatus != 2))
  858.         return;
  859.        
  860.     if (ipcam[index].RecordStatus == 0)
  861.     {
  862.         var ret = ipcam[index].StartRecord3();
  863.     }
  864.     else
  865.     {
  866.         ipcam[index].StopRecord();
  867.     }
  868. }
  869.  
  870. function record_onmousedown(index)
  871. {
  872.     if ((ipcam[index].VideoStatus != 2) && (ipcam[index].AudioStatus != 2))
  873.         return;
  874.     if (ipcam[index].RecordStatus != 2)
  875.         record[index].src = record_down.src;
  876.     else
  877.         record[index].src = stop_down_small.src;
  878. }
  879.  
  880. function record_onmouseup(index)
  881.     {
  882.         if ((ipcam[index].VideoStatus != 2) && (ipcam[index].AudioStatus != 2))
  883.             return;
  884.         if (ipcam[index].RecordStatus != 2)
  885.         {
  886.             record[index].src = record_up.src;
  887.         }
  888.         else
  889.             record[index].src = stop_up_small.src;
  890.     }
  891.  
  892. function audio_onclick(index)
  893. {
  894.     /*if (ipcam[index].MonitorStatus != 2)
  895.         return;*/
  896.        
  897.     if (ipcam[index].AudioStatus == 0)
  898.         ipcam[index].PlayAudio();
  899.     else
  900.         ipcam[index].StopAudio();
  901. }
  902.  
  903. function audio_onmousedown(index)
  904. {
  905.     /*if (ipcam[index].MonitorStatus != 2)
  906.         return;*/
  907.     if (ipcam[index].AudioStatus != 2)
  908.         audio[index].src = audio_down.src;
  909.     else
  910.         audio[index].src = stop_down_small.src;
  911. }
  912.  
  913. function audio_onmouseup(index)
  914. {
  915.     /*if (ipcam[index].MonitorStatus != 2)
  916.         return;*/
  917.     if (ipcam[index].AudioStatus != 2)
  918.         audio[index].src = audio_up.src;
  919.     else
  920.         audio[index].src = stop_up_small.src;
  921. }
  922.  
  923. function talk_onclick(index)
  924. {
  925.     /*if (ipcam[index].MonitorStatus != 2)
  926.         return;*/
  927.        
  928.     if (ipcam[index].TalkStatus == 0)
  929.         ipcam[index].StartTalk();
  930.     else
  931.         ipcam[index].StopTalk();
  932. }
  933.  
  934. function talk_onmousedown(index)
  935. {
  936.     /*if (ipcam[index].MonitorStatus != 2)
  937.         return;*/
  938.     if (ipcam[index].TalkStatus != 2)
  939.         talk[index].src = talk_down.src;
  940.     else
  941.         talk[index].src = stop_down_small.src;
  942. }
  943.  
  944. function talk_onmouseup(index)
  945. {
  946.     /*if (ipcam[index].MonitorStatus != 2)
  947.         return;*/
  948.     if (ipcam[index].TalkStatus != 2)
  949.         talk[index].src = talk_up.src;
  950.     else
  951.         talk[index].src = stop_up_small.src;
  952. }
  953.                            
  954. function up_onmousedown()
  955. {
  956.     /*if (ipcam[current].MonitorStatus != 2)
  957.         return;*/
  958.    
  959.     up.src = up_down.src;
  960.     if (ipcam[current].CameraFlip & 0x01)
  961.         ipcam[current].DecoderControl(TILT_DOWN);
  962.     else   
  963.         ipcam[current].DecoderControl(TILT_UP);
  964. }
  965.  
  966. function up_onmouseup()
  967. {
  968.     /*if (ipcam[current].MonitorStatus != 2)
  969.         return;*/
  970.    
  971.     up.src = up_up.src;
  972.     ipcam[current].DecoderControl(PTZ_STOP);
  973. }
  974.  
  975. function down_onmousedown()
  976. {
  977.     /*if (ipcam[current].MonitorStatus != 2)
  978.         return;*/
  979.  
  980.     down.src = down_down.src;
  981.     if (ipcam[current].CameraFlip & 0x01)
  982.         ipcam[current].DecoderControl(TILT_UP);
  983.     else   
  984.         ipcam[current].DecoderControl(TILT_DOWN);
  985. }
  986.  
  987. function down_onmouseup()
  988. {
  989.     /*if (ipcam[current].MonitorStatus != 2)
  990.         return;*/
  991.  
  992.     down.src = down_up.src;
  993.     ipcam[current].DecoderControl(PTZ_STOP);
  994. }
  995.  
  996. function left_onmousedown()
  997. {
  998.     /*if (ipcam[current].MonitorStatus != 2)
  999.         return;*/
  1000.    
  1001.     left.src = left_down.src;
  1002.     if (ipcam[current].CameraFlip & 0x02)
  1003.         ipcam[current].DecoderControl(PAN_RIGHT);
  1004.     else   
  1005.         ipcam[current].DecoderControl(PAN_LEFT);
  1006. }
  1007.  
  1008. function left_onmouseup()
  1009. {
  1010.     /*if (ipcam[current].MonitorStatus != 2)
  1011.         return;*/
  1012.    
  1013.     left.src = left_up.src;
  1014.     ipcam[current].DecoderControl(PTZ_STOP);
  1015. }
  1016.  
  1017. function right_onmousedown()
  1018. {
  1019.     /*if (ipcam[current].MonitorStatus != 2)
  1020.         return;*/
  1021.  
  1022.     right.src = right_down.src;
  1023.     if (ipcam[current].CameraFlip & 0x02)
  1024.         ipcam[current].DecoderControl(PAN_LEFT);
  1025.     else   
  1026.         ipcam[current].DecoderControl(PAN_RIGHT);
  1027. }
  1028.  
  1029. function right_onmouseup()
  1030. {
  1031.     /*if (ipcam[current].MonitorStatus != 2)
  1032.         return;*/
  1033.    
  1034.     right.src = right_up.src;
  1035.     ipcam[current].DecoderControl(PTZ_STOP);
  1036. }
  1037.  
  1038. function leftup_onmousedown()
  1039. {
  1040.     /*if (ipcam[current].MonitorStatus != 2)
  1041.         return;*/
  1042.    
  1043.     leftup.src = leftup_down.src;
  1044.     if ((ipcam[current].CameraFlip & 0x03) == 0x03)
  1045.         ipcam[current].DecoderControl(PTZ_RIGHT_DOWN);
  1046.     else if (ipcam[current].CameraFlip & 0x02)
  1047.         ipcam[current].DecoderControl(PTZ_RIGHT_UP);
  1048.     else if (ipcam[current].CameraFlip & 0x01)
  1049.         ipcam[current].DecoderControl(PTZ_LEFT_DOWN);
  1050.     else       
  1051.         ipcam[current].DecoderControl(PTZ_LEFT_UP);
  1052. }
  1053.  
  1054.  
  1055. function leftup_onmouseup()
  1056. {
  1057.     /*if (ipcam[current].MonitorStatus != 2)
  1058.         return;*/
  1059.    
  1060.     leftup.src = leftup_up.src;
  1061.     ipcam[current].DecoderControl(PTZ_STOP);
  1062. }
  1063.  
  1064. function rightup_onmousedown()
  1065. {
  1066.     /*if (ipcam[current].MonitorStatus != 2)
  1067.         return;*/
  1068.    
  1069.     rightup.src = rightup_down.src;
  1070.     if ((ipcam[current].CameraFlip & 0x03) == 0x03)
  1071.         ipcam[current].DecoderControl(PTZ_LEFT_DOWN);
  1072.     else if (ipcam[current].CameraFlip & 0x02)
  1073.         ipcam[current].DecoderControl(PTZ_LEFT_UP);
  1074.     else if (ipcam[current].CameraFlip & 0x01)
  1075.         ipcam[current].DecoderControl(PTZ_RIGHT_DOWN);
  1076.     else       
  1077.         ipcam[current].DecoderControl(PTZ_RIGHT_UP);
  1078. }
  1079.  
  1080.  
  1081. function rightup_onmouseup()
  1082. {
  1083.     /*if (ipcam[current].MonitorStatus != 2)
  1084.         return;*/
  1085.    
  1086.     rightup.src = rightup_up.src;
  1087.     ipcam[current].DecoderControl(PTZ_STOP);
  1088. }
  1089.  
  1090. function leftdown_onmousedown()
  1091. {
  1092.     /*if (ipcam[current].MonitorStatus != 2)
  1093.         return;*/
  1094.    
  1095.     leftdown.src = leftdown_down.src;
  1096.     if ((ipcam[current].CameraFlip & 0x03) == 0x03)
  1097.         ipcam[current].DecoderControl(PTZ_RIGHT_UP);
  1098.     else if (ipcam[current].CameraFlip & 0x02)
  1099.         ipcam[current].DecoderControl(PTZ_RIGHT_DOWN);
  1100.     else if (ipcam[current].CameraFlip & 0x01)
  1101.         ipcam[current].DecoderControl(PTZ_LEFT_UP);
  1102.     else       
  1103.         ipcam[current].DecoderControl(PTZ_LEFT_DOWN);
  1104. }
  1105.  
  1106.  
  1107. function leftdown_onmouseup()
  1108. {
  1109.     /*if (ipcam[current].MonitorStatus != 2)
  1110.         return;*/
  1111.    
  1112.     leftdown.src = leftdown_up.src;
  1113.     ipcam[current].DecoderControl(PTZ_STOP);
  1114. }
  1115.  
  1116. function rightdown_onmousedown()
  1117. {
  1118.     /*if (ipcam[current].MonitorStatus != 2)
  1119.         return;*/
  1120.    
  1121.     rightdown.src = rightdown_down.src;
  1122.     if ((ipcam[current].CameraFlip & 0x03) == 0x03)
  1123.         ipcam[current].DecoderControl(PTZ_LEFT_UP);
  1124.     else if (ipcam[current].CameraFlip & 0x02)
  1125.         ipcam[current].DecoderControl(PTZ_LEFT_DOWN);
  1126.     else if (ipcam[current].CameraFlip & 0x01)
  1127.         ipcam[current].DecoderControl(PTZ_RIGHT_UP);
  1128.     else       
  1129.         ipcam[current].DecoderControl(PTZ_RIGHT_DOWN);
  1130. }
  1131.  
  1132.  
  1133. function rightdown_onmouseup()
  1134. {
  1135. /*  if (ipcam[current].MonitorStatus != 2)
  1136.         return;*/
  1137.    
  1138.     rightdown.src = rightdown_up.src;
  1139.     ipcam[current].DecoderControl(PTZ_STOP);
  1140. }
  1141.  
  1142. function center_onmousedown()
  1143. {
  1144.     /*if (ipcam[current].MonitorStatus != 2)
  1145.         return;*/
  1146.    
  1147.     gocenter.src = center_down.src;
  1148.     ipcam[current].DecoderControl(PTZ_CENTER);
  1149. }
  1150.  
  1151. function center_onmouseup()
  1152. {
  1153.     /*if (ipcam[current].MonitorStatus != 2)
  1154.         return;*/
  1155.    
  1156.     gocenter.src = center_up.src;
  1157. }
  1158.        
  1159. function vpatrol_onmousedown()
  1160. {
  1161.     /*if (ipcam[current].MonitorStatus != 2)
  1162.         return;
  1163.         */
  1164.     vpatrol.src = vpatrol_down.src;
  1165.     //ipcam[current].DecoderControl(PTZ_VPATROL);
  1166.     ptzcmdSubmit('vscan');
  1167. }
  1168.  
  1169. function vpatrol_onmouseup()
  1170. {
  1171.     /*if (ipcam[current].MonitorStatus != 2)
  1172.         return;*/
  1173.    
  1174.     vpatrol.src = vpatrol_up.src;
  1175. }
  1176.  
  1177. function vpatrolstop_onmousedown()
  1178. {
  1179.     /*if (ipcam[current].MonitorStatus != 2)
  1180.         return;*/
  1181.        
  1182.     vpatrolstop.src = stop_down.src;
  1183.     //ipcam[current].DecoderControl(PTZ_VPATROL_STOP);
  1184.     ptzcmdSubmit('stop');
  1185. }
  1186.  
  1187. function vpatrolstop_onmouseup()
  1188. {
  1189.     /*if (ipcam[current].MonitorStatus != 2)
  1190.         return;*/
  1191.    
  1192.     vpatrolstop.src = stop_up.src;
  1193. }
  1194.  
  1195. function hpatrol_onmousedown()
  1196. {
  1197.     /*if (ipcam[current].MonitorStatus != 2)
  1198.         return;*/
  1199.    
  1200.     hpatrol.src = hpatrol_down.src;
  1201.     //ipcam[current].DecoderControl(PTZ_HPATROL);
  1202.     ptzcmdSubmit('hscan');
  1203. }
  1204.  
  1205.  
  1206.  
  1207.  
  1208.  
  1209.  
  1210. function hpatrol_onmouseup()
  1211. {
  1212.     /*if (ipcam[current].MonitorStatus != 2)
  1213.         return;
  1214.     */
  1215.     hpatrol.src = hpatrol_up.src;
  1216. }
  1217.  
  1218. function hpatrolstop_onmousedown()
  1219. {
  1220.     /*if (ipcam[current].MonitorStatus != 2)
  1221.         return;*/
  1222.    
  1223.     hpatrolstop.src = stop_down.src;
  1224.     //ipcam[current].DecoderControl(PTZ_HPATROL_STOP);
  1225.     ptzcmdSubmit('stop')
  1226. }
  1227.  
  1228. function hpatrolstop_onmouseup()
  1229. {
  1230.     /*if (ipcam[current].MonitorStatus != 2)
  1231.         return;*/
  1232.    
  1233.     hpatrolstop.src = stop_up.src;
  1234. }
  1235.  
  1236.  
  1237.    
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244. function resolution_onchange()
  1245. {
  1246.     /*if (ipcam[current].MonitorStatus != 2)
  1247.         return;*/
  1248.        
  1249.     if (ipcam[current].Resolution != resolution.value)
  1250.         ipcam[current].Resolution = resolution.value;
  1251. }
  1252.  
  1253. function mode_onchange()
  1254. {
  1255. /*  if (ipcam[current].MonitorStatus != 2)
  1256.         return;*/
  1257.        
  1258.     if (ipcam[current].Saturation != mode.value)
  1259.         ipcam[current].Saturation = mode.value;
  1260. }
  1261.  
  1262. function MaxVideoRate_onchange()
  1263. {
  1264.     /*if (ipcam[current].MonitorStatus != 2)
  1265.         return;*/
  1266.        
  1267.     if (ipcam[current].MaxVideoRate != MaxVideoRate.value)
  1268.         ipcam[current].MaxVideoRate = MaxVideoRate.value;
  1269. }
  1270.  
  1271. function osd_onchange()
  1272. {
  1273.     ipcam[current].OSD = osd.selectedIndex;
  1274.     if (current == 0)
  1275.         setcookie('osd1',osd.selectedIndex,720);
  1276.     else if (current == 1)
  1277.         setcookie('osd2',osd.selectedIndex,720);
  1278.     else if (current == 2)
  1279.         setcookie('osd3',osd.selectedIndex,720);
  1280.     else if (current == 3)
  1281.         setcookie('osd4',osd.selectedIndex,720);
  1282.     else if (current == 4)
  1283.         setcookie('osd5',osd.selectedIndex,720);
  1284.     else if (current == 5)
  1285.         setcookie('osd6',osd.selectedIndex,720);
  1286.     else if (current == 6)
  1287.         setcookie('osd7',osd.selectedIndex,720);
  1288.     else if (current == 7)
  1289.         setcookie('osd8',osd.selectedIndex,720);
  1290.     else if (current == 8)
  1291.         setcookie('osd9',osd.selectedIndex,720);   
  1292. }
  1293.  
  1294. function record_osd_onclick()
  1295. {
  1296.     for (i=0;i<9;i++) ipcam[i].RecordOSD=record_osd_chk.checked?true:false;
  1297.     setcookie('record_osd',record_osd_chk.checked?'true':'false',720);
  1298. }
  1299.  
  1300. function buffer_onchange()
  1301. {
  1302.     ipcam[current].BufferTime = buffer.value;
  1303. }
  1304.  
  1305.  
  1306. function plus_brightness()
  1307. {
  1308.     if (ipcam[current].MonitorStatus != 2)
  1309.         return;
  1310.        
  1311.     if (parseInt(brightness.value) < 15)
  1312.         ipcam[current].Brightness = (parseInt(brightness.value) + 1) * 16;
  1313. }
  1314.  
  1315. function minus_brightness()
  1316. {
  1317.     if (ipcam[current].MonitorStatus != 2)
  1318.         return;
  1319.        
  1320.     if (parseInt(brightness.value) > 0)
  1321.         ipcam[current].Brightness = (parseInt(brightness.value) - 1) * 16;
  1322. }
  1323.  
  1324. function plus_contrast()
  1325. {
  1326.     if (ipcam[current].MonitorStatus != 2)
  1327.         return;
  1328.        
  1329.     if (parseInt(contrast.value) < 6)
  1330.         ipcam[current].Contrast = parseInt(contrast.value) + 1;
  1331. }
  1332.  
  1333. function minus_contrast()
  1334. {
  1335.     if (ipcam[current].MonitorStatus != 2)
  1336.         return;
  1337.        
  1338.     if (parseInt(contrast.value) > 0)
  1339.         ipcam[current].Contrast = parseInt(contrast.value) - 1;
  1340. }
  1341.  
  1342. function set_preset()
  1343. {
  1344.     //ipcam[current].DecoderControl(parseInt(preset.value));
  1345.     var presetset1 = document.getElementById('preset').value;
  1346.     parent.retframe.location.href='cgi-bin/hi3510/preset.cgi?-act=set&-status=1&-number=' + presetset1;
  1347. }
  1348.  
  1349. function go_preset()
  1350. {
  1351.     //ipcam[current].DecoderControl(parseInt(preset.value)+1);
  1352.     var presetset = document.getElementById('preset').value;
  1353.     parent.retframe.location.href='cgi-bin/hi3510/preset.cgi?-act=goto&-number=' + presetset;
  1354. }
  1355.  
  1356. function default_all()
  1357. {
  1358.     if (ipcam[current].MonitorStatus != 2)
  1359.         return;
  1360.    
  1361.     resolution.selectedIndex = 0;
  1362.         resolution.value = 32;
  1363.     ipcam[current].Resolution = resolution.value;
  1364.     mode.selectedIndex = 0;
  1365.     ipcam[current].Saturation = mode.value;
  1366.     MaxVideoRate.selectedIndex=0;
  1367.     ipcam[current].MaxVideoRate = MaxVideoRate.value;
  1368.     brightness.value = 6;
  1369.     if (brightness.value != Math.round(ipcam[current].Brightness / 16))
  1370.         ipcam[current].Brightness = brightness.value * 16;
  1371.     contrast.value = 4;
  1372.     if (contrast.value != ipcam[current].Contrast)
  1373.         ipcam[current].Contrast = contrast.value;
  1374.         preset.value =  30;
  1375. }
  1376.  
  1377. function connect_camera(index)
  1378. {
  1379.     if (ipcam[index].MonitorStatus != 0)
  1380.         return;
  1381.     if (cameras.host[index] == '')
  1382.         return;
  1383.     ipcam[index].DefaultFileName = cameras.alias[index];
  1384.     re = ipcam[index].MonitorConnect(cameras.host[index],cameras.port[index],cameras.user[index],cameras.pwd[index]);
  1385.     if (re != OK)
  1386.         showerror(index,str_failtoconnect,re);
  1387. }
  1388.  
  1389. function ipcam_OnAlarm(index,alarm)
  1390. {
  1391.     cameras.alarm[index] = 1;
  1392.     cameras.alarm_light[index] = 1;
  1393.     device_status[index].src = red_ball.src;
  1394.        
  1395. }
  1396.  
  1397. function ipcam_OnAlarmStopped(index)
  1398. {
  1399.     cameras.alarm[index] = 0;
  1400.     cameras.alarm_light[index] = 0;
  1401.     if (ipcam[index].MonitorStatus == 2)
  1402.         device_status[index].src = green_ball.src;
  1403.     else   
  1404.         device_status[index].src = yellow_ball.src;
  1405. }
  1406.  
  1407. function ipcam_OnImageSizeChanged(index,width,height)
  1408. {
  1409.     if ((cameras.count == 1) && (cameras.valid[index] == 1))
  1410.     {
  1411.         ipcam[index].style.width = width;
  1412.         ipcam[index].style.height = height;
  1413.     }  
  1414. }
  1415.  
  1416. function ipcam_OnMonitorConnectResult(index,result,pri)
  1417. {
  1418.     if (result != OK)
  1419.     {
  1420.         device_status[index].src = yellow_ball.src;
  1421.        
  1422.         if (cameras.retry_times[index] == 0)
  1423.         {
  1424.             showerror(index,str_failtoconnect,result);
  1425.             if (index == 0)
  1426.                 location.href = 'login.htm';
  1427.         }
  1428.         else
  1429.         {
  1430.             cameras.retry_times[index] --;
  1431.             if (index == 0)
  1432.                 setTimeout('connect_camera(0)',30000);
  1433.             else if (index == 1)
  1434.                 setTimeout('connect_camera(1)',30000); 
  1435.             else if (index == 2)
  1436.                 setTimeout('connect_camera(2)',30000); 
  1437.             else if (index == 3)
  1438.                 setTimeout('connect_camera(3)',30000);
  1439.             else if (index == 4)
  1440.                 setTimeout('connect_camera(4)',30000); 
  1441.             else if (index == 5)
  1442.                 setTimeout('connect_camera(5)',30000); 
  1443.             else if (index == 6)
  1444.                 setTimeout('connect_camera(6)',30000);
  1445.             else if (index == 7)
  1446.                 setTimeout('connect_camera(7)',30000); 
  1447.             else if (index == 8)
  1448.                 setTimeout('connect_camera(8)',30000);
  1449.         }
  1450.     }
  1451.     else
  1452.     {
  1453.         cameras.pri[index] = pri + 1;
  1454.         if (current == index)
  1455.         {
  1456.             visitor_link.disabled = false;
  1457.             if (cameras.pri[index] > PRI_VISITOR)
  1458.             {
  1459.                 operator_link.disabled = false;
  1460.                 visitor_table.style.display = 'none';
  1461.                 operator_table.style.display = '';
  1462.             }
  1463.             else
  1464.             {
  1465.                 operator_link.disabled = true;
  1466.                 visitor_table.style.display = '';
  1467.                 operator_table.style.display = 'none';
  1468.             }
  1469.         }
  1470.         if (index == 0)
  1471.         {
  1472.             if (cameras.pri[0] > PRI_OPERATOR)
  1473.                 administrator_link.disabled = false;
  1474.             else   
  1475.                 administrator_link.disabled = true;
  1476.         }  
  1477.         cameras.retry_times[index] = 0;
  1478.            
  1479.         device_status[index].src = green_ball.src;
  1480.         audio[index].src = audio_up.src;
  1481.         talk[index].src = talk_up.src;                         
  1482.         ipcam[index].PlayVideo();
  1483.     }
  1484. }
  1485.  
  1486. function ipcam_OnMonitorDisconnected(index,reason)
  1487. {
  1488.     cameras.pri[index] = PRI_REFUSE;
  1489.     if (current == index)
  1490.     {
  1491.         visitor_link.disabled = true;
  1492.         visitor_table.style.display = 'none';  
  1493.         operator_link.disabled = true;
  1494.         operator_table.style.display = 'none'; 
  1495.     }
  1496.     if (index == 0)
  1497.     {
  1498.         administrator_link.disabled = true;
  1499.     }  
  1500.        
  1501.     if (cameras.host[index] == '')
  1502.         device_status[index].src = gray_ball.src;
  1503.     else
  1504.         device_status[index].src = yellow_ball.src;
  1505.            
  1506.     if ((reason == OK) || (reason == ERROR_CANCEL))
  1507.     {
  1508.         if (cameras.restart[index] == 1)
  1509.         {
  1510.             cameras.restart[index] = 0;
  1511.             connect_camera(index); 
  1512.         }
  1513.            
  1514.         return;
  1515.     }
  1516.        
  1517.     cameras.retry_times[index] = 10;
  1518.     if (index == 0)
  1519.         setTimeout('connect_camera(0)',30000);
  1520.     else if (index == 1)
  1521.         setTimeout('connect_camera(1)',30000); 
  1522.     else if (index == 2)
  1523.         setTimeout('connect_camera(2)',30000);     
  1524.     else if(index == 3)
  1525.         setTimeout('connect_camera(3)',30000); 
  1526.     else if (index == 4)
  1527.         setTimeout('connect_camera(4)',30000);     
  1528.     else if(index == 5)
  1529.         setTimeout('connect_camera(5)',30000); 
  1530.     else if (index == 6)
  1531.         setTimeout('connect_camera(6)',30000);     
  1532.     else if(index == 7)
  1533.         setTimeout('connect_camera(7)',30000); 
  1534.     else if (index == 8)
  1535.         setTimeout('connect_camera(8)',30000);
  1536. }
  1537.  
  1538. function ipcam_OnMonitorParamsChanged(index)
  1539. {
  1540.     if (current == index)
  1541.     {
  1542.         resolution.value = ipcam[index].Resolution;
  1543.         mode.value = ipcam[index].Saturation;  
  1544.         MaxVideoRate.value = ipcam[index].MaxVideoRate;
  1545.         brightness.value = Math.round(ipcam[index].Brightness / 16);
  1546.         contrast.value = ipcam[index].Contrast;
  1547.         image_reversal.checked = (ipcam[index].CameraFlip & 0x01)?true:false;
  1548.         image_mirror.checked = (ipcam[index].CameraFlip & 0x02)?true:false;
  1549.         osd.selectedIndex = ipcam[index].OSD;
  1550.         buffer.value = ipcam[index].BufferTime;
  1551.     }
  1552. }
  1553.  
  1554. function ipcam_OnPlayVideoResult(index,result)
  1555. {
  1556.     if (result != OK)
  1557.     {
  1558.         if (ipcam[index].AudioStatus != 2)
  1559.         record[index].src = record_off.src;
  1560.         showerror(index,str_failtoplayvideo,result);
  1561.     }
  1562.     else
  1563.     {
  1564.         if (ipcam[index].AudioStatus != 2)
  1565.         record[index].src = record_up.src;
  1566.     }
  1567. }
  1568.  
  1569. function ipcam_OnPlayAudioResult(index,result)
  1570. {
  1571.     if (result != OK)
  1572.     {
  1573.         audio[index].src = audio_up.src;
  1574.         if (ipcam[index].VideoStatus != 2)
  1575.             record[index].src = record_off.src;
  1576.         showerror(index,str_failtoplayaudio,result);
  1577.     }
  1578.     else
  1579.     {
  1580.         if (ipcam[index].VideoStatus != 2)
  1581.             record[index].src = record_up.src;
  1582.         audio[index].src = stop_up_small.src;
  1583.     }
  1584. }
  1585.  
  1586. function ipcam_OnStartTalkResult(index,result)
  1587. {
  1588.     if (result != OK)
  1589.     {
  1590.         talk[index].src = talk_up.src;
  1591.         showerror(index,str_failtostarttalk,result);
  1592.     }
  1593.     else
  1594.     {
  1595.         talk[index].src = stop_up.src;
  1596.     }
  1597. }
  1598.  
  1599. function ipcam_OnRecordStopped(index,reason)
  1600. {
  1601.     record[index].src = record_up.src;
  1602.     if(reason != OK)
  1603.     {
  1604.         var str = navigator.userAgent.split(";");
  1605.         if(str[2] == " Windows NT 6.0")
  1606.         {
  1607.             window.alert(str_SetTrustedSites/*"To record video,you must add your device's ip address to IE's trusted sites!"+"\n"+"the 'Trusted sites' path: IE browser->Tool->Internet Options->Security->Trusted sites-> Add"*/);
  1608.         }
  1609.     }
  1610. }
  1611.  
  1612. function ipcam_OnStartRecordResult(index,result)
  1613. {
  1614.     if (result != OK)
  1615.     {
  1616.         record[index].src = record_up.src;
  1617.         showerror(index,str_failtorecord,result);
  1618.     }
  1619.     else
  1620.     {
  1621.         record[index].src = stop_up_small.src;
  1622.     }
  1623. }
  1624.  
  1625. function ipcam_OnVideoStopped(index,reason)
  1626. {
  1627.     if (ipcam[index].AudioStatus != 2)
  1628.     record[index].src = record_off.src;
  1629.     if (reason == ERROR_TIMEOUT)
  1630.         ipcam[index].PlayVideo();
  1631. }
  1632.  
  1633. function ipcam_OnAudioStopped(index,reason)
  1634. {
  1635.     if (ipcam[index].VideoStatus != 2)
  1636.         record[index].src = record_off.src;
  1637.     audio[index].src = audio_up.src;
  1638. }
  1639. function ipcam_OnTalkStopped(index,reason)
  1640. {
  1641.     talk[index].src = talk_up.src;
  1642. }
  1643.  
  1644. function ipcam_OnFocus(index)
  1645. {
  1646.     if (index == current)
  1647.         return;
  1648.    
  1649.     ipcam[current].SetFocus(0);
  1650.     current = index;   
  1651.    
  1652.     if (cameras.pri[index] > PRI_VISITOR)
  1653.     {
  1654.         visitor_link.disabled = false;
  1655.         operator_link.disabled = false;
  1656.         visitor_table.style.display = 'none';
  1657.         operator_table.style.display = '';
  1658.     }
  1659.     else if (cameras.pri[index] > PRI_REFUSE)
  1660.     {
  1661.         visitor_link.disabled = false;
  1662.         operator_link.disabled = true;
  1663.         visitor_table.style.display = '';
  1664.         operator_table.style.display = 'none';
  1665.     }
  1666.     else
  1667.     {
  1668.         visitor_link.disabled = true;
  1669.         operator_link.disabled = true;
  1670.         visitor_table.style.display = 'none';
  1671.         operator_table.style.display = 'none'; 
  1672.     }
  1673.        
  1674.     if (cameras.valid[index])
  1675.         alias_span.innerText = cameras.alias[index];
  1676.     else
  1677.         alias_span.innerText = str_unselected;
  1678.        
  1679.     if (ipcam[index].MonitorStatus == 2)
  1680.     {
  1681.         resolution.value = ipcam[index].Resolution;
  1682.         mode.value = ipcam[index].Saturation;  
  1683.         MaxVideoRate.value = ipcam[index].MaxVideoRate;
  1684.         brightness.value = Math.round(ipcam[index].Brightness / 16);
  1685.         contrast.value = ipcam[index].Contrast;
  1686.         image_reversal.checked = (ipcam[index].CameraFlip & 0x01)?true:false;
  1687.         image_mirror.checked = (ipcam[index].CameraFlip & 0x02)?true:false;
  1688.         osd.selectedIndex = ipcam[index].OSD;
  1689.         buffer.value = ipcam[index].BufferTime;
  1690.     }
  1691. }
  1692.  
  1693. function visitor()
  1694. {
  1695.     /*if (cameras.pri[current] < PRI_VISITOR)
  1696.         return;*/
  1697.     /* 
  1698.     operator_table.style.display = 'none';
  1699.     if (visitor_table.style.display == 'none')
  1700.         visitor_table.style.display = '';
  1701.     else
  1702.         visitor_table.style.display = 'none';   */
  1703. }
  1704.  
  1705. function operator()
  1706. {
  1707.     /*if (cameras.pri[current] < PRI_OPERATOR)
  1708.         return;*/
  1709.     /*
  1710.     visitor_table.style.display = 'none';
  1711.     if (operator_table.style.display == 'none')
  1712.         operator_table.style.display = '';
  1713.     else
  1714.         operator_table.style.display = 'none';  */
  1715. }
  1716.  
  1717. function administrator()
  1718. {
  1719.     /*if (cameras.pri[0] < PRI_ADMINISTRATOR)
  1720.         return;     */
  1721.        
  1722.     location.href = 'fadmin.html';     
  1723. }
  1724.  
  1725. function set_ipcam_osd(index,osd)
  1726. {
  1727.     if (osd == '1')
  1728.         ipcam[index].OSD = 1;
  1729.     else if (osd == '2')
  1730.         ipcam[index].OSD = 2;
  1731.     else if (osd == '3')
  1732.         ipcam[index].OSD = 3;
  1733.     else if (osd == '4')
  1734.         ipcam[index].OSD = 4;
  1735.     else if (osd == '5')
  1736.         ipcam[index].OSD = 5;
  1737.     else
  1738.         ipcam[index].OSD = 0;              
  1739. }
  1740.  
  1741.  
  1742. function body_onload()
  1743. {
  1744.     load1();
  1745.        /* FILE_NO = top.getcookie('filepop');
  1746.         if(FILE_NO==1)
  1747.         {      
  1748.             ipcam[current].AutoDisplayAlarmRecord = false;
  1749.             nofilePop.src = filePop_no1.src;
  1750.             FILE_NO = 0;
  1751.         }
  1752.         else  
  1753.         {        
  1754.             ipcam[current].AutoDisplayAlarmRecord = true;
  1755.             nofilePop.src = filePop_yes1.src;
  1756.             FILE_NO = 1;
  1757.         }*/
  1758.    
  1759.        
  1760.  
  1761.         if (navigator.appName.indexOf("Microsoft Internet Explorer") != -1)
  1762.         {
  1763.             //nofilePop.title = str_pop_sd;
  1764.             playvideo.alt = str_pop_playback;
  1765.             stopvideo.alt = str_pop_record;
  1766.             snapshot.alt = str_pop_snapshot;
  1767.             //vpatrol.title = str_start_vscan;
  1768.             //vpatrolstop.title = str_stop_vertical_patrol;
  1769.             //hpatrol.title = str_start_hscan;
  1770.             //hpatrolstop.title = str_stop_horizon_patrol;
  1771.  
  1772.            
  1773.            
  1774.             document.getElementById("audioctrl").alt = str_mute_mute;
  1775.             document.getElementById("talkctrl").alt = str_talk_stop;
  1776.             document.getElementById("SetPath").alt = str_path_set;
  1777.             /*document.getElementById("audioctrl").title = str_mute_mute;
  1778.             document.getElementById("talkctrl").title = str_talk_stop;
  1779.             document.getElementById("SetPath").title = str_path_set;
  1780.             */
  1781.             /*talkctrl.alt = str_talk_stop;
  1782.             audioctrl.alt = str_mute_mute;
  1783.             SetPath.alt = str_path_set;
  1784.             talkctrl.title = str_talk_stop;
  1785.             audioctrl.title = str_mute_mute;
  1786.             SetPath.title = str_path_set;*/
  1787.         }
  1788.        
  1789.     /*audio[0].title = top.str_audio;
  1790.     audio[1].title = top.str_audio;
  1791.     audio[2].title = top.str_audio;
  1792.     audio[3].title = top.str_audio;
  1793.     audio[4].title = top.str_audio;
  1794.     audio[5].title = top.str_audio;
  1795.     audio[6].title = top.str_audio;
  1796.     audio[7].title = top.str_audio;
  1797.     audio[8].title = top.str_audio;
  1798.    
  1799.     talk[0].title = top.str_talk;
  1800.     talk[1].title = top.str_talk;
  1801.     talk[2].title = top.str_talk;
  1802.     talk[3].title = top.str_talk;
  1803.     talk[4].title = top.str_talk;
  1804.     talk[5].title = top.str_talk;
  1805.     talk[6].title = top.str_talk;
  1806.     talk[7].title = top.str_talk;
  1807.     talk[8].title = top.str_talk;
  1808.    
  1809.     record[0].title = top.str_record;
  1810.     record[1].title = top.str_record;
  1811.     record[2].title = top.str_record;
  1812.     record[3].title = top.str_record;
  1813.     record[4].title = top.str_record;
  1814.     record[5].title = top.str_record;
  1815.     record[6].title = top.str_record;
  1816.     record[7].title = top.str_record;
  1817.     record[8].title = top.str_record;
  1818.     gocenter.title = top.str_center;*/
  1819.  
  1820.     /*
  1821.     var port;
  1822.     if (location.port == '')
  1823.         port = 80;
  1824.     else
  1825.         port = location.port;
  1826.        
  1827.     cameras.set_params(0,top.alias,location.hostname,port,top.user,top.pwd);       
  1828.     cameras.set_params(1,'','',0,'','');
  1829.     cameras.set_params(2,'','',0,'','');
  1830.     cameras.set_params(3,'','',0,'','');
  1831.     cameras.set_params(4,'','',0,'','');
  1832.     cameras.set_params(5,'','',0,'','');
  1833.     cameras.set_params(6,'','',0,'','');
  1834.     cameras.set_params(7,'','',0,'','');
  1835.     cameras.set_params(8,'','',0,'','');
  1836.    
  1837.     cameras.set_count(0,1);
  1838.     //x1.checked = true;       
  1839.     current = 0;
  1840.     ipcam[0].SetFocus(true);   
  1841.     alias_span.innerText = cameras.alias[0];
  1842.    
  1843.     set_ipcam_osd(0,top.getcookie('osd1'));
  1844.     set_ipcam_osd(1,top.getcookie('osd2'));
  1845.     set_ipcam_osd(2,top.getcookie('osd3'));
  1846.     set_ipcam_osd(3,top.getcookie('osd4'));
  1847.     set_ipcam_osd(4,top.getcookie('osd5'));
  1848.     set_ipcam_osd(5,top.getcookie('osd6'));
  1849.     set_ipcam_osd(6,top.getcookie('osd7'));
  1850.     set_ipcam_osd(7,top.getcookie('osd8'));
  1851.     set_ipcam_osd(8,top.getcookie('osd9'));
  1852.    
  1853.        
  1854.            
  1855.          
  1856.     if (record_osd && (top.getcookie('record_osd')=='true'))
  1857.     {
  1858.         record_osd_chk.checked=true;
  1859.         ipcam[0].RecordOSD=true;
  1860.         ipcam[1].RecordOSD=true;
  1861.         ipcam[2].RecordOSD=true;
  1862.         ipcam[3].RecordOSD=true;
  1863.         ipcam[4].RecordOSD=true;
  1864.         ipcam[5].RecordOSD=true;
  1865.         ipcam[6].RecordOSD=true;
  1866.         ipcam[7].RecordOSD=true;
  1867.         ipcam[8].RecordOSD=true;
  1868.     }
  1869.  
  1870.     for (i = 0;i < 9; ++ i)
  1871.     {
  1872.         ipcam[i].AutoRecordOnAlarm = true;
  1873.         ipcam[i].PTZOnScreen = 1;
  1874.         cameras.pri[i] = PRI_REFUSE;
  1875.         cameras.retry_times[i] = 0;
  1876.         cameras.restart[i] = 0;
  1877.         cameras.alarm[i] = 0;
  1878.         cameras.alarm_light[i] = 0;
  1879.          
  1880.         if (cameras.valid[i] == 1)
  1881.         {
  1882.             ipcam[i].style.width = 320;
  1883.             ipcam[i].style.height = 240;
  1884.         }
  1885.         else
  1886.         {
  1887.             ipcam[i].style.width = 0;
  1888.             ipcam[i].style.height = 0;
  1889.         }
  1890.        
  1891.         if (cameras.host[i] != '')
  1892.         {
  1893.             device_status[i].src = yellow_ball.src;
  1894.             connect_camera(i);
  1895.         }
  1896.         else
  1897.         {
  1898.             device_status[i].src = gray_ball.src;
  1899.             audio[i].src = audio_off.src;
  1900.         }              
  1901.     }*/
  1902. }
  1903.  
  1904. function body_onunload()
  1905. {/*
  1906.     for (i = 0;i < 9;++ i)
  1907.     {
  1908.         ipcam[i].StopVideo();
  1909.         ipcam[i].StopAudio();
  1910.         ipcam[i].StopTalk();
  1911.         ipcam[i].StopRecord();
  1912.         ipcam[i].MonitorDisconnect();
  1913.     }*/
  1914. }
  1915.  
  1916. function ipcam_OnOtherDevicesParamsChanged(index)
  1917. {
  1918.     if (index != 0)
  1919.         return;
  1920.        
  1921.     var alias, host, port, user, pwd;
  1922.    
  1923.     ipcam[1].StopVideo();
  1924.     ipcam[1].StopAudio();
  1925.     ipcam[1].StopTalk();
  1926.     ipcam[1].StopRecord();
  1927.     ipcam[1].MonitorDisconnect();
  1928.     host = ipcam[0].GetOtherDeviceHost(1);
  1929.     alias = ipcam[0].GetOtherDeviceAlias(1);
  1930.     if (alias == '')
  1931.         alias = str_anonymous;
  1932.     port = ipcam[0].GetOtherDevicePort(1);
  1933.     user = ipcam[0].GetOtherDeviceUser(1);
  1934.     pwd = ipcam[0].GetOtherDevicePwd(1);
  1935.     if (host == '')
  1936.     {
  1937.         cameras.set_params(1,'','',0,'','');       
  1938.         device_status[1].src = gray_ball.src;
  1939.     }
  1940.     else
  1941.     {
  1942.         cameras.set_params(1,alias,host,port,user,pwd);
  1943.         device_status[1].src = yellow_ball.src;
  1944.         setTimeout('connect_camera(1)',1000);
  1945.     }
  1946.    
  1947.     ipcam[2].StopVideo();
  1948.     ipcam[2].StopAudio();
  1949.     ipcam[2].StopTalk();
  1950.     ipcam[2].StopRecord();
  1951.     ipcam[2].MonitorDisconnect();
  1952.     host = ipcam[0].GetOtherDeviceHost(2);
  1953.     alias = ipcam[0].GetOtherDeviceAlias(2);
  1954.     if (alias == '')
  1955.         alias = str_anonymous;
  1956.     port = ipcam[0].GetOtherDevicePort(2);
  1957.     user = ipcam[0].GetOtherDeviceUser(2);
  1958.     pwd = ipcam[0].GetOtherDevicePwd(2);
  1959.     if (host == '')
  1960.     {
  1961.         cameras.set_params(2,'','',0,'','');       
  1962.         device_status[2].src = gray_ball.src;
  1963.     }
  1964.     else
  1965.     {
  1966.         cameras.set_params(2,alias,host,port,user,pwd);
  1967.         device_status[2].src = yellow_ball.src;
  1968.         setTimeout('connect_camera(2)',1000);
  1969.     }
  1970.    
  1971.     ipcam[3].StopVideo();
  1972.     ipcam[3].StopAudio();
  1973.     ipcam[3].StopTalk();
  1974.     ipcam[3].StopRecord();
  1975.     ipcam[3].MonitorDisconnect();
  1976.     host = ipcam[0].GetOtherDeviceHost(3);
  1977.     alias = ipcam[0].GetOtherDeviceAlias(3);
  1978.     if (alias == '')
  1979.         alias = str_anonymous;
  1980.     port = ipcam[0].GetOtherDevicePort(3);
  1981.     user = ipcam[0].GetOtherDeviceUser(3);
  1982.     pwd = ipcam[0].GetOtherDevicePwd(3);
  1983.     if (host == '')
  1984.     {
  1985.         cameras.set_params(3,'','',0,'','');       
  1986.         device_status[3].src = gray_ball.src;
  1987.     }
  1988.     else
  1989.     {
  1990.         cameras.set_params(3,alias,host,port,user,pwd);
  1991.         device_status[3].src = yellow_ball.src;
  1992.         setTimeout('connect_camera(3)',1000);
  1993.     }
  1994.    
  1995.     ipcam[4].StopVideo();
  1996.     ipcam[4].StopAudio();
  1997.     ipcam[4].StopTalk();
  1998.     ipcam[4].StopRecord();
  1999.     ipcam[4].MonitorDisconnect();
  2000.     host = ipcam[0].GetOtherDeviceHost(4);
  2001.     alias = ipcam[0].GetOtherDeviceAlias(4);
  2002.     if (alias == '')
  2003.         alias = str_anonymous;
  2004.     port = ipcam[0].GetOtherDevicePort(4);
  2005.     user = ipcam[0].GetOtherDeviceUser(4);
  2006.     pwd = ipcam[0].GetOtherDevicePwd(4);
  2007.     if (host == '')
  2008.     {
  2009.         cameras.set_params(4,'','',0,'','');       
  2010.         device_status[4].src = gray_ball.src;
  2011.     }
  2012.     else
  2013.     {
  2014.         cameras.set_params(4,alias,host,port,user,pwd);
  2015.         device_status[4].src = yellow_ball.src;
  2016.         setTimeout('connect_camera(4)',1000);
  2017.     }
  2018.    
  2019.     ipcam[5].StopVideo();
  2020.     ipcam[5].StopAudio();
  2021.     ipcam[5].StopTalk();
  2022.     ipcam[5].StopRecord();
  2023.     ipcam[5].MonitorDisconnect();
  2024.     host = ipcam[0].GetOtherDeviceHost(5);
  2025.     alias = ipcam[0].GetOtherDeviceAlias(5);
  2026.     if (alias == '')
  2027.         alias = str_anonymous;
  2028.     port = ipcam[0].GetOtherDevicePort(5);
  2029.     user = ipcam[0].GetOtherDeviceUser(5);
  2030.     pwd = ipcam[0].GetOtherDevicePwd(5);
  2031.     if (host == '')
  2032.     {
  2033.         cameras.set_params(5,'','',0,'','');       
  2034.         device_status[5].src = gray_ball.src;
  2035.     }
  2036.     else
  2037.     {
  2038.         cameras.set_params(5,alias,host,port,user,pwd);
  2039.         device_status[5].src = yellow_ball.src;
  2040.         setTimeout('connect_camera(5)',1000);
  2041.     }
  2042.    
  2043.     ipcam[6].StopVideo();
  2044.     ipcam[6].StopAudio();
  2045.     ipcam[6].StopTalk();
  2046.     ipcam[6].StopRecord();
  2047.     ipcam[6].MonitorDisconnect();
  2048.     host = ipcam[0].GetOtherDeviceHost(6);
  2049.     alias = ipcam[0].GetOtherDeviceAlias(6);
  2050.     if (alias == '')
  2051.         alias = str_anonymous;
  2052.     port = ipcam[0].GetOtherDevicePort(6);
  2053.     user = ipcam[0].GetOtherDeviceUser(6);
  2054.     pwd = ipcam[0].GetOtherDevicePwd(6);
  2055.     if (host == '')
  2056.     {
  2057.         cameras.set_params(6,'','',0,'','');       
  2058.         device_status[6].src = gray_ball.src;
  2059.     }
  2060.     else
  2061.     {
  2062.         cameras.set_params(6,alias,host,port,user,pwd);
  2063.         device_status[6].src = yellow_ball.src;
  2064.         setTimeout('connect_camera(6)',1000);
  2065.     }
  2066.    
  2067.     ipcam[7].StopVideo();
  2068.     ipcam[7].StopAudio();
  2069.     ipcam[7].StopTalk();
  2070.     ipcam[7].StopRecord();
  2071.     ipcam[7].MonitorDisconnect();
  2072.     host = ipcam[0].GetOtherDeviceHost(7);
  2073.     alias = ipcam[0].GetOtherDeviceAlias(7);
  2074.     if (alias == '')
  2075.         alias = str_anonymous;
  2076.     port = ipcam[0].GetOtherDevicePort(7);
  2077.     user = ipcam[0].GetOtherDeviceUser(7);
  2078.     pwd = ipcam[0].GetOtherDevicePwd(7);
  2079.     if (host == '')
  2080.     {
  2081.         cameras.set_params(7,'','',0,'','');       
  2082.         device_status[7].src = gray_ball.src;
  2083.     }
  2084.     else
  2085.     {
  2086.         cameras.set_params(7,alias,host,port,user,pwd);
  2087.         device_status[7].src = yellow_ball.src;
  2088.         setTimeout('connect_camera(7)',1000);
  2089.     }
  2090.    
  2091.     ipcam[8].StopVideo();
  2092.     ipcam[8].StopAudio();
  2093.     ipcam[8].StopTalk();
  2094.     ipcam[8].StopRecord();
  2095.     ipcam[8].MonitorDisconnect();
  2096.     host = ipcam[0].GetOtherDeviceHost(8);
  2097.     alias = ipcam[0].GetOtherDeviceAlias(8);
  2098.     if (alias == '')
  2099.         alias = str_anonymous;
  2100.     port = ipcam[0].GetOtherDevicePort(8);
  2101.     user = ipcam[0].GetOtherDeviceUser(8);
  2102.     pwd = ipcam[0].GetOtherDevicePwd(8);
  2103.     if (host == '')
  2104.     {
  2105.         cameras.set_params(8,'','',0,'','');       
  2106.         device_status[8].src = gray_ball.src;
  2107.     }
  2108.     else
  2109.     {
  2110.         cameras.set_params(8,alias,host,port,user,pwd);
  2111.         device_status[8].src = yellow_ball.src;
  2112.         setTimeout('connect_camera(8)',1000);
  2113.     }
  2114. }
  2115.  
  2116. function ipcam_OnPTZOnScreen(index,ptz)
  2117. {
  2118.     if (ipcam[index].MonitorStatus != 2)
  2119.         return;
  2120.    
  2121.     if (ptz == 0)
  2122.     {
  2123.         ipcam[index].DecoderControl(PTZ_STOP);
  2124.     }
  2125.     else if (ptz == 1)
  2126.     {
  2127.         if ((ipcam[index].CameraFlip & 0x03) == 0x03)
  2128.             ipcam[index].DecoderControl(PTZ_RIGHT_DOWN);
  2129.         else if (ipcam[index].CameraFlip & 0x02)
  2130.             ipcam[index].DecoderControl(PTZ_RIGHT_UP);
  2131.         else if (ipcam[index].CameraFlip & 0x01)
  2132.             ipcam[index].DecoderControl(PTZ_LEFT_DOWN);
  2133.         else       
  2134.             ipcam[index].DecoderControl(PTZ_LEFT_UP);
  2135.     }
  2136.     else if (ptz == 2)
  2137.     {
  2138.         if (ipcam[index].CameraFlip & 0x01)
  2139.             ipcam[index].DecoderControl(TILT_DOWN);
  2140.         else   
  2141.             ipcam[index].DecoderControl(TILT_UP);
  2142.     }  
  2143.     else if (ptz == 3)
  2144.     {
  2145.         if ((ipcam[index].CameraFlip & 0x03) == 0x03)
  2146.             ipcam[index].DecoderControl(PTZ_LEFT_DOWN);
  2147.         else if (ipcam[index].CameraFlip & 0x02)
  2148.             ipcam[index].DecoderControl(PTZ_LEFT_UP);
  2149.         else if (ipcam[index].CameraFlip & 0x01)
  2150.             ipcam[index].DecoderControl(PTZ_RIGHT_DOWN);
  2151.         else       
  2152.             ipcam[index].DecoderControl(PTZ_RIGHT_UP);
  2153.     }  
  2154.     else if (ptz == 4)
  2155.     {
  2156.         if (ipcam[index].CameraFlip & 0x02)
  2157.             ipcam[index].DecoderControl(PAN_RIGHT);
  2158.         else   
  2159.             ipcam[index].DecoderControl(PAN_LEFT);
  2160.     }  
  2161.     else if (ptz == 5)
  2162.     {
  2163.         ipcam[index].DecoderControl(PTZ_CENTER);
  2164.     }  
  2165.     else if (ptz == 6)
  2166.     {
  2167.         if (ipcam[index].CameraFlip & 0x02)
  2168.             ipcam[index].DecoderControl(PAN_LEFT);
  2169.         else   
  2170.             ipcam[index].DecoderControl(PAN_RIGHT);
  2171.     }  
  2172.     else if (ptz == 7)
  2173.     {
  2174.         if ((ipcam[index].CameraFlip & 0x03) == 0x03)
  2175.             ipcam[index].DecoderControl(PTZ_RIGHT_UP);
  2176.         else if (ipcam[index].CameraFlip & 0x02)
  2177.             ipcam[index].DecoderControl(PTZ_RIGHT_DOWN);
  2178.         else if (ipcam[index].CameraFlip & 0x01)
  2179.             ipcam[index].DecoderControl(PTZ_LEFT_UP);
  2180.         else       
  2181.             ipcam[index].DecoderControl(PTZ_LEFT_DOWN);
  2182.     }  
  2183.     else if (ptz == 8)
  2184.     {
  2185.         if (ipcam[index].CameraFlip & 0x01)
  2186.             ipcam[index].DecoderControl(TILT_UP);
  2187.         else   
  2188.             ipcam[index].DecoderControl(TILT_DOWN);
  2189.     }  
  2190.     else if (ptz == 9)
  2191.     {
  2192.         if ((ipcam[index].CameraFlip & 0x03) == 0x03)
  2193.             ipcam[index].DecoderControl(PTZ_LEFT_UP);
  2194.         else if (ipcam[index].CameraFlip & 0x02)
  2195.             ipcam[index].DecoderControl(PTZ_LEFT_DOWN);
  2196.         else if (ipcam[index].CameraFlip & 0x01)
  2197.             ipcam[index].DecoderControl(PTZ_RIGHT_UP);
  2198.         else       
  2199.             ipcam[index].DecoderControl(PTZ_RIGHT_DOWN);
  2200.     }  
  2201. }
  2202.  
  2203. //setTimeout('timer()',1000);
  2204.  
  2205. </script>
  2206.  
  2207. <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnOtherDevicesParamsChanged()>
  2208. <!--
  2209. // ipcam_OnOtherDevicesParamsChanged(this.name)
  2210. //-->
  2211. </SCRIPT>
  2212. <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnAlarm(alarm)>
  2213. <!--
  2214.  //ipcam_OnAlarm(this.name,alarm)
  2215. //-->
  2216. </SCRIPT>
  2217. <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnImageSizeChanged(width,height)>
  2218. <!--
  2219. // ipcam_OnImageSizeChanged(this.name,width,height)
  2220. //-->
  2221. </SCRIPT>
  2222. <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnMonitorConnectResult(result,pri)>
  2223. <!--
  2224. // ipcam_OnMonitorConnectResult(this.name,result,pri)
  2225. //-->
  2226. </SCRIPT>
  2227. <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnMonitorDisconnected(reason)>
  2228. <!--
  2229.  //ipcam_OnMonitorDisconnected(this.name,reason)
  2230. //-->
  2231. </SCRIPT>
  2232. <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnMonitorParamsChanged>
  2233. <!--
  2234.  //ipcam_OnMonitorParamsChanged(this.name)
  2235. //-->
  2236. </SCRIPT>
  2237. <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnPlayVideoResult(result)>
  2238. <!--
  2239.  //ipcam_OnPlayVideoResult(this.name,result)
  2240. //-->
  2241. </SCRIPT>
  2242. <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnPlayAudioResult(result)>
  2243. <!--
  2244.  //ipcam_OnPlayAudioResult(this.name,result)
  2245. //-->
  2246. </SCRIPT>
  2247. <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnStartTalkResult(result)>
  2248. <!--
  2249. // ipcam_OnStartTalkResult(this.name,result)
  2250. //-->
  2251. </SCRIPT>
  2252. <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnRecordStopped(reason)>
  2253. <!--
  2254.  //ipcam_OnRecordStopped(this.name,reason)
  2255. //-->
  2256. </SCRIPT>
  2257. <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnStartRecordResult(result)>
  2258. <!--
  2259.  //ipcam_OnStartRecordResult(this.name,result)
  2260. //-->
  2261. </SCRIPT>
  2262. <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnVideoStopped(reason)>
  2263. <!--
  2264. // ipcam_OnVideoStopped(this.name,reason)
  2265. //-->
  2266. </SCRIPT>
  2267. <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnAudioStopped(reason)>
  2268. <!--
  2269. // ipcam_OnAudioStopped(this.name,reason)
  2270. //-->
  2271. </SCRIPT>
  2272. <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnTalkStopped(reason)>
  2273. <!--
  2274. // ipcam_OnTalkStopped(this.name,reason)
  2275. //-->
  2276. </SCRIPT>
  2277. <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnAlarmStopped>
  2278. <!--
  2279.  //ipcam_OnAlarmStopped(this.name)
  2280. //-->
  2281. </SCRIPT>
  2282. <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnFocus>
  2283. <!--
  2284.  //ipcam_OnFocus(this.name)
  2285. //-->
  2286. </SCRIPT>
  2287. <SCRIPT LANGUAGE=javascript FOR=ipcam EVENT=OnPTZOnScreen(ptz)>
  2288. <!--
  2289.  //ipcam_OnPTZOnScreen(this.name,ptz)
  2290. //-->
  2291. </SCRIPT>
  2292. <SCRIPT LANGUAGE="JavaScript">
  2293. <!--
  2294. function mouseover_bgcolor(obj)
  2295. {
  2296.         oldcolor=obj.style.backgroundColor;
  2297.         old_font_color="f5ffff";   
  2298.         obj.style.backgroundColor="#5a86ab";    
  2299.  
  2300. }
  2301. function mouseout(obj)
  2302. {              
  2303.         obj.style.backgroundColor=oldcolor;
  2304.         obj.style.color=old_font_color;
  2305. }
  2306.  
  2307. function mouseover_font(obj)
  2308. {
  2309.         oldcolor=obj.style.backgroundColor;
  2310.         old_font_color="f5ffff";
  2311.         obj.style.color="yellow";
  2312. }
  2313.  
  2314. function popwindow()
  2315. {
  2316.         //window.open("interip.html",top.str_internet_ip_address,"height=400,width=550,top=200,left=300,toolbar=yes,menubar=yes,scrollbars=yes,location=yes,status=yes");
  2317. }
  2318. //-->
  2319. </SCRIPT>
  2320.  
  2321. <body alink="#0099ff" vlink="yellow" style="text-align:center;" onload = "body_onload();" onunload = "body_onunload();" onscroll="flush()">
  2322.  
  2323. <table border=0 cellpadding=0 cellspacing=0 width=900 align="center" height =56  >
  2324.     <tr><td width="900" background="./images/toppic1.JPG" ><font face="Arial" color="white" size="5px">&nbsp;&nbsp;Real-time&nbsp;H.264&nbsp;IP&nbsp;Camera&nbsp;Monitoring&nbsp;System</font></td>
  2325.    
  2326.     </tr>
  2327. </table>
  2328. <table border=0 cellpadding=0 cellspacing=0 width=900 height=500 align="center"><tr><!--hawk  width=814-->
  2329.     <td height=500 bgcolor = #d8d8d8 valign = "top" style="padding-left:2px; padding-right:2px; padding-top:5px; padding-bottom:5px" class="rect_right"><table width =190 border=0 cellpadding=0 cellspacing=0 class="mid01">
  2330.        
  2331.            
  2332.         <tr height="20">
  2333.         <td align = center valign="bottom" bgcolor=#c1c3c3  class="mid02"><a id = "visitor_link" style="font-size:13px; color:#000000"><strong><font face="Arial">
  2334.           <script language="javascript">document.write(str_4visitor);</script>
  2335.         </font></strong></a></td>
  2336.       </tr>
  2337.        
  2338.         <tr><td><table width = 188 height="21" border=0 id = visitor_table style="display:block">
  2339.             <!--<tr height="10"><td> </td></tr> -->
  2340.             <!--<tr height = 30 align = middle><td>
  2341.                 <INPUT type="radio" id=x1 name=x checked LANGUAGE=javascript onClick="return x_onclick()"><img src = images/x1.gif>
  2342.                 <INPUT type="radio" id=x4 name=x checked LANGUAGE=javascript onClick="return x_onclick()"><img src = images/x4.gif>
  2343.                 <INPUT type="radio" id=x9 name=x LANGUAGE=javascript onClick="return x_onclick()"><img src = images/x9.gif>
  2344.             </td></tr>-->
  2345.             <!--hawk remove flip&mirro-->
  2346.             <!--<tr height = 10><td> </td></tr> -->
  2347.             <tr>
  2348.                         <SCRIPT type=text/JavaScript>
  2349.                         if (navigator.appName.indexOf("Microsoft Internet Explorer") != -1)
  2350.                         {  
  2351.                             document.open();       
  2352.                             document.write('<td valign="top" style="font-size:12px; color:#000000"><span class="STYLE4"><font face="Arial">'+str_monitor_look+'</font></span></td>');        
  2353.                                        
  2354.                             document.close();
  2355.                         }
  2356.                         </SCRIPT>
  2357.               </tr>
  2358.  
  2359.                       <tr>
  2360.                             <td height="13">
  2361.                         <SCRIPT type=text/JavaScript>
  2362.                         if (navigator.appName.indexOf("Microsoft Internet Explorer") != -1)
  2363.                         {
  2364.                             document.open();
  2365.                             document.write('<form name="form1">');
  2366.                             document.write('&nbsp;<select name="sizeselect" onChange="sizechange()">');
  2367.                             document.write('<option>D1</option>');
  2368.                             document.write('<option>CIF</option>');
  2369.                             document.write('<option>QCIF</option>');
  2370.                             document.write('<option>' + str_automatic_tmp + '</option>');
  2371.                             document.write('</select>&nbsp;&nbsp;');
  2372.                             document.write('<select width=10 name="streamselect" onChange="streamchange()">');
  2373.                             document.write('<option width=10>' + str_main_stream + '</option>');
  2374.                             document.write('<option width=10>' + str_second_stream + '</option>');
  2375.                             document.write('</select> ');                          
  2376.                             document.write('</form>');
  2377.                             document.close();
  2378.                          }
  2379.                          </SCRIPT>
  2380.                          </td>
  2381.                       </tr>
  2382.             <tr height = 16 align = center>
  2383.                 <td>
  2384.                 <SCRIPT type=text/JavaScript>
  2385.                         if (navigator.appName.indexOf("Microsoft Internet Explorer") != -1)
  2386.                         {
  2387.                             document.open();
  2388.                             <!--document.write('&nbsp;&nbsp;<img id="nofilePop" src="images/filepop_yes.gif"  onClick="snap()"  >'); -->
  2389.                             <!--document.write('&nbsp;&nbsp;<a href="/sd" target="_blank"><img id="nofilePop" src="images/filepop_yes.gif" border="0"></a>'); -->
  2390.                             document.write('&nbsp;&nbsp;<img id="snapshot" src="images/snapshot_up.gif" onClick="snap()" onMouseDown="return snapshot_onmousedown()" onMouseUp="return snapshot_onmouseup()">');
  2391.                             document.write('&nbsp;&nbsp;<img id="stopvideo" src="images/record_up.gif" onClick="record()" onMouseDown="return stopvideo_onmousedown()" onMouseUp="return stopvideo_onmouseup()">');
  2392.                            
  2393.                             document.write('&nbsp;&nbsp;<img id="playvideo" src="images/play_up.gif" onClick="playback()" onMouseDown="return playvideo_onmousedown()" onMouseUp="return playvideo_onmouseup()">');
  2394.                             document.close();
  2395.                         }
  2396.                         </SCRIPT>
  2397.                                    
  2398.                 </td>
  2399.         </tr>
  2400.         <tr height="16" align="center">
  2401.         <td>
  2402.                     <!--<div><img id="homeup" src="images/home_on.gif" onMouseDown="return homeup_onmousedown()" onMouseUp="return homeup_onmouseup()">&nbsp;<img id="homestop" src="images/stop_on.gif" onMouseDown="return homestop_onmousedown()" onMouseUp="return homestop_onmouseup()"></div>
  2403.                     <div><img id="switchon" src="images/switchon_up.gif" onMouseDown="return switchon_onmousedown()" onMouseUp="return switchon_onmouseup()">&nbsp;<img id="switchoff" src="images/switchoff_up.gif" onMouseDown="return switchoff_onmousedown()" onMouseUp="return switchoff_onmouseup()"></div>  -->
  2404.                     <SCRIPT type=text/JavaScript>
  2405.                         if (navigator.appName.indexOf("Microsoft Internet Explorer") != -1)
  2406.                         {
  2407.                             document.open();
  2408.                             document.write('&nbsp;&nbsp;<img id="audioctrl" src="images/MuteStateoff.gif" onMouseDown="audioctrl()" onMouseUp="IsMonitorMute()">');
  2409.                             document.write('&nbsp;&nbsp;<img id="talkctrl" src="images/TalkStateoff.gif" onMouseDown="talkctrl()" onMouseUp="IsTalkState()">');
  2410.                             document.write('&nbsp;&nbsp;<img id="SetPath" src="images/SetPath.gif" onClick="SetPath()">');
  2411.                             document.close();
  2412.                         }
  2413.                         </SCRIPT>
  2414.                 </td></tr>
  2415.         </table></td></tr>
  2416.        
  2417.         <tr height="20"><td align = center valign="bottom" bgcolor=#c1c3c3 class="mid02"><a id = "operator_link" style="font-size:13px; color:#000000"><strong><font face="Arial">
  2418.           <script language="javascript">document.write(str_4operator);</script><!--font huaikan-->
  2419.         </font></strong></a></td></tr>
  2420.        
  2421.         <tr><td align="center"><table id = operator_table width = 160 border=0 valign = middle style="display:block" ><!--huaikan-->
  2422.             <tr height="1"><td> </td></tr>
  2423.             <tr><td colspan="2" align ="center"><table width = 160 border=0 cellpadding=0 cellspacing=0><tr>
  2424.                 <td>
  2425.                     <div><img id="leftup" src="images/leftup_up.gif"><img id="up" src="images/up_up.gif" onMouseDown="ptzcmdSubmit('up')" onMouseUp="ptzcmdSubmit('stop')"><img id="rightup" src="images/rightup_up.gif"></div>
  2426.                    
  2427.                     <div><img id="left" src="images/left_up.gif" onMouseDown="ptzcmdSubmit('left')" onMouseUp="ptzcmdSubmit('stop')"><img id="gocenter" src="images/center_up.gif"><img id="right" src="images/right_up.gif" onMouseDown="ptzcmdSubmit('right')" onMouseUp="ptzcmdSubmit('stop')"></div>
  2428.                     <div><img id="leftdown" src="images/leftdown_up.gif"><img id="down" src="images/down_up.gif" onMouseDown="ptzcmdSubmit('down')" onMouseUp="ptzcmdSubmit('stop')"><img id="rightdown" src="images/rightdown_up.gif"></div>
  2429.                 </td>
  2430.                
  2431.                
  2432.             </tr></table></td></tr>
  2433.            
  2434.                         <tr>
  2435.                             <td width = "48"  style="font-size:12px; color:000000">&nbsp;<script language="javascript">document.write(str_preset);</script></td>
  2436.                             <td width="112" class="f12b"><a href="javascript:set_preset()" class="f12" style="font-size:12px; color:000000">
  2437.                           <script>document.write(str_set1);</script></a>&nbsp;&nbsp;<SELECT id="preset"><OPTION value="1">1</OPTION><OPTION value="2">2</OPTION><OPTION value="3">3</OPTION><OPTION value="4">4</OPTION><OPTION value="5">5</OPTION><OPTION value="6">6</OPTION><OPTION value="7">7</OPTION><OPTION value="0">8</OPTION></SELECT>&nbsp;&nbsp;<a href="javascript:go_preset()" class="f12" style="font-size:12px; color:000000"><script>document.write(str_go);</script></a></td>
  2438.                         </tr>
  2439.                        
  2440.                          <tr>    
  2441.                          <td width = "88"  style="font-size:12px; color:000000">&nbsp;<script>document.write(str_speed_tmp)</script></td>                
  2442.                          <td >
  2443.                         <p align="left">
  2444.                             <select name="speedselect" size="1" id="speedslct">
  2445.                     <option value="1">1</option>
  2446.                     <option value="2">2</option>
  2447.                     <option value="3">3</option>
  2448.                     <option value="4">4</option>
  2449.                     <option value="5">5</option>
  2450.                     <option value="6">6</option>
  2451.                     <option value="7">7</option>
  2452.                     <option value="8">8</option>
  2453.                     <option value="9">9</option>
  2454.                     <option value="10">10</option>
  2455.                     <option value="11">11</option>
  2456.                     <option value="12">12</option>
  2457.                     <option value="13">13</option>
  2458.                     <option value="14">14</option>
  2459.                     <option value="15">15</option>
  2460.                     <option value="16">16</option>
  2461.                     <option value="17">17</option>
  2462.                     <option value="18">18</option>
  2463.                     <option value="19">19</option>
  2464.                     <option value="20">20</option>
  2465.                     <option value="21">21</option>
  2466.                     <option value="22">22</option>
  2467.                     <option value="23">23</option>
  2468.                     <option value="24">24</option>
  2469.                     <option value="25">25</option>
  2470.                     <option value="26">26</option>
  2471.                     <option value="27">27</option>
  2472.                     <option value="28">28</option>
  2473.                     <option value="29">29</option>
  2474.                     <option value="30">30</option>
  2475.                     <option value="31">31</option>
  2476.                     <option value="32">32</option>
  2477.                     <option value="33">33</option>
  2478.                     <option value="34">34</option>
  2479.                     <option value="35">35</option>
  2480.                     <option value="36">36</option>
  2481.                     <option value="37">37</option>
  2482.                     <option value="38">38</option>
  2483.                     <option value="39">39</option>
  2484.                     <option value="40">40</option>  
  2485.                     <option value="41">41</option>
  2486.                     <option value="42">42</option>
  2487.                     <option value="43">43</option>
  2488.                     <option value="44">44</option>
  2489.                     <option value="45" selected>45</option>
  2490.                     <option value="46">46</option>
  2491.                     <option value="47">47</option>
  2492.                     <option value="48">48</option>
  2493.                     <option value="49">49</option>
  2494.                     <option value="50">50</option>  
  2495.                     <option value="51">51</option>
  2496.                     <option value="52">52</option>
  2497.                     <option value="53">53</option>
  2498.                     <option value="54">54</option>
  2499.                     <option value="55">55</option>
  2500.                     <option value="56">56</option>
  2501.                     <option value="57">57</option>
  2502.                     <option value="58">58</option>
  2503.                     <option value="59">59</option>
  2504.                     <option value="60">60</option>  
  2505.                     <option value="61">61</option>
  2506.                     <option value="62">62</option>
  2507.                     <option value="63">63</option>                                 
  2508.                                     </select></td>
  2509.                       </tr>
  2510.                        
  2511.             <!--<tr><td height="15" colspan="2" align="center"><A id="default_link" href="javascript:defaultset();" style="font-size:12px; color:004080"><script language="javascript">document.write(str_default);</script></A></td></tr> -->
  2512.         </table></td></tr>
  2513.        
  2514.         <tr height="20"><td align = center valign="bottom" bgcolor=#c1c3c3 class="mid03"><a id="administrator_link" href="javascript:administrator();" style="font-size:13px; color:#000000"><strong><font face="Arial">
  2515.           <script language="javascript">document.write(str_4administrator);</script>
  2516.         </font></strong></a></td></tr>
  2517.        
  2518.     </table></td>
  2519.    
  2520.  
  2521.         <td height="500" width="702"  align="left" valign ="middle"class="rect_left">
  2522.     <table border="0" cellpadding="0" align="left" cellspacing="0" height="500" width="702">
  2523.  
  2524.               <tbody>
  2525.  
  2526.                 <tr>
  2527.  
  2528.                   <td align="left" id="mydisplay" width="702">
  2529.                  <SCRIPT type=text/JavaScript>
  2530.                   if (navigator.appName.indexOf("Microsoft Internet Explorer") != -1)
  2531.                   {
  2532.                         document.open();
  2533.                         document.write('<object classid="clsid:42B182F9-3F08-484E-9913-07193A5D36FC" codebase="FCWebClientPlus.ocx#version=3.0.2.5" id="DHiMPlayer" align="absbottom" viewastext>');
  2534.                         document.write('<p align="left" style="font-size:14px">');
  2535.                         document.write('&nbsp;&nbsp;&nbsp;&nbsp;<span id="t5">');
  2536.                         document.write(str_alarm_info_display);
  2537.                         document.write('</span><br>');
  2538.                         document.write(' <span id="t6">');
  2539.                         document.write(str_computer_no_install_browse);
  2540.                         document.write('<br>');
  2541.                         document.write(str_already_install_control_renewedly);
  2542.                         document.write('<br><br>');
  2543.                         document.write(str_please_point_hit);
  2544.                         document.write('</span><a href="/web/FCClientOCXPlus_Setup.exe" id="t7" style="color:#0000ff">');
  2545.                         document.write(str_download_control);
  2546.                         document.write('</a>');
  2547.                         document.write(' <span id="t8">');
  2548.                         document.write(str_afterward_point);
  2549.                         document.write('</span> <b id="t9">');
  2550.                         document.write(str_run_tmp);
  2551.                         document.write('</b> <span id="t10">');
  2552.                         document.write(str_install_control_afresh_web);
  2553.                         document.write('</span></p>');
  2554.                         document.write(str_download_control);
  2555.                         document.write('</span></p>');                 
  2556.                         document.write('<param name="_Version" value="65536"> <param name="_ExtentX" value="10954"> <param name="_ExtentY" value="6826">');
  2557.                         document.write('<param name="_StockProps" value="0">');
  2558.                         document.write('<embed src="65536" _version="65536" _extentx="10954" _extenty="6826" _stockprops="0" align="center" height="0" width="0"> </object>');
  2559.                         document.close();
  2560.                   }
  2561.                    </SCRIPT>
  2562.                   </td>
  2563.  
  2564.                 </tr>
  2565.  
  2566.               </tbody>
  2567.           </table>
  2568.     </td>
  2569. </tr></table>
  2570.  
  2571. <img id = full_screen_up src = images/full_screen_up.GIF style = "width:0; height:0; visibility:hidden">
  2572. <img id = full_screen_down src = images/full_screen_down.GIF style = "width:0; height:0; visibility:hidden">
  2573.  
  2574. <img id = plus_up src = images/plus_up.gif style = "width:0; height:0; visibility:hidden">
  2575. <img id = plus_down src = images/plus_down.gif style = "width:0; height:0; visibility:hidden">
  2576. <img id = minus_up src = images/minus_up.gif style = "width:0; height:0; visibility:hidden">
  2577. <img id = minus_down src = images/minus_down.gif style = "width:0; height:0; visibility:hidden">
  2578. <img id = filePop_no1 src = images/filepop_no.gif style = "width:0; height:0; visibility:hidden">
  2579. <img id = filePop_yes1 src = images/filepop_yes.gif style = "width:0; height:0; visibility:hidden">
  2580. <img id = play_up src = images/play_up.gif style = "width:0; height:0; visibility:hidden">
  2581. <img id = play_down src = images/play_down.gif style = "width:0; height:0; visibility:hidden">
  2582. <img id = stop_up src = images/stop_up.gif style = "width:0; height:0; visibility:hidden">
  2583. <img id = stop_down src = images/stop_down.gif style = "width:0; height:0; visibility:hidden">
  2584. <img id = stop_up_small src = images/stop_up_small.gif style = "width:0; height:0; visibility:hidden">
  2585. <img id = stop_down_small src = images/stop_down_small.gif style = "width:0; height:0; visibility:hidden">
  2586. <img id = snapshot_up src = images/snapshot_up.gif style = "width:0; height:0; visibility:hidden">
  2587. <img id = snapshot_down src = images/snapshot_down.gif style = "width:0; height:0; visibility:hidden">
  2588. <img id = audio_off src = images/audio_off.gif style = "width:0; height:0; visibility:hidden">
  2589. <img id = audio_up src = images/audio_up.gif style = "width:0; height:0; visibility:hidden">
  2590. <img id = audio_down src = images/audio_down.gif style = "width:0; height:0; visibility:hidden">
  2591. <img id = talk_off src = images/talk_off.gif style = "width:0; height:0; visibility:hidden">
  2592. <img id = talk_up src = images/talk_up.gif style = "width:0; height:0; visibility:hidden">
  2593. <img id = talk_down src = images/talk_down.gif style = "width:0; height:0; visibility:hidden">
  2594.  
  2595. <img id = record_off src = images/record_off.gif style = "width:0; height:0; visibility:hidden">
  2596. <img id = record_up src = images/record_up.gif style = "width:0; height:0; visibility:hidden">
  2597. <img id = record_down src = images/record_down.gif style = "width:0; height:0; visibility:hidden">
  2598. <img id = gray_ball src = images/gray.gif style = "width:0; height:0; visibility:hidden">
  2599. <img id = red_ball src = images/red.gif style = "width:0; height:0; visibility:hidden">
  2600. <img id = green_ball src = images/green.gif style = "width:0; height:0; visibility:hidden">
  2601. <img id = yellow_ball src = images/yellow.gif style = "width:0; height:0; visibility:hidden">
  2602. <img id = center_up src = images/center_up.gif style = "width:0; height:0; visibility:hidden">
  2603. <img id = center_down src = images/center_down.gif style = "width:0; height:0; visibility:hidden">
  2604. <img id = up_up src = images/up_up.gif style = "width:0; height:0; visibility:hidden">
  2605. <img id = up_down src = images/up_down.gif style = "width:0; height:0; visibility:hidden">
  2606. <img id = down_up src = images/down_up.gif style = "width:0; height:0; visibility:hidden">
  2607. <img id = down_down src = images/down_down.gif style = "width:0; height:0; visibility:hidden">
  2608. <img id = left_up src = images/left_up.gif style = "width:0; height:0; visibility:hidden">
  2609. <img id = left_down src = images/left_down.gif style = "width:0; height:0; visibility:hidden">
  2610. <img id = right_up src = images/right_up.gif style = "width:0; height:0; visibility:hidden">
  2611. <img id = right_down src = images/right_down.gif style = "width:0; height:0; visibility:hidden">
  2612. <img id = leftup_up src = images/leftup_up.gif style = "width:0; height:0; visibility:hidden">
  2613. <img id = leftup_down src = images/leftup_down.gif style = "width:0; height:0; visibility:hidden">
  2614. <img id = leftdown_up src = images/leftdown_up.gif style = "width:0; height:0; visibility:hidden">
  2615. <img id = leftdown_down src = images/leftdown_down.gif style = "width:0; height:0; visibility:hidden">
  2616. <img id = rightup_up src = images/rightup_up.gif style = "width:0; height:0; visibility:hidden">
  2617. <img id = rightup_down src = images/rightup_down.gif style = "width:0; height:0; visibility:hidden">
  2618. <img id = rightdown_up src = images/rightdown_up.gif style = "width:0; height:0; visibility:hidden">
  2619. <img id = rightdown_down src = images/rightdown_down.gif style = "width:0; height:0; visibility:hidden">
  2620. <img id = vpatrol_up src = images/vpatrol_up.gif style = "width:0; height:0; visibility:hidden">
  2621. <img id = vpatrol_down src = images/vpatrol_down.gif style = "width:0; height:0; visibility:hidden">
  2622. <img id = hpatrol_up src = images/hpatrol_up.gif style = "width:0; height:0; visibility:hidden">
  2623. <img id = hpatrol_down src = images/hpatrol_down.gif style = "width:0; height:0; visibility:hidden">
  2624. <img id = switchon_up src = images/switchon_up.gif style = "width:0; height:0; visibility:hidden">
  2625. <img id = switchon_down src = images/switchon_down.gif style = "width:0; height:0; visibility:hidden">
  2626. <img id = switchoff_up src = images/switchoff_up.gif style = "width:0; height:0; visibility:hidden">
  2627. <img id = switchoff_down src = images/switchoff_down.gif style = "width:0; height:0; visibility:hidden">
  2628.  
  2629. <img id = homeup_up src = images/home_on.gif style = "width:0; height:0; visibility:hidden">
  2630. <img id = homeup_down src = images/home.gif style = "width:0; height:0; visibility:hidden">
  2631. <img id = homestop_up src = images/stop_on.gif style = "width:0; height:0; visibility:hidden">
  2632. <img id = homestop_down src = images/stop.gif style = "width:0; height:0; visibility:hidden">
  2633.  
  2634. <!--<object id = sound_player CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
  2635.     type="application/x-oleobject"  width="0" height="0"
  2636.     style="position:relative;left:0px; top:0px;width:0px;height:0px;"><param name="url" value="images/alarm.wav"><param name="autoStart" value="false"><param name="playCount" value="1"><param name="rate" value="1"></OBJECT -->
  2637. </body>
  2638. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement