Jump to content
Sign in to follow this  
frankm

Click a sublink within a table within a frame

Recommended Posts

frankm

Ok, from reading posts and piecing together codes from different sources, I have been able to open an https site, click the "Continue to this website (not recommended)." link, enter a username and password and get into my Cisco wireless router's web interface with an autoit script.

I've also installed DebugBar and found the router's website has a frame with the information that I want to pursue. The link that I want to click is the "IPSec Connection Status" under "Status" within this "IE Interpreted Code".

Main Document HTML:

<HTML><HEAD><TITLE>RV110W Wireless-N VPN Firewall</TITLE>
<META content=0 http-equiv=expires>
<META content=no-cache http-equiv=cache-control>
<META content=no-cache http-equiv=pragma>
<META content=max-age=3600 http-equiv=pragma>
<META content="text/html; charset=UTF-8" http-equiv=Content-Type>
<META content=IE=EmulateIE7 http-equiv=X-UA-Compatible><INPUT type=hidden name=privilege_str>
<SCRIPT type=text/javascript src="P.js"></SCRIPT>

<SCRIPT type=text/javascript src="func.js"></SCRIPT>
<LINK rel=stylesheet type=text/css href="cues_taglib.css">
<SCRIPT language=javascript type=text/javascript src="/lang_pack/EN.js"></SCRIPT>

<SCRIPT language=javascript type=text/javascript src="/lang_pack/EN_SPELL.js"></SCRIPT>

<SCRIPT type=text/javascript src="position.js"></SCRIPT>

<SCRIPT type=text/javascript src="common.js"></SCRIPT>
<LINK rel=stylesheet type=text/css href="style.css">
<SCRIPT>
var NOWPATH;
        if ( Browser == "Firefox" ) 
                NOWPATH = document.location.href;
        else
                NOWPATH = document.location.pathname.substring(1,document.location.pathname.length);
        if ( close_session != "1" )
        {
                if ( NOWPATH.indexOf("session_id")== -1 )
                {
                        document.location.href = "default.asp;session_id=fc643760e1ee5daf97d53af3fe4c44fd";        
                }
        }

var wps_result = "" ; 
function get_url(page)
{
        var path="";
        if ( close_session != "1" )
        {
        if ( document.getElementById("session_key").value != "" ) 
                    path=page+";session_id="+document.getElementById("session_key").value;
        else
            path=page+get_url_key(1);           
        }else
                path=page;
    //alert("path="+path);
        return path;
        
}



function getlink(F,a)
{
    F.openwin.value=a;
    document.getElementById("newwin").src = get_url("check_session.asp");
}


function get_about()
{
    var about_win;
    var url = get_url('about.asp');
    about_win = self.open(url,'aboutTable','toolbar=no,memubar=no,resizable=no,scrollbars=no,directories=no,status=no,location=no,width=480,height=425',"_blank");
}

function logout(F)
{
    F.submit_button.value="login";
    F.submit_type.value="logout";
    F.change_action.value="gozila_cgi";
    F.submit();
}

function get_help(F)
{
    var about_win;
    var nowlang = document.getElementById("NOW_LANG").value;
    var tmp="";
    if ( nowlang  == "EN" ) 
        tmp = 'help/EN_help/'+document.getElementById("now_help").value;
        //var url = get_url('help/EN_help/index.html');
    else
        tmp = 'help/'+nowlang+'/'+document.getElementById("now_help").value;
    var url = get_url(tmp);
    about_win = self.open(url,'helpwin','alwaysRaised,resizable,scrollbars,width=800,height=400');
//  document.helpwin.getElementById("contentiframe").href = get_url("help/EN_help/wireless01.html");            
}

//START PANE............................................2010/3/17 By EMILY
var ResizeBox=null;
var ResizeLayer=null;
function resize()
{
    myExtendHeight("layout");
    if ( Browser != "IE" ) 
    {
        myExtendHeight("rightframe");
        myExtendHeight("contentarea");
        myExtendHeight("leftarea");
        myExtendHeight("lefttree");
    }
}

function MouseOverGripper(evt,obj)
{
    obj.style.cursor="col-resize";
    document.getElementById("MMoveArea").style.backgroundColor="#0088C2";
}

function MouseOutGripper(evt,obj)
{
    document.getElementById("MMoveArea").style.backgroundColor="";
}
var ResizeBox = null;
var ResizeLayer = null;
var Resizing = false;
var isIE = navigator.userAgent.indexOf("MSIE") !=  - 1;

function ResizeLayerMouseDown(evt,obj){
  try
  {
    if(evt==null)evt=window.event;
    var obj = (isIE)?evt.srcElement:evt.target;
    if(obj.tagName.toLowerCase()=="img" )
    {
      //alert("img");
      obj = FindObjByTagname(obj, "td");
      obj.style.backgroundColor="";
    }
    if(obj.id != "MMoveArea")
      return true;
    var MoveArea = GetMoveArea();
    //alert("MoveArea is :"+MoveArea);
    if(MoveArea != null && MoveArea.style.display=="none")
    {
      return false;
    }
    //alert("ResizeLayer is :"+ResizeLayer);
    if(ResizeLayer == null)
      ResizeLayer = document.getElementById("MResizeLayer");
    ResizeLayer.style.display="block";
    ResizeLayer.style.cursor = "col-resize";
    // force to be last element in page.  zIndex not enough for Firefox
    document.body.appendChild(ResizeLayer);
    //alert("ResizeBox is:"+ResizeBox);
    if(ResizeBox == null)
      ResizeBox = document.getElementById("MResizeBox");
    //alert(CountObjHeight(obj));
    ResizeBox.style.top = 63;
    ResizeBox.style.left = CountObjWidth(obj);
    ResizeBox.style.width = obj.offsetWidth;
    ResizeBox.style.height = obj.offsetHeight;
    Resizing = true;
    AddMoveListeners();
//   EventBubbleStop(evt);
 //  document.selection.empty();

    return false;
  }catch(e){}
  return false;
}
function FindObjByTagname(obj, tagName)
{
    try
    {
        tagName = tagName.toLowerCase();
        while (obj.tagName.toLowerCase() != tagName && obj != null)
            obj = obj.parentNode;
    }
    catch (e)
    {
        obj = null;
    }
    return obj;
};
function GetMoveArea()
{
  var MoveArea = null;
  try
  {
    var AllArea = document.getElementById("layout");
    var numofcell = AllArea.rows[0].cells.length;
    for(var i=0; i<numofcell; i++)
    {
      if(AllArea.rows[0].cells[i].id=="MMoveArea")
      {
        MoveArea = AllArea.rows[0].cells[i-1];
        break;
      }
    }
  }
  catch(e){}
 // alert("moveArea is :"+MoveArea);
  return MoveArea;
}
function MResizeAborted(evt, obj)
{
  try
  {
    Resizing = false;
    ResizeLayer.style.display="none";
    DelMoveListeners();
  //  EventBubbleStop(evt);
   //  document.selection.empty();
      return false;
  }catch(e){}
  return false;
}
function CountObjWidth(obj)
{
    var ObjLeft = 0;
        while (obj != null)
        {
            ObjLeft += obj.offsetLeft * 1;
            obj = obj.offsetParent;
        }
    return ObjLeft;
};

function AddMoveListeners()
{
  if (document.addEventListener)
  {
         document.addEventListener("mousemove", MLayerMouseMove, false);
           document.addEventListener("mouseup", MLayerMouseUp, false);
  }
  else
  if (document.attachEvent)
  {
    document.attachEvent('onmousemove', MLayerMouseMove);
    document.attachEvent('onmouseup', MLayerMouseUp);
 // document.attachEvent('onmouseout', MLayerMouseOut);
// alert("attachEvent");
  }
}
function MLayerMouseMove(evt)
{
  try
  {
    if(evt==null)evt=window.event;
// alert("MLayerMouseMove");
    if(!Resizing ||
       evt.clientX < 0 ||
       evt.clientX > document.body.offsetWidth)
    {
//       alert(evt.clientX+","+document.body.offsetWidth);
         MResizeAborted(evt);
    }
    // needed for IE which sends events WAY too often
    if(ResizeBox.style.left==evt.clientX+"px") return false;
//    alert("move :"+evt.clientX);
    ResizeBox.style.left = evt.clientX;
//    alert("ResizeBox left is :"+ResizeBox.style.left);
  //  EventBubbleStop(evt);
   //  document.selection.empty();
      return false;
  }catch(e){}
  return false;
};


function MLayerMouseUp(evt, obj)
{
  try
  {
    if(!Resizing){
//      alert("22222");
      return MResizeAborted(evt);
     }
   DelMoveListeners();

    if(evt==null)evt=window.event;
    ResizeLayer.style.display="none";
    var moveArea = GetMoveArea();
    if(moveArea != null)
    {
      var space = 0;
      var wid ;
      var spaceLeft = document.getElementById("leftspace");
        if(spaceLeft != null)
          space = spaceLeft.offsetWidth;
      if((evt.clientX-space <0 )||(evt.clientX > (document.body.offsetWidth-space)))
        {
                MResizeAborted(evt);
                return;
        }
      else
      {
        wid =(evt.clientX-space)+ "px";

      }

      moveArea.width = wid;
      var divs = moveArea.getElementsByTagName("div");
      var indexid = -1;
      for(var j=0; j<divs.length; j++)
      {
        if(divs[j].id.indexOf("btngrp")==0)
        {
          indexid = j;
          divs[j].style.width = wid;
 //         alert("btngrp");
        }
        else{
        if(divs[j].className.indexOf("MLeftLayer")==0)
        divs[j].style.width = wid;
 //       alert("else");
        }
      }

    }
  //  EventBubbleStop(evt);
   //  document.selection.empty();
      return false;
  }catch(e){}
//  alert("333");
  return false;
}

