canApply = false; canCancel = false; function setEnvironment() { setApplyButtonOff(); setCancelButtonOff(); } function apLockedMessage() { location.href = location.href alert('The Access Point is currently locked. Unlock your Access Point by pressing the reset button on the device itself and click OK.') } function getOidRowId(oid) { return oid.substr(oid.lastIndexOf('_')+1,2); } function getOidRadio(oid) { return oid.substr(oid.lastIndexOf('_')-1,1); } function setPostButtonsOn() { if (!accessPointLocked) { canApply = true; canCancel = true; enableCtl('postApply','postCancel'); } else { apLockedMessage(); parent.location.href = parent.location.href; } } function setApplyButtonOff() { canApply = false; //This is used to grey the apply button but only for browsers that support this disableCtl('postApply'); } function setCancelButtonOff() { canCancel = false; //This is used to grey the post buttons but only for browsers that support this disableCtl('postCancel'); } function setPopupOKOn() { enableCtl('bOKPopup'); } function setPopupOKOff() { disableCtl('bOKPopup'); } function clickCancel() { if (canCancel) { parent.location.href = parent.location.href } } function enableCtl() { var arg = enableCtl.arguments; var obj = new Array(); for (var i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i