var CtWidth = 0; var CtHeight = 0; var chk_of = ['off','on']; var chk_Bof = ['OFF','ON']; var chk_TF = [false, true, true]; var chk_FT = [true, false]; var chk_cursor=['pointer','default']; var msg_es = ['#FF1C1C', '#00D100']; var menu_obj = ['Info','RS-232','EDID','Config','System']; var menu_id = ['info','rs232', 'edid', 'conf', 'sys']; var CtWidth = 0; var CtHeight = 0; var interval=0; var nowpage=''; var oTimerId=0; var login_ur=0;/* 0:none 1:root 2~4:user */ var IN=1; var OUT=4; //var info_obj=['Model Name','Software Version','Bootloader Version','VALENS Version']; //var info_val=['Loading...','Loading...','Loading...',['Loading...','Loading...','Loading...','Loading...']]; var info_obj=['Model Name','Software Version','VALENS Version']; var info_val=['Loading...','Loading...',['Loading...','Loading...','Loading...','Loading...']]; var rs232_cmd=['CSpara']; var rs232_obj=['Baud rate','Data bit','Parity','Stop bit']; var rs232_id=['baudrate','databit','parity','stopbit']; var rs232_val=[[2400,4800,7200,9600,14400,19200,38400,57600,115200,128000,230400,460800,921600],[7,8],['None','Odd','Even'],[1,2]]; var rs232_para=[[2400,5,'even',1]/*,[2400,5,'even',1]*/]; var edid_lock_cmd=['Unlock','LockEdid']; var edid_lock=0; var edid_lock_s=0; var EDIDSW_obj=['INT','LEARN']; var EDIDSW_send=['int','learn']; var EDIDSW=0; var int_edid_obj=['STD','ATL 1080P 2CH','ATL 1080P Multi CH','ATL 1080P DD','ATL 1080P 3D 2CH','ATL 1080P 3D Multi CH','ATL 1080P 3D DD','ATL 720P 2CH','ATL 720P DD','ATL 1280x800 RGB 2CH','ATL 1366x768 RGB 2CH','ATL 1080P DVI','ATL 1280x800 RGB DVI','ATL 3840x2160@30 2CH','ATL 3840x2160@30 Multi CH','ATL 3840x2160@60 2CH','ATL 3840x2160@60 Multi CH']; var EDIDMSet=0; var PW=1; var PW_s=0; var Lock_obj=0; var Lock_obj_s=0; var con_table_obj=['Username','Password','Edit', 'Del']; var con_table_width=[210,210,100,100]; var usr=['','','']; var pwd=['','','']; var ip_mode=1; var o_ip_mode=1; var ip='192.168.1.1'; var sn='255.255.255.0'; var gw='192.168.5.254'; var tp=23; var ttimeout=1; var tel_log=1; var tel_log_s=0; var broad=1; var broad_s=0; var BCPW_obj=['DA standby','CEC','Both']; var BCPW=0; function getCookie(c_name) { var i,x,y,ARRcookies=document.cookie.split(";"); for (i=0;i'+menu_obj[i]+''; left_leg+=112; } AppendStr+=''; AppendStr+='
Logout
'; $('#i_menu').html(AppendStr); for(var i=0; iWarring! Username or Password fail!'); setTimeout('$("#show_msg").fadeOut();',3000); $('#send,#usr,#psw').attr('disabled',false); $('#usr,#psw').val(''); } else { document.cookie="page=info;"; creat_menu(); addWidth(nowpage); } } if(cmd=='check_logout') { login_ur=r.login_ur; Timeout(); } if(cmd=='ChangeUP') { if(!r.err_msg) { $('#show_msg').html('
Error Setting,Please check again!
'); setTimeout('$("#smsg").fadeOut();',3000); } else { Timeout(); } } } }); } function show_wait(idx){ $.blockUI({ message:$('

'+((typeof idx!="undefined")?idx:"Wait....")+'

'), css:{ border:'none', padding:'15px', color:'#fff', backgroundColor:'#000', '-webkit-border-radius':'10px', '-moz-border-radius':'10px', opacity:.5 } }); } function clear_wait(){$.unblockUI();} function refresh_pa() { validNavigation = true; window.location.reload(); } function Timeout() { clear_Interval(); clear_Interval(); $('#menu_div,#logout').remove(); creat_login(); change_borw(); clear_wait(); } function go_staticip(ip) { $.unblockUI(); window.location.href='http://'+ip; } function check_lock(idx,chk) { switch(idx) { case 0: //LockEdid if(chk) { $('#EDIDSW,#EDIDCopy,#EDIDMSet').attr('disabled','disabled'); } else { $('#EDIDSW,#EDIDCopy,#EDIDMSet').removeAttr('disabled'); if(EDIDSW) $('#EDIDMSet').attr('disabled','disabled'); else $('#EDIDMSet').removeAttr('disabled'); } break; case 1: break; default: break; } } function set_rel(idx) { document.cookie="rel=" + idx; }