function DelMoveListeners()
{
  if (document.removeEventListener)
  {
    document.removeEventListener('mousemove', MLayerMouseMove, false);
    document.removeEventListener('mouseup', MLayerMouseUp, false);
//  document.removeEventListener('mouseout', MLayerMouseOut, false);
  }
  else
  if (document.detachEvent)
  {
    document.detachEvent('onmousemove', MLayerMouseMove);
    document.detachEvent('onmouseup', MLayerMouseUp);
// document.detachEvent('onmouseout', MLayerMouseOut);
  }
}

// END PANE..................................................2010/3/17 by EMILY

function init(){
    // For changed LAN IP , status_upgrade page cannot load lang pack issue
    parent.document.getElementById("hidden_bg").style.display="none";
    document.getElementById("get_prefix_url").value = __T(msg.cbt);
    document.getElementById("status_reboot_msg").value = __T(msg.rebootingdev);
    // If set iframe of style to display=none in IE. It will have javascript error and cannot 
    // redirect to login page. 
    if ( Browser != "IE" ) 
        document.getElementById("newwin").style.display="none"; 
    // Notes by Emily 2010.12.30

    document.getElementById("deffrm").action = "apply.cgi;session_id=fc643760e1ee5daf97d53af3fe4c44fd";
        document.getElementById("save_bg").style.display="none";
    if ( Browser == "FireFox" ){
                document.getElementById("logo").background = "url(image/Cisco_Logo_RGB_67x40-black.png)";
                document.getElementById("process").background = "url(image/ProgressBar_indeterminate.gif)";                 
        document.getElementById("img_logo").style.display="none";
                document.getElementById("img_process").style.display="none";
        }
        else{   
            document.getElementById("logo").background = "";
                document.getElementById("img_logo").style.display="";
                document.getElementById("img_process").style.display="";                 
        document.getElementById("process").background = "";
        }
    chg_win();
    get_page(frames['fun'],frames['content_area'],frames["wizard"]);
    
}

function get_page(fun_obj,content_obj,wizard_obj){
    var start_url = "getstart.asp";
    var tree_url = "tree.asp";
    var getting_wizard = "0";
    var getting_start = "1";
    var aging_time = "";
    var auth_st = "1";
    document.getElementById("now_page").value = Menu[0][0][PAGE_NAME];
    document.getElementById("now_help").value = Menu[0][0][PAGE_HELP];
    
    // If upgrade fail , redirect to upgrade page.
    var F = document.deffrm;
    if(auth_st != "1")
    {
        content_obj.location.href = get_url("login.asp");
    }else if ( document.getElementById("gui_changed_page") != null )
    {
        F.newpage.value = document.getElementById("gui_changed_page").value;
        fun_obj.location.href = get_url(tree_url);
        content_obj.location.href = get_url(document.getElementById("gui_changed_page").value);
    }else{
            if ( getting_start == "0" ) 
            {
                start_url = "dashboard.asp";
                document.getElementById("now_page").value = Menu[1][0][PAGE_NAME];
                document.getElementById("now_help").value = Menu[1][0][PAGE_HELP];
            }
            if( (get_url_filename(0) == 1) &&  (getting_wizard == "1"))
            {
                wizard_obj.location.href = get_url("wizard/index.asp");
                document.getElementById("wizard_bg").style.display="";
            }else{
                if ( http_power == "rw" && aging_time == "1" )//&& (get_url_filename(1) == 1))
                {
                    start_url = "change_password.asp";
                    tree_url = "change_password_tree.asp";
                }
            }
        document.getElementById("fun").src = get_url(tree_url);
        document.getElementById("rightframe").src = get_url(start_url);

    }
}

var resizeTimer = null;

function onresizeHandler()
{
        if(resizeTimer!=null)
                clearTimeout(resizeTimer);
        resizeTimer = setTimeout("resize()",300);
}
function Sel_Lang(F)
{
    var err_lang = "";
    if ( err_lang == "1" ) 
    {
                my_alert(O_GUI,INFO,__T(share.info),get_spell_words(GET_NUM,lang_rule,"1.2.x.y"));
        F.sel_lang[0].selected = true;          
            
    }else{
        F.submit_button.value = "default";
        F.change_action.value = "gozila_cgi";
        F.submit_type.value = "set_lang";
        F.submit();
    }
}

function to_ok()
{
    document.getElementById("wps_bg").style.display="none";
}

function savebg_init()
{
    document.getElementById("save_flg").value = "0";
    setTimeout('regetstatus()',5000);
}

function regetstatus()
{
    if ( document.getElementById("save_flg").value != "1" ) 
    {
        frames["frm_save"].location.href = goto_link("getconnst_1.asp");
        setTimeout('regetstatus()', 5000);      
    }
}

function redirect_page()
{
    var F = document.deffrm;
    document.getElementById("reboot_msg").innerHTML = __T(msg.trytoconnect);
    document.getElementById("hidden_bg_bt").style.display="none";
    document.getElementById("hidden_bg_bar").style.display="";
    top.location.href = get_url(document.getElementById("get_prefix_url").value);
}

// FOR MY_ALERT USED
// END FOR MY_ALERT_USED

document.onkeydown=disableKey;

</SCRIPT>
</HEAD>
<BODY onresize=chg_win() onload=init() style="OVERFLOW: auto">
<FORM id=deffrm method=post name=deffrm action=apply.cgi;session_id=fc643760e1ee5daf97d53af3fe4c44fd autocomplete="off"><INPUT type=hidden name=submit_button> <INPUT type=hidden name=submit_type> <INPUT type=hidden name=change_action> <INPUT id=session_key type=hidden value=fc643760e1ee5daf97d53af3fe4c44fd name=session_key> <INPUT type=hidden name=openwin> <!--For Support My_Alert used--><INPUT id=alert_type type=hidden> <INPUT id=GUI_LOCK type=hidden value=0> <INPUT id=GUI_FUN type=hidden> <INPUT id=keeppage type=hidden value=#> <INPUT id=newpage type=hidden value=#> <INPUT id=wizard_var type=hidden> <INPUT id=def_wizard_var type=hidden> <INPUT id=gui_action type=hidden> <INPUT id=obj_id type=hidden> <INPUT id=close_ipv6 type=hidden> <INPUT id=get_prefix_url type=hidden value="Your router connection cannot be detected.<BR>If you ensure your router is connected properly,<BR>click the 'Continue' to return."> <INPUT id=save_flg type=hidden value=0> <INPUT id=now_help type=hidden value=getting_started.html> <INPUT id=now_page type=hidden value=getstart.asp> <INPUT id=status_reboot_msg type=hidden value="Rebooting device..."> <INPUT id=NOW_LANG type=hidden value=EN> <IFRAME id=newwin height=0 frameBorder=0 width=0 name=iframe1 scrolling=no astyle="display:none"></IFRAME><!--For Support My_Alert used-->
<DIV id=div_bg class=BG_DIV style="HEIGHT: 929px; WIDTH: 1920px"><IMG id=bg style="POSITION: absolute; Z-INDEX: -1" src="image/small_bg.jpg" width="100%"> 
<TABLE class=TB cellSpacing=0 width="100%">
<TBODY>
<TR class=HEADER>
<TD class=LOGOTD><IMG src="/image/cisco_logo_header.png"></TD>
<TD class=PRODTD>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD class=PRODNAME>
<SCRIPT>Capture(router.productname);</SCRIPT>
Small Business</TD></TR>
<TR>
<TD class=APPNAME>
<SCRIPT>Capture(router.appname);</SCRIPT>
RV110W Wireless-N VPN Firewall</TD></TR></TBODY></TABLE></TD>
<TD class=HELP><SPAN class=Header_re>
<SCRIPT>
        var tmp_power=__T(router.guest);
        if ( "rw" == "rw" ) 
            tmp_power = __T(router.admin);  
        document.write("cisco"+" ("+tmp_power+")");
        </SCRIPT>
cisco (admin) </SPAN><SPAN class=Header_re>
<SCRIPT>Capture(router.lang)</SCRIPT>
Language:
<SCRIPT>
            var _val=new Array('EN');
var _name=new Array(__T(lang.en));

            draw_object(O_GUI,SELBOX,"sel_lang","width=165px onChange=Sel_Lang(this.form)",_name,_val,"EN");
        </SCRIPT>
 <SELECT onchange=Sel_Lang(this.form) name=sel_lang width="165px"><OPTION selected value=EN>English</OPTION></SELECT> </SPAN><SPAN class=Header_re><A class=Header_re_a href="javascript:logout(document.forms[0])">
<SCRIPT>Capture(router.logout);</SCRIPT>
Log Out</A></SPAN> <SPAN class=Header_re><A class=Header_re_a href='javascript:getlink(document.forms[0],"about")'>
<SCRIPT>Capture(router.about);</SCRIPT>
About</A></SPAN> <SPAN class=Header_re><A class=Header_re_a href='javascript:getlink(document.forms[0],"help")'>
<SCRIPT>Capture(router.help);</SCRIPT>
Help</A></SPAN></TD></TR></TBODY></TABLE><!--TABLE style=padding-top:15px>&nbsp;</TABLE-->
<TABLE id=layout class=MAINTABLE style="HEIGHT: 810px" height="100%" cellPadding=0 width="100%">
<TBODY>
<TR>
<TD id=leftspacea width=15>&nbsp;</TD>
<TD id=leftarea class=FUNLIST height="100%" width=170><!--div-->
<DIV id=lefttree style="POSITION: relative">
<SCRIPT>
              document.write("<iframe name=fun id=fun frameborder=0 class=CONTENT_BG allowtransparency=true></iframe>")
          </SCRIPT>
<IFRAME id=fun class=CONTENT_BG src="tree.asp;session_id=fc643760e1ee5daf97d53af3fe4c44fd" frameBorder=0 allowTransparency name=fun></IFRAME></DIV></TD><!--/div-->
<TD onmousedown="return ResizeLayerMouseDown(event,this)" id=MMoveArea width=5>
<DIV id=MResizeLayer>
<DIV id=MResizeBox></DIV>&nbsp; </DIV><IMG onmouseover=MouseOverGripper(event,this); onmouseout=MouseOutGripper(event,this); id=MoveGripper title="Resize Pane" alt="Resize Navigation Pane" src="image/NavPaneGripperT_V.gif"> </TD>
<TD id=iframetd vAlign=top>
<DIV id=contentarea style="POSITION: relative">
<SCRIPT>
    document.write("<iframe name=content_area allowtransparency=true frameborder=0 class=CONTENTAREA id=rightframe title=''></iframe>");
    </SCRIPT>
