var myMenu; var stateMenu; var InstallMenu; function InitStateMenu() { if('<%nvram_get("DBI_CNAME_TOK")%>'=='Level One') { } else { myMenu = new SDMenu("LeftMenu"); myMenu.init(); } //stateMenu = new CamState("StateMenu"); //stateMenu.init(); } function InstallStep() { if('<%nvram_get("DBI_CNAME_TOK")%>'=='Level One') { } else { myMenu = new SDMenu("LeftMenu_quickinstal"); myMenu.init(); } } function doForm_forParam(height_value) { var bodyHeight=document.body.scrollHeight; var bodyWidth=document.body.scrollWidth; document.getElementById('body_overlay').style.width=bodyWidth; document.getElementById('body_overlay').style.height=bodyHeight; document.getElementById('body_overlay').style.display = ""; document.getElementById('busy_div').style.zIndex = "100"; document.getElementById('busy_div').style.width=350; if(height_value === undefined) document.getElementById('busy_div').style.height=30; else document.getElementById('busy_div').style.height=parseInt(height_value); //document.getElementById('busy_div').style.height=50; document.getElementById('busy_div').style.display =""; document.getElementById('busy_div').style.left=(bodyWidth-300)/2; document.getElementById('busy_div').style.top=250+document.body.scrollTop; InitValue(document.forms[0]); } var doFormFlag=1; var bodyHeight; var bodyWidth; function doForm(height_value) { clearTimeout(SetTimeout1); clearTimeout(SetTimeout2); //show body_overlay if (doFormFlag) { bodyHeight=document.body.scrollHeight; bodyWidth=document.body.scrollWidth; doFormFlag=0; } document.getElementById('body_overlay').style.width=bodyWidth; document.getElementById('body_overlay').style.height=bodyHeight; document.getElementById('body_overlay').style.display = ""; //show busy_div document.getElementById('busy_div').style.zIndex = "100"; document.getElementById('busy_div').style.width=350; if(height_value === undefined) { document.getElementById('busy_div').style.height=30; } else { if (height_value < 60) height_value = 60; document.getElementById('busy_div').style.height=parseInt(height_value);//height_vlaue=60~80 } //document.getElementById('busy_div').style.height=60 document.getElementById('busy_div').style.display =""; document.getElementById('busy_div').style.left=(bodyWidth-300)/2; document.getElementById('busy_div').style.top=250+document.body.scrollTop; } function showConfirm() { if (doFormFlag) { bodyHeight=document.body.scrollHeight; bodyWidth=document.body.scrollWidth; doFormFlag=0; } document.getElementById('body_overlay').style.width=bodyWidth; document.getElementById('body_overlay').style.height=bodyHeight; document.getElementById('body_overlay').style.display = ""; //show busy_div document.getElementById('confirm_div').style.zIndex = "200"; document.getElementById('confirm_div').style.width=430; document.getElementById('confirm_div').style.height="auto"; document.getElementById('confirm_div').style.display =""; document.getElementById('confirm_div').style.left=(bodyWidth-430)/2; document.getElementById('confirm_div').style.top=(250+document.body.scrollTop); var divlayOut=""; divlayOut += ''+Use_the_device_for_other_purpose__Such_as_+''; divlayOut += '



'; divlayOut += '
'; divlayOut += '  '; divlayOut += ''; divlayOut += '
'; document.getElementById('confirm_div').innerHTML = divlayOut; } function showConfirm_2(Print_Str,Top_Position,Single_Button,Button_Str,Body_Select,Page_path) { if (doFormFlag) { bodyHeight=document.body.scrollHeight; bodyWidth=document.body.scrollWidth; doFormFlag=0; } if(Body_Select === undefined) { document.getElementById('body_overlay').style.width=bodyWidth; document.getElementById('body_overlay').style.height=bodyHeight; document.getElementById('body_overlay').style.display = ""; } else { eval("document.getElementById(\'"+Body_Select+"\').style.width=bodyWidth;"); eval("document.getElementById(\'"+Body_Select+"\').style.height=bodyHeight;"); eval("document.getElementById(\'"+Body_Select+"\').style.display='';"); //document.getElementById(Body_Select).style.width=bodyWidth; //document.getElementById(Body_Select).style.height=bodyHeight; //document.getElementById(Body_Select).style.display = ""; } //show busy_div document.getElementById('confirm_div').style.zIndex = "200"; document.getElementById('confirm_div').style.width=430; document.getElementById('confirm_div').style.height="auto"; document.getElementById('confirm_div').style.display =""; document.getElementById('confirm_div').style.left=(bodyWidth-430)/2; if(Top_Position == "center") document.getElementById('confirm_div').style.top=document.body.clientHeight/2; else document.getElementById('confirm_div').style.top=Top_Position; var divlayOut=""; if(Single_Button == "for_change_page") { /*divlayOut += '
'; divlayOut += ''+"Confirm Navigation"+''; divlayOut += '
'; divlayOut += '
'; */ divlayOut += '
'; divlayOut += ''+You_have_unsaved_changes_+''; divlayOut += '
'; divlayOut += ''+Are_you_sure_you_want_to_continue_+''; divlayOut += '

'; } else { divlayOut += ''+Print_Str+''; divlayOut += '



'; } divlayOut += '
'; if(Single_Button == 1) divlayOut += ''; else if(Single_Button == "for_change_page") { divlayOut += '  '; divlayOut += '  '; } else if(Single_Button == "another") { divlayOut += '  '; divlayOut += ''; } else { divlayOut += '  '; divlayOut += ''; } divlayOut += '
'; document.getElementById('confirm_div').innerHTML = divlayOut; } function closeConfirmWin(Body_Select){ document.getElementById('confirm_div').style.display ="none"; document.getElementById('body_overlay').style.display = "none"; eval("document.getElementById(\'"+Body_Select+"\').style.display='none';"); } function closeConfirmWin_2(Body_Select){ document.getElementById('confirm_div').style.display ="none"; eval("document.getElementById(\'"+Body_Select+"\').style.display='none';"); //document.getElementById('body_overlay').style.display = "none"; } function showForm(){ LogoutTimer(); document.getElementById('busy_div').style.display ="none"; document.getElementById('body_overlay').style.display = "none"; } function show_tip(id){ document.getElementById(id).style.display = 'block'; document.getElementById(id).style.filter="alpha(opacity:80)"; document.getElementById(id).style.KHTMLOpacity="0.8"; document.getElementById(id).style.MozOpacity="0.8"; document.getElementById(id).style.opacity="0.8"; document.getElementById(id).style.left= window.event.x+document.body.scrollLeft-10; document.getElementById(id).style.top= window.event.y+document.body.scrollTop+10; //alert(document.getElementById(id).style.left); } function disable_tip(id){ document.getElementById(id).style.display = 'none'; } function button_bg_sw(obj,act) { if(act=="out"){ obj.style.background="url(../image/control_icon_f_01.gif)"; }else if(act=="over"){ obj.style.background="url(../image/control_icon_f_02.gif)"; } } function button_bg_sw_long(obj,act) { if(act=="out"){ obj.style.background="url(../image/200-24_a.gif)"; }else if(act=="over"){ obj.style.background="url(../image/200-24_b.gif)"; } } function gup( name ) { name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regexS = "[\\?&]"+name+"=([^&#]*)"; var regex = new RegExp( regexS ); var results = regex.exec( window.location.href ); if( results == null ) return ""; else return results[1]; }