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 += '