1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
6<meta HTTP-EQUIV="Expires" CONTENT="-1">
7<link rel="shortcut icon" href="images/favicon.png">
8<link rel="icon" href="images/favicon.png">
9<title>Untitled Document</title>
10<link rel="stylesheet" type="text/css" href="../NM_style.css">
11<link rel="stylesheet" type="text/css" href="../form_style.css">
12<script type="text/javascript" src="/general.js"></script>
13<script type="text/javascript" src="/state.js"></script>
14<script>
15if(parent.location.pathname.search("index") === -1) top.location.href = "../index.asp";
16
17var remoteIP = '<% nvram_get("lan_gateway_now"); %>';
18remoteIP = (remoteIP == '')?'<% nvram_get("lan_gateway_now"); %>';
19var re_status = parent.getConnectingStatus();
20
21function initial(){
22	if(re_status == -1){
23		showtext(document.getElementById("Connstatus"), "<#OP_RE_item#>");
24		document.getElementById("remoteIP_tr").style.display = "none";
25		setTimeout("set_re_status();",6000);
26	}
27	else
28		set_re_status();
29		
30	document.getElementById("remoteIP_span").innerHTML = (remoteIP == "")?"<#AP_fail_get_IPaddr#>":remoteIP;
31}
32
33function set_re_status(){
34	re_status = parent.getConnectingStatus();
35	//alert("re_status "+re_status);
36	if(re_status == 2){
37		showtext(document.getElementById("Connstatus"), "<#Connected#>");
38		document.getElementById("remoteIP_tr").style.display = "";
39	}
40	else{
41		showtext(document.getElementById("Connstatus"), "<#CTL_Disconnect#>");
42		document.getElementById("remoteIP_tr").style.display = "none";
43	}
44}
45
46function sbtnOver(o){
47	o.style.color = "#FFFFFF";		
48	o.style.background = "url(/images/sbtn.gif) #FFCC66";
49	o.style.cursor = "pointer";
50}
51
52function sbtnOut(o){
53	o.style.color = "#000000";
54	o.style.background = "url(/images/sbtn0.gif) #FFCC66";
55}
56</script>
57</head>
58
59<body class="statusbody" onload="initial();">
60<table width="95%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3" class="table1px">
61  <tr>
62    <th width="120"><#PPPConnection_x_WANLink_itemname#></th>
63    <td width="150"><span id="Connstatus"></span></td>
64  </tr>
65  <tr id="remoteIP_tr">
66    <th><#AP_Remote_IP#></th>
67    <td><span id="remoteIP_span"></span></td>
68  </tr>
69  <tr>
70    <th><#AP_survey#></th>
71    <td><input type="button" class="sbtn" value="<#btn_go#>" onclick="javascript:parent.location.href='../survey.htm';" onmouseover="sbtnOver(this);" onmouseout="sbtnOut(this);"></td>
72  </tr>   
73</table>
74</body>
75</html>
76