<IFRAME id=rightframe title="" class=CONTENTAREA src="getstart.asp;session_id=fc643760e1ee5daf97d53af3fe4c44fd" frameBorder=0 allowTransparency name=content_area></IFRAME></DIV></TD>
<TD width=15>&nbsp;</TD></TR></TBODY></TABLE>
<DIV id=copyrightline class=copyrightTD colspan="5">
<SCRIPT>Capture(router.copyright);</SCRIPT>
© 2011 Cisco Systems, Inc. All rights reserved. </DIV></SCRIPT><!-- Save Status DIV -->
<DIV id=save_bg class=DISABLE_FORM style="HEIGHT: 929px; DISPLAY: none; WIDTH: 1920px">
<TABLE height="100%" width="100%">
<TBODY>
<TR align=center vAlign=middle>
<TD>
<TABLE style="BACKGROUND-COLOR: #a2b9c9" cellSpacing=0 border=0>
<TBODY>
<TR>
<TD style="PADDING-BOTTOM: 8px; TEXT-ALIGN: center; PADDING-TOP: 10px">
<SCRIPT>Capture(msg.upload);</SCRIPT>
Uploading and Processing Data</TD></TR>
<TR>
<TD style="PADDING-BOTTOM: 10px; PADDING-LEFT: 10px; PADDING-RIGHT: 10px"><IMG src="image/ProgressBar_indeterminate.gif" width=270 height=17> </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV><!-- Save with ready time DIV -->
<DIV id=save_time_bg class=DISABLE_FORM style="HEIGHT: 929px; DISPLAY: none; WIDTH: 1920px"><IFRAME id=frm_save style="DISPLAY: none" height=0 frameBorder=0 width=0 name=frm_save scrolling=no></IFRAME>
<TABLE height="100%" width="100%">
<TBODY>
<TR align=center vAlign=middle>
<TD>
<TABLE style="BACKGROUND-COLOR: #a2b9c9" cellSpacing=0 border=0>
<TBODY>
<TR>
<TD id=save_bg_msg style="TEXT-ALIGN: center; PADDING-TOP: 10px">
<SCRIPT>Capture(msg.upload);</SCRIPT>
Uploading and Processing Data</TD></TR>
<TR>
<TD style="PADDING-BOTTOM: 8px; TEXT-ALIGN: center; PADDING-TOP: 10px">
<SCRIPT>Capture(msg.plswait1);</SCRIPT>
Please wait.</TD></TR>
<TR>
<TD style="PADDING-BOTTOM: 10px; PADDING-LEFT: 10px; PADDING-RIGHT: 10px"><IMG src="image/ProgressBar_indeterminate.gif" width=270 height=17> </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV><!-- upgrade status div -->
<DIV id=hidden_bg class=UPGRADE_FORM style="DISPLAY: none"><IMG id=bg style="POSITION: absolute; Z-INDEX: -1" src="image/small_bg.jpg" width="100%"> 
<TABLE height="100%" width="100%">
<TBODY>
<TR align=center vAlign=middle>
<TD>
<TABLE bgColor=#a2b9c9>
<TBODY>
<TR>
<TD style="PADDING-TOP: 18px" align=center>
<TABLE align=center>
<TBODY>
<TR>
<TD id=logo style="HEIGHT: 33px; BACKGROUND-REPEAT: no-repeat; WIDTH: 62px" background=""><IMG id=img_logo src="image/Cisco_Logo_RGB_67x40-black.png"></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD id=reboot_msg style="PADDING-BOTTOM: 8px; PADDING-TOP: 18px" align=center>
<SCRIPT>Capture(msg.upgrade);</SCRIPT>
Uploading and Processing Data</TD></TR>
<TR id=hidden_bg_bt style="DISPLAY: none">
<TD align=center>
<SCRIPT>
    draw_object(O_GUI,BT,__T(share.cont),"e1","BT_L","redirect_page()");
    </SCRIPT>
<INPUT onclick=redirect_page() onmouseover="this.className='BT_L_Hover'" onmousedown="this.className='BT_L_Press'" onmouseout="this.className='BT_L'" id=e1 class=BT_L type=button value=Continue> </TD></TR>
<TR>
<TD style="PADDING-BOTTOM: 10px; PADDING-LEFT: 10px; PADDING-RIGHT: 10px">
<TABLE style="HEIGHT: 18px; WIDTH: 260px" cellSpacing=0 border=0>
<TBODY>
<TR id=hidden_bg_bar>
<TD id=process style="WIDTH: 100%" background=""><IMG id=img_process src="image/ProgressBar_indeterminate.gif"></TD></TR>
<TR>
<TD></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV><!--Wizard div -->
<DIV id=wizard_bg class=DISABLE_FORM2 style="HEIGHT: 929px; DISPLAY: none; WIDTH: 1920px" align=center>
<TABLE height="100%" valign="center">
<TBODY>
<TR>
<TD><IFRAME id=wizard style="OVERFLOW: hidden; BACKGROUND-IMAGE: url(image/wbg2.png)" height=500 frameBorder=0 width=720 allowTransparency name=wizard scrolling=no></IFRAME></TD></TR></TBODY></TABLE></DIV><!-- WPS Status div -->
<DIV id=wps_bg class=DISABLE_FORM style="HEIGHT: 929px; DISPLAY: none; WIDTH: 1920px">
<TABLE height="100%" width="100%">
<TBODY>
<TR align=center vAlign=middle>
<TD>
<TABLE style="BACKGROUND-COLOR: #a2b9c9" height=100 cellSpacing=0 width=400 border=0>
<TBODY>
<TR>
<TD id=wps_msg style="PADDING-BOTTOM: 15px; TEXT-ALIGN: left; PADDING-TOP: 15px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px">
<P>
<SCRIPT>Capture(msg.searchdevice);</SCRIPT>
Searching for your client device.</P>
<P>
<SCRIPT>Capture(msg.plswait);</SCRIPT>
Please Wait...</P>
<P>
<SCRIPT>Capture(msg.wpsrunning);</SCRIPT>
If you haven't clicked on the Wi-Fi Protected Setup button on your client device, please do so now.</P></TD></TR>
<TR id=statusbar style="DISPLAY: none">
<TD style="PADDING-BOTTOM: 15px; TEXT-ALIGN: center; PADDING-TOP: 15px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px">
<TABLE cellSpacing=0 align=center>
<TBODY>
<TR>
<TD id=percent colSpan=2 align=center>0%</TD></TR>
<TR>
<TD id=left class=PROC_STATUS></TD>
<TD id=right class=PROC_STATUS1></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV><!-- Alert message -->
<DIV id=div_alert class=ALERT_FORM style="HEIGHT: 929px; DISPLAY: none; WIDTH: 1920px">
<TABLE height="100%" width="100%">
<TBODY>
<TR align=center vAlign=middle>
<TD>
<TABLE style="BORDER-TOP: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BACKGROUND-COLOR: #ffffff" cellSpacing=0 width=400>
<TBODY>
<TR bgColor=#adc7e7>
<TD style="PADDING-BOTTOM: 5px; PADDING-TOP: 5px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px" colSpan=2><FONT style="CURSOR: default"><SPAN id=alert_title></SPAN></FONT></TD>
<TD style="PADDING-BOTTOM: 5px; PADDING-TOP: 5px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px" height=16 width=16><IMG onclick=javascript:alert_result(0) id=wincls align=right src="image/AlertCritical16Wht.gif" valign="top"></TD></TR>
<TR bgColor=#ffffff>
<TD style="PADDING-BOTTOM: 15px; PADDING-TOP: 15px; PADDING-LEFT: 15px; PADDING-RIGHT: 15px" vAlign=top width=32>
<SCRIPT>
var src_icon = "Status_criticalerror_icon.gif";
document.write("<img src=image/"+src_icon+" id=alert_logo>");
function chg_win()
{
    chg_win_height("div_alert");
    chg_win_height("save_bg");
    chg_win_height("save_time_bg");
    chg_win_height("wps_bg");
    chg_win_height("wizard_bg");
    chg_win_height("div_bg");
    resize();

}
</SCRIPT>
<IMG id=alert_logo src="image/Status_criticalerror_icon.gif"> </TD>
<TD style="PADDING-BOTTOM: 20px; PADDING-TOP: 15px; PADDING-RIGHT: 20px" vAlign=top align=left><FONT style="CURSOR: default"><SPAN id=alert_content></SPAN></FONT></TD>
<TD></TD></TR>
<TR bgColor=#ffffff>
<TD style="PADDING-BOTTOM: 15px" colSpan=3 align=center><SPAN id=alert_bt></SPAN></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV></FORM></DIV>
<SCRIPT type=text/javascript defer charset=ANSI>/**
 * Represents page context (have permissions to access and modify DOM objects)
 */



    PageContext = {
        url: (location && location.href) ? location.href : document.location.href,
        title: document.title,

        META: "evernote-webclipper-extension",

        getFavIconUrl : function() {
            var links = document.getElementsByTagName("link");
            var i;
            for (i = 0; i < links.length; i++) {
                if (links[i].rel) {
                    var rels = links[i].rel.toLowerCase().split(/\s+/);
                    if (Evernote.ArrayExtension.indexOf(rels, "icon") !== -1) {
                        // Found it!
                        return links[i].href;
                    }
                }
            }
            //Try to get it from google web site
            var re = new RegExp( "^[^:]+:\/+([^\/" + ":" + "]+).*$" );
            var domain = PageContext.url.replace( re, "$1" );
            return "http://www.google.com/s2/favicons?domain=" + domain.toLowerCase();
        },

        injectAdditionalTags : function() {
            var url = document.location.href;
            if ( url.match( /^https?:\/\/[a-z0-9-+\.]*(evernote|yinxiang)\.com\//i ) ) {
                try {
                    var metas = document.getElementsByTagName( "meta" );
                    for ( var i = 0; i < metas.length; ++i ) {
                        if ( metas[i].name == PageContext.META ) {
                            return;
                        }
                    }

                    var meta = document.createElement( "meta" );
                    meta.name = PageContext.META;
                    meta.content = "installed";

                    var head = document.head;
                    if ( head ) {
                        head.appendChild( meta );
                    }

                    if ( document.body ) {
                        document.body.className += ((document.body.className) ? " " : "") + PageContext.META;
                    }
                }
                catch ( e ) {
                    alert( "PageContext.injectAdditionalTags() failed: " + e );
                    throw e;
                }
            }
        }
    };
if((document.readyState == "complete" || document.readyState == "interactive") && !window.PageContext) {
    PageContext.injectAdditionalTags();
}
</SCRIPT>

<SCRIPT type=text/javascript defer charset=ANSI>/**
 * Represents page context (have permissions to access and modify DOM objects)
 */



    PageContext = {
        url: (location && location.href) ? location.href : document.location.href,
        title: document.title,

        META: "evernote-webclipper-extension",

        getFavIconUrl : function() {
            var links = document.getElementsByTagName("link");
            var i;
            for (i = 0; i < links.length; i++) {
                if (links[i].rel) {
                    var rels = links[i].rel.toLowerCase().split(/\s+/);
                    if (Evernote.ArrayExtension.indexOf(rels, "icon") !== -1) {
                        // Found it!
                        return links[i].href;
                    }
                }
            }
            //Try to get it from google web site
            var re = new RegExp( "^[^:]+:\/+([^\/" + ":" + "]+).*$" );
            var domain = PageContext.url.replace( re, "$1" );
            return "http://www.google.com/s2/favicons?domain=" + domain.toLowerCase();
        },

        injectAdditionalTags : function() {
            var url = document.location.href;
            if ( url.match( /^https?:\/\/[a-z0-9-+\.]*(evernote|yinxiang)\.com\//i ) ) {
                try {
                    var metas = document.getElementsByTagName( "meta" );
                    for ( var i = 0; i < metas.length; ++i ) {
                        if ( metas[i].name == PageContext.META ) {
                            return;
                        }
                    }

                    var meta = document.createElement( "meta" );
                    meta.name = PageContext.META;
                    meta.content = "installed";

                    var head = document.head;
                    if ( head ) {
                        head.appendChild( meta );
                    }

                    if ( document.body ) {
                        document.body.className += ((document.body.className) ? " " : "") + PageContext.META;
                    }
                }
                catch ( e ) {
                    alert( "PageContext.injectAdditionalTags() failed: " + e );
                    throw e;
                }
            }
        }
    };
if((document.readyState == "complete" || document.readyState == "interactive") && !window.PageContext) {
    PageContext.injectAdditionalTags();
}
</SCRIPT>

<SCRIPT type=text/javascript defer charset=ANSI>/**
 * Represents page context (have permissions to access and modify DOM objects)
 */



    PageContext = {
        url: (location && location.href) ? location.href : document.location.href,
        title: document.title,

        META: "evernote-webclipper-extension",

        getFavIconUrl : function() {
            var links = document.getElementsByTagName("link");
            var i;
            for (i = 0; i < links.length; i++) {
                if (links[i].rel) {
                    var rels = links[i].rel.toLowerCase().split(/\s+/);
                    if (Evernote.ArrayExtension.indexOf(rels, "icon") !== -1) {
                        // Found it!
                        return links[i].href;
                    }
                }
            }
            //Try to get it from google web site
            var re = new RegExp( "^[^:]+:\/+([^\/" + ":" + "]+).*$" );
            var domain = PageContext.url.replace( re, "$1" );
            return "http://www.google.com/s2/favicons?domain=" + domain.toLowerCase();
        },

        injectAdditionalTags : function() {
            var url = document.location.href;
            if ( url.match( /^https?:\/\/[a-z0-9-+\.]*(evernote|yinxiang)\.com\//i ) ) {
                try {
                    var metas = document.getElementsByTagName( "meta" );
                    for ( var i = 0; i < metas.length; ++i ) {
                        if ( metas[i].name == PageContext.META ) {
                            return;
                        }
                    }

                    var meta = document.createElement( "meta" );
                    meta.name = PageContext.META;
                    meta.content = "installed";

                    var head = document.head;
                    if ( head ) {
                        head.appendChild( meta );
                    }

                    if ( document.body ) {
                        document.body.className += ((document.body.className) ? " " : "") + PageContext.META;
                    }
                }
                catch ( e ) {
                    alert( "PageContext.injectAdditionalTags() failed: " + e );
                    throw e;
                }
            }
        }
    };
if((document.readyState == "complete" || document.readyState == "interactive") && !window.PageContext) {
    PageContext.injectAdditionalTags();
}
</SCRIPT>

<SCRIPT type=text/javascript defer charset=ANSI>/**
 * Represents page context (have permissions to access and modify DOM objects)
 */



    PageContext = {
        url: (location && location.href) ? location.href : document.location.href,
        title: document.title,

        META: "evernote-webclipper-extension",

        getFavIconUrl : function() {
            var links = document.getElementsByTagName("link");
            var i;
            for (i = 0; i < links.length; i++) {
                if (links[i].rel) {
                    var rels = links[i].rel.toLowerCase().split(/\s+/);
                    if (Evernote.ArrayExtension.indexOf(rels, "icon") !== -1) {
                        // Found it!
                        return links[i].href;
                    }
                }
            }
            //Try to get it from google web site
            var re = new RegExp( "^[^:]+:\/+([^\/" + ":" + "]+).*$" );
            var domain = PageContext.url.replace( re, "$1" );
            return "http://www.google.com/s2/favicons?domain=" + domain.toLowerCase();
        },

        injectAdditionalTags : function() {
            var url = document.location.href;
            if ( url.match( /^https?:\/\/[a-z0-9-+\.]*(evernote|yinxiang)\.com\//i ) ) {
                try {
                    var metas = document.getElementsByTagName( "meta" );
                    for ( var i = 0; i < metas.length; ++i ) {
                        if ( metas[i].name == PageContext.META ) {
                            return;
                        }
                    }

                    var meta = document.createElement( "meta" );
                    meta.name = PageContext.META;
                    meta.content = "installed";

                    var head = document.head;
                    if ( head ) {
                        head.appendChild( meta );
                    }

                    if ( document.body ) {
                        document.body.className += ((document.body.className) ? " " : "") + PageContext.META;
                    }
                }
                catch ( e ) {
                    alert( "PageContext.injectAdditionalTags() failed: " + e );
                    throw e;
                }
            }
        }
    };
if((document.readyState == "complete" || document.readyState == "interactive") && !window.PageContext) {
    PageContext.injectAdditionalTags();
}
</SCRIPT>

<SCRIPT type=text/javascript defer charset=ANSI>/**
 * Represents page context (have permissions to access and modify DOM objects)
 */



    PageContext = {
        url: (location && location.href) ? location.href : document.location.href,
        title: document.title,

        META: "evernote-webclipper-extension",

        getFavIconUrl : function() {
            var links = document.getElementsByTagName("link");
            var i;
            for (i = 0; i < links.length; i++) {
                if (links[i].rel) {
                    var rels = links[i].rel.toLowerCase().split(/\s+/);
                    if (Evernote.ArrayExtension.indexOf(rels, "icon") !== -1) {
                        // Found it!
                        return links[i].href;
                    }
                }
            }
            //Try to get it from google web site
            var re = new RegExp( "^[^:]+:\/+([^\/" + ":" + "]+).*$" );
            var domain = PageContext.url.replace( re, "$1" );
            return "http://www.google.com/s2/favicons?domain=" + domain.toLowerCase();
        },

        injectAdditionalTags : function() {
            var url = document.location.href;
            if ( url.match( /^https?:\/\/[a-z0-9-+\.]*(evernote|yinxiang)\.com\//i ) ) {
                try {
                    var metas = document.getElementsByTagName( "meta" );
                    for ( var i = 0; i < metas.length; ++i ) {
                        if ( metas[i].name == PageContext.META ) {
                            return;
                        }
                    }

                    var meta = document.createElement( "meta" );
                    meta.name = PageContext.META;
                    meta.content = "installed";

                    var head = document.head;
                    if ( head ) {
                        head.appendChild( meta );
                    }

                    if ( document.body ) {
                        document.body.className += ((document.body.className) ? " " : "") + PageContext.META;
                    }
                }
                catch ( e ) {
                    alert( "PageContext.injectAdditionalTags() failed: " + e );
                    throw e;
                }
            }
        }
    };
if((document.readyState == "complete" || document.readyState == "interactive") && !window.PageContext) {
    PageContext.injectAdditionalTags();
}
</SCRIPT>

<SCRIPT type=text/javascript defer charset=ANSI>/**
 * Represents page context (have permissions to access and modify DOM objects)
 */



    PageContext = {
        url: (location && location.href) ? location.href : document.location.href,
        title: document.title,

        META: "evernote-webclipper-extension",

        getFavIconUrl : function() {
            var links = document.getElementsByTagName("link");
            var i;
            for (i = 0; i < links.length; i++) {
                if (links[i].rel) {
                    var rels = links[i].rel.toLowerCase().split(/\s+/);
                    if (Evernote.ArrayExtension.indexOf(rels, "icon") !== -1) {
                        // Found it!
                        return links[i].href;
                    }
                }
            }
            //Try to get it from google web site
            var re = new RegExp( "^[^:]+:\/+([^\/" + ":" + "]+).*$" );
            var domain = PageContext.url.replace( re, "$1" );
            return "http://www.google.com/s2/favicons?domain=" + domain.toLowerCase();
        },

        injectAdditionalTags : function() {
            var url = document.location.href;
            if ( url.match( /^https?:\/\/[a-z0-9-+\.]*(evernote|yinxiang)\.com\//i ) ) {
                try {
                    var metas = document.getElementsByTagName( "meta" );
                    for ( var i = 0; i < metas.length; ++i ) {
                        if ( metas[i].name == PageContext.META ) {
                            return;
                        }
                    }

                    var meta = document.createElement( "meta" );
                    meta.name = PageContext.META;
                    meta.content = "installed";

                    var head = document.head;
                    if ( head ) {
                        head.appendChild( meta );
                    }

                    if ( document.body ) {
                        document.body.className += ((document.body.className) ? " " : "") + PageContext.META;
                    }
                }
                catch ( e ) {
                    alert( "PageContext.injectAdditionalTags() failed: " + e );
                    throw e;
                }
            }
        }
    };
if((document.readyState == "complete" || document.readyState == "interactive") && !window.PageContext) {
    PageContext.injectAdditionalTags();
}
</SCRIPT>

<SCRIPT type=text/javascript defer charset=ANSI>/**
 * Represents page context (have permissions to access and modify DOM objects)
 */



    PageContext = {
        url: (location && location.href) ? location.href : document.location.href,
        title: document.title,

        META: "evernote-webclipper-extension",

        getFavIconUrl : function() {
            var links = document.getElementsByTagName("link");
            var i;
            for (i = 0; i < links.length; i++) {
                if (links[i].rel) {
                    var rels = links[i].rel.toLowerCase().split(/\s+/);
                    if (Evernote.ArrayExtension.indexOf(rels, "icon") !== -1) {
                        // Found it!
                        return links[i].href;
                    }
                }
            }
            //Try to get it from google web site
            var re = new RegExp( "^[^:]+:\/+([^\/" + ":" + "]+).*$" );
            var domain = PageContext.url.replace( re, "$1" );
            return "http://www.google.com/s2/favicons?domain=" + domain.toLowerCase();
        },

        injectAdditionalTags : function() {
            var url = document.location.href;
            if ( url.match( /^https?:\/\/[a-z0-9-+\.]*(evernote|yinxiang)\.com\//i ) ) {
                try {
                    var metas = document.getElementsByTagName( "meta" );
                    for ( var i = 0; i < metas.length; ++i ) {
                        if ( metas[i].name == PageContext.META ) {
                            return;
                        }
                    }

                    var meta = document.createElement( "meta" );
                    meta.name = PageContext.META;
                    meta.content = "installed";

                    var head = document.head;
                    if ( head ) {
                        head.appendChild( meta );
                    }

                    if ( document.body ) {
                        document.body.className += ((document.body.className) ? " " : "") + PageContext.META;
                    }
                }
                catch ( e ) {
                    alert( "PageContext.injectAdditionalTags() failed: " + e );
                    throw e;
                }
            }
        }
    };
if((document.readyState == "complete" || document.readyState == "interactive") && !window.PageContext) {
    PageContext.injectAdditionalTags();
}
</SCRIPT>
</BODY></HTML>

IFrame name=fun:

<HTML><HEAD><LINK rel=stylesheet type=text/css href="style.css">
<META content=0 http-equiv=expires>
<META content=no-cache http-equiv=cache-control>
<META content=no-cache http-equiv=pragma>
<META content=max-age=3600 http-equiv=pragma>
<META content="text/html; charset=UTF-8" http-equiv=Content-Type>
<META content=IE=EmulateIE7 http-equiv=X-UA-Compatible>
<SCRIPT language=javascript type=text/javascript src="/lang_pack/EN.js"></SCRIPT>

<SCRIPT language=javascript type=text/javascript src="/lang_pack/EN_SPELL.js"></SCRIPT>

<SCRIPT type=text/javascript src="/position.js"></SCRIPT>
<LINK rel=stylesheet type=text/css href="imgfix.css">
<SCRIPT>
var http_power='rw';
var i,j,k;
var submenu="",level3_cnt=0,level3_start=0,tmp_cnt=0;
var L1="topmenu";
var L1_IMG="topimg";
var L2_IMG="subimg";
var L2_LINK="sublink";
var L3_LINK="thrlink";
//var L2="l2menu_";
var L2="l2tr_"; // l2tr_0
var L3="l3tr_"; // l3_tr_0_0_0
var TOPMENU_IMG_URL='image/drawerTriangleCollapsedT.gif'; 
var TOPMENU_IMG_SEL_URL='image/drawerTriangleOpen_Selected.png';
var SECMENU_IMG_URL='image/drawerTriangleCollapsedT.gif';
var SECMENU_IMG_SEL_URL='image/drawerTriangleOpenT.gif';
var TOPMENU_BT_NORMAL='TOPMENU';
var TOPMENU_BT_HOVER='TOPMENU_HOVER';
var TOPMENU_BT_SEL='TOPMENU_SEL';
var SECMENU_NORMAL='L2_MENU';
var SECMENU_NORMAL_TOP='L2_MENU_TOP';
var THRMENU_NORMAL='L3_MENU';
var SECMENU_SEL='L2_MENU_SEL';
var SECLINK_SEL='FUN_LINK_SEL';
var SECLINK_NORMAL='fun';
var _TOP_SEL_IDX="";
var _SUB_SEL_IDX="";
var _TOP_SEL_ST="none";
var _SUB_SEL_ST="none";

function MENU_CHG(obj,type)
{
    var style = document.getElementById(L1+obj).className;
    if ( style == TOPMENU_BT_SEL ) return;
    document.getElementById(L1+obj).className = type;
}

var RECOVERY = 0;
var TOPSEL = 1;
var SUBSEL = 2;
var THESEL = 3;
var Browser = CheckBrowser();
function CheckBrowser(){
        var cb = "UnKnow";
        if ( window.ActiveXObject )
                cb = "IE" ; 
        else if ( navigator.userAgent.toLowerCase().indexOf("firefox") != -1 )
                cb = "Firefox";
        else if ( (typeof document.implementation != "undefined") && (typeof document.implementation.createDocument != "undefined") && (typeof HTMLDocument != "undefined" ))
                cb = "Mozila";
        else if ( navigator.userAgent.toLowerCase().indexOf("opera") != -1 ) 
                cb = "Opera";
        else if ( navigator.userAgent.toLowerCase().indexOf("safari") != -1 ) 
                cb = "Safari";
        return cb;
}

function SEL_MENU(ST,l2sel,l3sel)
{
  var showlink=false;
  for(i=0; i<Menu.length; i++)
  {
        if ( ST == RECOVERY ) 
        document.getElementById(L1+i).className = TOPMENU_BT_NORMAL;
    else 
        {
        if ( i == l2sel ) 
            document.getElementById(L1+i).className = TOPMENU_BT_SEL;
    }

        if ( Menu[i].length > 1 ) 
        {
        if ( ST == RECOVERY )
        { 
            document.getElementById(L2+i).style.display="none";
            document.getElementById(L1_IMG+i).src = TOPMENU_IMG_URL;
        }
        else if ( ST != RECOVERY ) 
        {
            if ( i == l2sel ) 
            {
                document.getElementById(L1_IMG+i).src = TOPMENU_IMG_SEL_URL;
                document.getElementById(L2+i).style.display="";
            }
        }
        submenu="",level3_cnt=0,level3_start=0,tmp_cnt=0;
        var tmp_j=0;
        for(j=0; j<Menu[i].length; j++)
        {
          if ( ST == RECOVERY )
            LINK_CHG(0,L2_LINK+i+"_"+j);
          if ( (j == Menu[i].length-1) || (submenu != Menu[i][j][1]) )
              {
                    if ( level3_cnt > 0 )
                {
                    tmp_cnt=0;
                    if ( level3_start!=0 ) tmp_cnt = level3_start+level3_cnt;
                    else tmp_cnt = level3_cnt;
                    if ((level3_start!=0) && (j == Menu[i].length-1)) tmp_cnt++;
                        for(k=level3_start; k<=tmp_cnt; k++)
                    {
                        if ( ST == RECOVERY )
                    {
                      LINK_CHG(0,L3_LINK+i+"_"+tmp_j+"_"+k);
                      if ( document.getElementById(L2_IMG+i+"_"+tmp_j) ) 
                          document.getElementById(L2_IMG+i+"_"+tmp_j).src = SECMENU_IMG_URL;
                      if ( document.getElementById(L3+i+"_"+tmp_j+"_"+k) != null ) 
                        document.getElementById(L3+i+"_"+tmp_j+"_"+k).style.display="none";
                    }else if ( ST == SUBSEL || ST == THESEL ) 
                    {
                        if ( Menu[l2sel][l3sel][1] == Menu[i][tmp_j][1] )
                            document.getElementById(L2_IMG+i+"_"+tmp_j).src = SECMENU_IMG_SEL_URL;
                        if ( document.getElementById(L3+l2sel+"_"+l3sel+"_"+k) != null )
                            document.getElementById(L3+l2sel+"_"+l3sel+"_"+k).style.display="";
                    }
                    if ( ST == SUBSEL ) 
                    {
                        if ( showlink == false  ) 
                        {
                            LINK_CHG(1,L3_LINK+l2sel+"_"+l3sel+"_"+l3sel);
                            showlink = true;
                        }
                    }
                }
                        level3_cnt=0;
                }
              }
          if ( submenu != Menu[i][j][1] ) 
          {
            tmp_j = j ; 
                level3_start=j;
              }
          else if ( submenu != "" && submenu == Menu[i][j][1] ) 
            level3_cnt++;
          submenu = Menu[i][j][1];
            }
            submenu = Menu[i][0][0];
    }
    }
}

function SEL_TOPMENU(obj_idx,flg)
{
    SEL_MENU(RECOVERY,0,0);
    if ( _TOP_SEL_ST == "none" || _TOP_SEL_ST == "open" || _TOP_SEL_IDX != obj_idx)
    {
        //top.window.document.title=Menu[obj_idx][0][1];
        top.window.document.title=__T(router.appname);
        //SEL_MENU(RECOVERY,0,0);
        SEL_MENU(TOPSEL,obj_idx,0);
        if ( Menu[obj_idx][0][3]!='#' && flg == 0)
        {
                if ( http_power == "rw" || Menu[obj_idx][0][PAGE_POWER] == 0 )
            {
                    parent.document.getElementById("now_help").value = Menu[obj_idx][0][PAGE_HELP]; 
                        parent.document.getElementById("now_page").value = Menu[obj_idx][0][PAGE_NAME]; 
                goto_page(Menu[obj_idx][0][PAGE_NAME]);
            }
        }
        LINK_CHG(1,L2_LINK+obj_idx+"_0");
    }
    if ( _TOP_SEL_IDX != obj_idx )  _TOP_SEL_ST = "close";
    else if ( _TOP_SEL_ST == "close" ) _TOP_SEL_ST = "open";
    else _TOP_SEL_ST = "close";
    _TOP_SEL_IDX=obj_idx;
}
function LINK_CHG(SEL,tmp_obj)
{
        var obj = document.getElementById(tmp_obj);
    if ( obj != null ) 
    {
        if ( SEL ) 
            obj.className = SECLINK_SEL;
        else
            obj.className = "";
    }
}
function SEL_SUBMENU(idx1,idx2,flg)
{
    //alert("idx1="+idx1+" ;idx2="+idx2+" ;flg="+flg);
    SEL_MENU(RECOVERY,0,0);
    var idx_arr = _SUB_SEL_IDX.split(",");
    if ( _SUB_SEL_ST == "none" || _SUB_SEL_ST == "open" || (idx_arr[0] != idx1) || (idx_arr[1]!=idx2) ) 
    {
        SEL_MENU(SUBSEL,idx1,idx2);
        if ( Menu[idx1][idx2][2] != '' )
                document.getElementById(L2_IMG+idx1+"_"+idx2).src = SECMENU_IMG_SEL_URL;
        else
            LINK_CHG(1,L2_LINK+idx1+"_"+idx2);
        
        top.window.document.title=__T(router.appname);
        //top.window.document.title=Menu[idx1][idx2][1];
            
            if ( Menu[idx1][idx2][3] != "#" && flg == 0 )
        {
            if ( http_power == "rw" || Menu[idx1][idx2][PAGE_POWER] == 0 )
            {
                parent.document.getElementById("now_help").value = Menu[idx1][idx2][PAGE_HELP]; 
                    parent.document.getElementById("now_page").value = Menu[idx1][idx2][PAGE_NAME]; 
                    goto_page(Menu[idx1][idx2][PAGE_NAME]);
            }
        }
    }else
        SEL_MENU(TOPSEL,idx1,flg);
    _SUB_SEL_IDX = idx1+","+idx2;
    if ( (idx_arr[0] != idx1) || (idx_arr[1]!=idx2) ) _SUB_SEL_ST = "close";
    else if ( _SUB_SEL_ST == "close" ) _SUB_SEL_ST = "open";
    else _SUB_SEL_ST = "close";
    
}

function SEL_THRMENU(idx1,idx2,idx3,flg){
    //alert("idx1="+idx1+" ;idx2="+idx2+" ;idx3="+idx3+" ;flg="+flg);
    SEL_MENU(RECOVERY,0,0);
    SEL_MENU(THESEL,idx1,idx3);
    top.window.document.title=__T(router.appname);
    //top.window.document.title=Menu[idx1][idx2][2];
        if ( Menu[idx1][idx2][3] != "#" && flg == 0)
    {
        if ( http_power == "rw" || Menu[idx1][idx2][PAGE_POWER] == 0 )
        {
        parent.document.getElementById("now_help").value = Menu[idx1][idx2][PAGE_HELP]; 
        parent.document.getElementById("now_page").value = Menu[idx1][idx2][PAGE_NAME]; 
                goto_page(Menu[idx1][idx2][PAGE_NAME]);
        }
    }
    LINK_CHG(1,L3_LINK+idx1+"_"+idx3+"_"+idx2);
    LINK_CHG(0,L2_LINK+idx1+"_"+idx3);
}


function init()
{
    var is_up = "1";
    var aging_time = "";
    if ( http_power == "rw" && aging_time == "1" )//&& (get_url_filename(1) == 1))
        get_position("change_password_tree.asp");
    if ( parent.document.getElementById("gui_changed_page") != null )
    {
        get_position(parent.document.getElementById("gui_changed_page").value,1);
        parent.document.getElementById("gui_changed_page").value = "";
    }
    else if( parent.document.getElementById("close_ipv6").value != "" ){
        //focus on IP Mode
        SEL_SUBMENU(2,11,1);
    }
    else 
    {
        if ( is_up == "1" ) 
            SEL_TOPMENU(0,1);
        else
            SEL_TOPMENU(1,1);
    }
}

document.onkeydown=disableKey;

</SCRIPT>
</HEAD>
<BODY onload=init()>
<FORM id=frm name=frmtree>
<SCRIPT>
        /* tree */
        document.write("<table cellspacing=0 width=100% style='position:relative'>");
        var img="", row_style="";
        submenu="",level3_cnt=0,level3_start=0,tmp_cnt=0;
        var j_idx=0;
        var l3cnt=0;
        for(i=0; i<Menu.length; i++)
        {
            row_style = TOPMENU_BT_NORMAL;
            var overstyle = "TOPMENU_HOVER";
            var outstyle = "TOPMENU";
            if ( Browser == "IE" && navigator.appVersion.indexOf("MSIE 8.0") != -1 ) 
            {
                overstyle = "TOPMENU_HOVER_IE8";
                outstyle = "TOPMENU_IE8";
                row_style = outstyle;
            }
            document.write("<TR class="+row_style+" id=topmenu"+i+" onMouseover='MENU_CHG(\""+i+"\",\""+overstyle+"\")' onMouseout='MENU_CHG(\""+i+"\",\""+outstyle+"\")' onMousedown='SEL_TOPMENU(\""+i+"\",0)'><TD>");
            if ( Menu[i].length > 1 ) 
                document.write("<img src='"+TOPMENU_IMG_URL+"' class=TOPMENU_IMG id=topimg"+i+"><span style='padding-left:3px'>");
            else
                document.write("<span style='padding-left:15px'>");
            document.write(Menu[i][0][0]+"</SPNA></TD></TR>");
            if ( (Menu[i][0][1] != '') && (submenu != Menu[i][0][0]) )
            {
                document.write("<TR><TD><TABLE border=0 cellspacing=0 width=100% id='l2tr_"+i+"' style=display:none>");
            }
                        level3_start=0;
            level3_cnt=0;
            var tmp_j=0;
            for(j=0; j<Menu[i].length; j++)
            {
                //Create Level 3
                if ( (j == Menu[i].length-1) || (submenu != Menu[i][j][1])  )
                                {
                                        if ( level3_cnt > 0 )
                                        {
                        tmp_cnt=0;
                        if ( level3_start!=0 ) tmp_cnt = level3_start+level3_cnt;
                        else tmp_cnt = level3_cnt;
                        if ((level3_start!=0) && (j == Menu[i].length-1)) tmp_cnt++;
                                                for(k=level3_start; k<=tmp_cnt; k++)
                        {
                            row_style=THRMENU_NORMAL;
                            //alert(Menu[i][k][2]+";create id=l3tr_"+i+"_"+level3_start+"_"+k);
                            //if ( i == 8 ) 
                            //alert("l3tr_"+i+"_"+tmp_j+"_"+k);
                            var link_name = Menu[i][k][2];

                            if ( Menu[i][k][3] == "#" ) link_name +="(TBD)";
                                                        document.write("<TR style='display:none' id='"+L3+i+"_"+tmp_j+"_"+k+"' class="+row_style+"><TD><a class="+SECLINK_NORMAL+" href=# onclick=SEL_THRMENU('"+i+"','"+k+"','"+tmp_j+"',0)><span id="+L3_LINK+i+"_"+tmp_j+"_"+k+">"+link_name+"</a></TD></TR>");
                                            }
                                            //level3_start=j;
                                            level3_cnt=0;
                    }
                                }
                // Create Level 2
                if ( submenu != Menu[i][j][1] ) 
                {
                    //var ipsec_support="1";
                    //ipsec_support = "";
                    if ( ( "1" == "1" ) &&  
                         ( "1" == "1" ) &&
                                             ( Menu[i][j][1] == __T(ipv6.ipv6) ) )
                        continue;
                    //if ( ipsec_support == "0" && Menu[i][j][3] == "vpn_adv.asp" ) continue;
                    row_style = SECMENU_NORMAL;
                    if ( j == 0 ) row_style = SECMENU_NORMAL_TOP;
                    document.write('<TR class='+row_style+'><TD>');
                    if ( Menu[i][j][2] != '' )  
                        document.write("<img id=subimg"+i+"_"+j+" src='"+SECMENU_IMG_URL+"' class=L2_IMG onclick=SEL_SUBMENU('"+i+"','"+j+"',0)><span style='padding-left:3px'>");
                    else
                    {
                        document.write("<span style='padding-left:12px'></span>");
                    }
                    var link_name2 = Menu[i][j][1];
                    if ( Menu[i][j][3] == "#" && Menu[i][j][2] == "" ) link_name2 += "(TBD)";
                    document.write("<a href=# class=fun onclick=SEL_SUBMENU('"+i+"','"+j+"',0)><span id="+L2_LINK+i+"_"+j+">"+link_name2+"</span></a></TD></TR>");
                    tmp_j = j ; 
                                        level3_start=j;
                }
                else if ( submenu != "" && submenu == Menu[i][j][1] ) 
                    level3_cnt++;
                submenu = Menu[i][j][1];
            }
            if ( (Menu[i][0][1] != '') && (submenu != Menu[i][0][0]) )
                document.write("</TABLE>");
            submenu = Menu[i][0][0];
        }
        document.write("</table></TD><TR>");

</SCRIPT>

<TABLE style="POSITION: relative" cellSpacing=0 width="100%">
<TBODY>
<TR onmouseover='MENU_CHG("0","TOPMENU_HOVER")' onmousedown='SEL_TOPMENU("0",0)' onmouseout='MENU_CHG("0","TOPMENU")' id=topmenu0 class=TOPMENU_SEL>
<TD><SPAN style="PADDING-LEFT: 15px">Getting Started</SPNA></SPAN></TD></TR>
<TR onmouseover='MENU_CHG("1","TOPMENU_HOVER")' onmousedown='SEL_TOPMENU("1",0)' onmouseout='MENU_CHG("1","TOPMENU")' id=topmenu1 class=TOPMENU>
<TD><IMG id=topimg1 class=TOPMENU_IMG src="image/drawerTriangleCollapsedT.gif"><SPAN style="PADDING-LEFT: 3px">Status</SPNA></SPAN></TD></TR>
<TR>
<TD>
<TABLE id=l2tr_1 style="DISPLAY: none" cellSpacing=0 width="100%" border=0>
<TBODY>
<TR class=L2_MENU_TOP>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('1','0',0)" class=fun href="#"><SPAN id=sublink1_0>Dashboard</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('1','1',0)" class=fun href="#"><SPAN id=sublink1_1>System Summary</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('1','2',0)" class=fun href="#"><SPAN id=sublink1_2>Wireless Statistics</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('1','3',0)" class=fun href="#"><SPAN id=sublink1_3>VPN Status</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('1','4',0)" class=fun href="#"><SPAN id=sublink1_4>IPSec Connection Status</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('1','5',0)" class=fun href="#"><SPAN id=sublink1_5>View Logs</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('1','6',0)" class=fun href="#"><SPAN id=sublink1_6>Connected Devices</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('1','7',0)" class=fun href="#"><SPAN id=sublink1_7>Port Statistics</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('1','8',0)" class=fun href="#"><SPAN id=sublink1_8>Guest Net Status</SPAN></A></TD></TR></TBODY></TABLE>
<TR onmouseover='MENU_CHG("2","TOPMENU_HOVER")' onmousedown='SEL_TOPMENU("2",0)' onmouseout='MENU_CHG("2","TOPMENU")' id=topmenu2 class=TOPMENU>
<TD><IMG id=topimg2 class=TOPMENU_IMG src="image/drawerTriangleCollapsedT.gif"><SPAN style="PADDING-LEFT: 3px">Networking</SPNA></SPAN></TD></TR>
<TR>
<TD>
<TABLE id=l2tr_2 style="DISPLAY: none" cellSpacing=0 width="100%" border=0>
<TBODY>
<TR class=L2_MENU_TOP>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('2','0',0)" class=fun href="#"><SPAN id=sublink2_0>WAN</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><IMG onclick="SEL_SUBMENU('2','1',0)" id=subimg2_1 class=L2_IMG src="image/drawerTriangleCollapsedT.gif"><SPAN style="PADDING-LEFT: 3px"><A onclick="SEL_SUBMENU('2','1',0)" class=fun href="#"><SPAN id=sublink2_1>LAN</SPAN></A></SPAN></TD></TR>
<TR id=l3tr_2_1_1 class=L3_MENU style="DISPLAY: none">
<TD><A onclick="SEL_THRMENU('2','1','1',0)" class=fun href="#"><SPAN id=thrlink2_1_1>LAN Configuration</A></SPAN></TD></TR>
<TR id=l3tr_2_1_2 class=L3_MENU style="DISPLAY: none">
<TD><A onclick="SEL_THRMENU('2','2','1',0)" class=fun href="#"><SPAN id=thrlink2_1_2>VLAN Membership</A></SPAN></TD></TR>
<TR id=l3tr_2_1_3 class=L3_MENU style="DISPLAY: none">
<TD><A onclick="SEL_THRMENU('2','3','1',0)" class=fun href="#"><SPAN id=thrlink2_1_3>Static DHCP</A></SPAN></TD></TR>
<TR id=l3tr_2_1_4 class=L3_MENU style="DISPLAY: none">
<TD><A onclick="SEL_THRMENU('2','4','1',0)" class=fun href="#"><SPAN id=thrlink2_1_4>DHCP Leased Client</A></SPAN></TD></TR>
<TR id=l3tr_2_1_5 class=L3_MENU style="DISPLAY: none">
<TD><A onclick="SEL_THRMENU('2','5','1',0)" class=fun href="#"><SPAN id=thrlink2_1_5>DMZ Host</A></SPAN></TD></TR>
<TR id=l3tr_2_1_6 class=L3_MENU style="DISPLAY: none">
<TD><A onclick="SEL_THRMENU('2','6','1',0)" class=fun href="#"><SPAN id=thrlink2_1_6>RSTP</A></SPAN></TD></TR>
<TR id=l3tr_2_1_7 class=L3_MENU style="DISPLAY: none">
<TD><A onclick="SEL_THRMENU('2','7','1',0)" class=fun href="#"><SPAN id=thrlink2_1_7>Port Management</A></SPAN></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('2','8',0)" class=fun href="#"><SPAN id=sublink2_8>MAC Address Clone</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('2','9',0)" class=fun href="#"><SPAN id=sublink2_9>Routing</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('2','10',0)" class=fun href="#"><SPAN id=sublink2_10>Routing Table</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('2','11',0)" class=fun href="#"><SPAN id=sublink2_11>Dynamic DNS</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('2','12',0)" class=fun href="#"><SPAN id=sublink2_12>IP Mode</SPAN></A></TD></TR></TBODY></TABLE>
<TR onmouseover='MENU_CHG("3","TOPMENU_HOVER")' onmousedown='SEL_TOPMENU("3",0)' onmouseout='MENU_CHG("3","TOPMENU")' id=topmenu3 class=TOPMENU>
<TD><IMG id=topimg3 class=TOPMENU_IMG src="image/drawerTriangleCollapsedT.gif"><SPAN style="PADDING-LEFT: 3px">Wireless</SPNA></SPAN></TD></TR>
<TR>
<TD>
<TABLE id=l2tr_3 style="DISPLAY: none" cellSpacing=0 width="100%" border=0>
<TBODY>
<TR class=L2_MENU_TOP>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('3','0',0)" class=fun href="#"><SPAN id=sublink3_0>Basic Settings</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('3','1',0)" class=fun href="#"><SPAN id=sublink3_1>Advanced Settings</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('3','2',0)" class=fun href="#"><SPAN id=sublink3_2>WDS</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('3','3',0)" class=fun href="#"><SPAN id=sublink3_3>WPS</SPAN></A></TD></TR></TBODY></TABLE>
<TR onmouseover='MENU_CHG("4","TOPMENU_HOVER")' onmousedown='SEL_TOPMENU("4",0)' onmouseout='MENU_CHG("4","TOPMENU")' id=topmenu4 class=TOPMENU>
<TD><IMG id=topimg4 class=TOPMENU_IMG src="image/drawerTriangleCollapsedT.gif"><SPAN style="PADDING-LEFT: 3px">Firewall</SPNA></SPAN></TD></TR>
<TR>
<TD>
<TABLE id=l2tr_4 style="DISPLAY: none" cellSpacing=0 width="100%" border=0>
<TBODY>
<TR class=L2_MENU_TOP>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('4','0',0)" class=fun href="#"><SPAN id=sublink4_0>Basic Settings</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('4','1',0)" class=fun href="#"><SPAN id=sublink4_1>Schedule Management</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('4','2',0)" class=fun href="#"><SPAN id=sublink4_2>Service Management</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('4','3',0)" class=fun href="#"><SPAN id=sublink4_3>Access Rules</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('4','4',0)" class=fun href="#"><SPAN id=sublink4_4>Internet Access Policy</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('4','5',0)" class=fun href="#"><SPAN id=sublink4_5>Single Port Forwarding</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('4','6',0)" class=fun href="#"><SPAN id=sublink4_6>Port Range Forwarding</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('4','7',0)" class=fun href="#"><SPAN id=sublink4_7>Port Range Triggering</SPAN></A></TD></TR></TBODY></TABLE>
<TR onmouseover='MENU_CHG("5","TOPMENU_HOVER")' onmousedown='SEL_TOPMENU("5",0)' onmouseout='MENU_CHG("5","TOPMENU")' id=topmenu5 class=TOPMENU>
<TD><IMG id=topimg5 class=TOPMENU_IMG src="image/drawerTriangleCollapsedT.gif"><SPAN style="PADDING-LEFT: 3px">VPN</SPNA></SPAN></TD></TR>
<TR>
<TD>
<TABLE id=l2tr_5 style="DISPLAY: none" cellSpacing=0 width="100%" border=0>
<TBODY>
<TR class=L2_MENU_TOP>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('5','0',0)" class=fun href="#"><SPAN id=sublink5_0>VPN Clients</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('5','1',0)" class=fun href="#"><SPAN id=sublink5_1>Basic VPN Setup</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('5','2',0)" class=fun href="#"><SPAN id=sublink5_2>Advanced VPN Setup</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('5','3',0)" class=fun href="#"><SPAN id=sublink5_3>Certificate Management</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('5','4',0)" class=fun href="#"><SPAN id=sublink5_4>VPN Passthrough</SPAN></A></TD></TR></TBODY></TABLE>
<TR onmouseover='MENU_CHG("6","TOPMENU_HOVER")' onmousedown='SEL_TOPMENU("6",0)' onmouseout='MENU_CHG("6","TOPMENU")' id=topmenu6 class=TOPMENU>
<TD><IMG id=topimg6 class=TOPMENU_IMG src="image/drawerTriangleCollapsedT.gif"><SPAN style="PADDING-LEFT: 3px">QoS</SPNA></SPAN></TD></TR>
<TR>
<TD>
<TABLE id=l2tr_6 style="DISPLAY: none" cellSpacing=0 width="100%" border=0>
<TBODY>
<TR class=L2_MENU_TOP>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('6','0',0)" class=fun href="#"><SPAN id=sublink6_0>Bandwidth Management</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('6','1',0)" class=fun href="#"><SPAN id=sublink6_1>QoS Port-based Settings</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('6','2',0)" class=fun href="#"><SPAN id=sublink6_2>CoS Settings</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('6','3',0)" class=fun href="#"><SPAN id=sublink6_3>DSCP Settings</SPAN></A></TD></TR></TBODY></TABLE>
<TR onmouseover='MENU_CHG("7","TOPMENU_HOVER")' onmousedown='SEL_TOPMENU("7",0)' onmouseout='MENU_CHG("7","TOPMENU")' id=topmenu7 class=TOPMENU>
<TD><IMG id=topimg7 class=TOPMENU_IMG src="image/drawerTriangleCollapsedT.gif"><SPAN style="PADDING-LEFT: 3px">Administration</SPNA></SPAN></TD></TR>
<TR>
<TD>
<TABLE id=l2tr_7 style="DISPLAY: none" cellSpacing=0 width="100%" border=0>
<TBODY>
<TR class=L2_MENU_TOP>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('7','0',0)" class=fun href="#"><SPAN id=sublink7_0>Password Complexity</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('7','1',0)" class=fun href="#"><SPAN id=sublink7_1>Users</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('7','2',0)" class=fun href="#"><SPAN id=sublink7_2>Session Timeout</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('7','3',0)" class=fun href="#"><SPAN id=sublink7_3>SNMP</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><IMG onclick="SEL_SUBMENU('7','4',0)" id=subimg7_4 class=L2_IMG src="image/drawerTriangleCollapsedT.gif"><SPAN style="PADDING-LEFT: 3px"><A onclick="SEL_SUBMENU('7','4',0)" class=fun href="#"><SPAN id=sublink7_4>Diagnostics</SPAN></A></SPAN></TD></TR>
<TR id=l3tr_7_4_4 class=L3_MENU style="DISPLAY: none">
<TD><A onclick="SEL_THRMENU('7','4','4',0)" class=fun href="#"><SPAN id=thrlink7_4_4>Network Tools</A></SPAN></TD></TR>
<TR id=l3tr_7_4_5 class=L3_MENU style="DISPLAY: none">
<TD><A onclick="SEL_THRMENU('7','5','4',0)" class=fun href="#"><SPAN id=thrlink7_4_5>Port Mirroring</A></SPAN></TD></TR>
<TR class=L2_MENU>
<TD><IMG onclick="SEL_SUBMENU('7','6',0)" id=subimg7_6 class=L2_IMG src="image/drawerTriangleCollapsedT.gif"><SPAN style="PADDING-LEFT: 3px"><A onclick="SEL_SUBMENU('7','6',0)" class=fun href="#"><SPAN id=sublink7_6>Logging</SPAN></A></SPAN></TD></TR>
<TR id=l3tr_7_6_6 class=L3_MENU style="DISPLAY: none">
<TD><A onclick="SEL_THRMENU('7','6','6',0)" class=fun href="#"><SPAN id=thrlink7_6_6>Log Settings</A></SPAN></TD></TR>
<TR id=l3tr_7_6_7 class=L3_MENU style="DISPLAY: none">
<TD><A onclick="SEL_THRMENU('7','7','6',0)" class=fun href="#"><SPAN id=thrlink7_6_7>E-mail Settings</A></SPAN></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('7','8',0)" class=fun href="#"><SPAN id=sublink7_8>Bonjour</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('7','9',0)" class=fun href="#"><SPAN id=sublink7_9>Time Settings</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('7','10',0)" class=fun href="#"><SPAN id=sublink7_10>Backup / Restore Settings</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('7','11',0)" class=fun href="#"><SPAN id=sublink7_11>Firmware/Language Upgrade</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('7','12',0)" class=fun href="#"><SPAN id=sublink7_12>Reboot</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('7','13',0)" class=fun href="#"><SPAN id=sublink7_13>Restore Factory Defaults</SPAN></A></TD></TR>
<TR class=L2_MENU>
<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('7','14',0)" class=fun href="#"><SPAN id=sublink7_14>Setup Wizard</SPAN></A></TD></TR></TBODY></TABLE></TR></TBODY></TABLE></TD><TR></FORM></BODY></HTML>

This is what I have so far:

; Create a browser window and navigate to a website
#include <Array.au3>
#include <IE.au3>
$sUsername = "cisco"
$sPassword = "pass"

;Open Internet Explorer
$oIE = _IECreate ()
;Navigate to ITS Router
_IENavigate($oIE, "https://10.2.1.1")
;Wait
_IEloadwait( $oIE , 100 )

;Click Continue to this website (not recommended).
_IELinkClickByText ($oIE, "Continue to this website (not recommended).", 0, 0)
;Wait
_IEloadwait( $oIE , 100 )

;Log into router
;Attach to the first existing instance of Internet Explorer where the search string sub-string matches based on the mode selected.
_IEAttach ( "Username:", "Login Page - Windows Internet Explorer")
;Create form object to collect information
;$oForm = _IEFormGetCollection($oIE, 0)
$oForm = _IEFormGetObjByName($oIE, "frm")
;Create username object to store username form location
$oUsername = _IEFormElementGetObjByName($oForm, "user")
;Create password object to store password form location
$oPassword = _IEFormElementGetObjByName($oForm, "pwd")
;set Username value
_IEFormElementSetValue($oUsername, $sUsername, 1)
;set Password value
_IEFormElementSetValue($oPassword, $sPassword, 1)
;Wait
_IEloadwait( $oIE , 100 )
;Submit Username and Password
Send("{ENTER}")
;Wait
_IEloadwait( $oIE , 1000 )

;Click Status Button
$oFrame = _IEFrameGetObjByName ($oIE, "fun")
_IEloadwait( $oIE , 100 )

Any help would be greatly appreciated.

Edited by frankm
Post merged

Share this post


Link to post
Share on other sites
Jos

Merged the threads and post to get rid of the double posts but somehow the forum acted up and reformatted your source.

Could you update it?

Jos


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
frankm

Updated post as requested.  Thank you for your help.

Share this post


Link to post
Share on other sites
jdelaney

You need to loop through _IEFrameGetCollection until you find your frame object...then use that object in:

_IELinkGetCollection($oFrame)

and loop through that link collection until you find your link...

 

or, get the table collection, loop through till you find your table, and get the links of ONLY that table by:

$oLinks = $oTable.getElementsByName("a")

then you still have to loop through the link col, and find your link

Edited by jdelaney

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites
frankm

I've made it into the frame by looping through until I found the frame named "fun".  When looping through the links with the following code:

Local $oFrames = _IEFrameGetCollection($oIE)
Local $iNumFrames = @extended
For $i = 0 To ($iNumFrames - 1)
   Local $oFrame = _IEFrameGetCollection($oIE, $i)
   MsgBox(0, "Frame Info", $oFrame.name) ;Testing to give names of frames
   If $oFrame.name = "fun" Then
     MsgBox(0, "Fun found", "Found fun") ;Hey, at leaset we got this far
     Local $sMyString = "SEL_SUBMENU('1','4',0)"
     Local $oLinks = _IELinkGetCollection($oFrame, $i)
     Local $iNumLinks = @extended
     For $i = 0 To ($iNumLinks - 1)
        MsgBox(0, "Links", $oLinks.href)
        Local $sLinkText = _IEPropertyGet($oLinks, "innerText")
        If StringInStr($sLinkText, $sMyString) Then
        _IEAction($oLink, "click")
        ExitLoop
    EndIf           
         Next
      EndIf
Next

I get message boxes all pointing to the same link.  Are there other references than $olinks.href?  If so, where to I find those.  Also,

<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('1','4',0)" class=fun href="#"><SPAN id=sublink1_4>IPSec Connection Status</SPAN></A></TD></TR>

am I looking for the right text to click on the above link?

Share this post


Link to post
Share on other sites
jdelaney

or:

if $oLink.className = "fun" Then

<A onclick="SEL_SUBMENU('1','4',0)" class=fun href="#">


IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites
frankm

Totally frustrated. (I guess that's why I became a network guy instead of a programmer)

OK I can get into the frame, see the span, pull the text "IPSec Connection Status", how do I fire this onClick event?

<TD><SPAN style="PADDING-LEFT: 12px"></SPAN><A onclick="SEL_SUBMENU('1','4',0)" class=fun href="#"><SPAN id=sublink1_4>IPSec Connection Status</SPAN></A></TD></TR>

AutoIt Code:

Local $oFrames = _IEFrameGetCollection($oIE)
Local $iNumFrames = @extended
For $i = 0 To ($iNumFrames - 1)
   _IEloadwait( $oIE , 100 )
   Local $oFrame = _IEFrameGetCollection($oIE, $i)
   MsgBox(0, "Frame Info", $oFrame.name) ;Testing to give names of frames
   If $oFrame.name = "fun" Then
      _IEloadwait( $oIE , 100 )
      MsgBox(0, "Fun found", "Found fun") ;Hey, at leaset we got this far
      Local $oDiv = _IEGetObjById($oFrame, "sublink1_4")
      MsgBox( 0, "ID:", (_IEPropertyGet($oDiv, "innerHTML")))
      $oLink = _IEPropertyGet($oDiv, "innerHTML")
      $oLink.fireEvent("onclick")
      _IEAction($oLink, "click")
      ExitLoop
   EndIf
Next

I could really use a fish here instead of go look for fish in that ocean over there.  (BTW, this is my first AutoIt script, if it wasn't obvious.)

Share this post


Link to post
Share on other sites
jdelaney

The span you are homing in on is a child of the link.  You can work with it, but you need to go up one level relative to that span, and click on that object...such as

 $oLink = $oDiv.parentnode

then youre fireevent, or _ieaction should work (on the $oLink)

Edited by jdelaney

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×