1<html xmlns="http://www.w3.org/1999/xhtml">
2<head>     
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
5<meta HTTP-EQUIV="Expires" CONTENT="-1">
6<link rel="stylesheet" type="text/css" href="/form_style.css"> 
7<link rel="stylesheet" type="text/css" href="qis_style.css">
8
9<script type="text/JavaScript" src="/state.js"></script>
10<script type="text/javascript" src="/js/ex_overlib.js"></script>
11<script type="text/JavaScript" src="/form.js"></script>
12<script>
13var flag = '<% get_parameter("flag"); %>';
14
15function initial(){
16	parent.document.title = "ASUS Wireless Router <#Web_Title#> - <#QKSet_account_webtitle#>";
17	hideLinkTag();
18	flash_button();
19	
20	get_value_from_parent();
21	
22	show_prev_button();
23} 
24
25function get_value_from_parent(){
26	if(flag == "auto_way")
27		document.form.flag.value = flag;
28	
29	document.form.wan_heartbeat_x.value = parent.document.QKform.wan_heartbeat_x.value;
30	
31	if(parent.document.QKform.wan_proto.value == "l2tp")
32		document.form.wan_proto[1].checked = 1;
33	else
34		document.form.wan_proto[0].checked = 1;
35	
36	document.form.wan_heartbeat_x.value = parent.document.QKform.wan_heartbeat_x.value;
37}
38
39function get_value_to_parent(){
40	parent.document.QKform.wan_heartbeat_x.value = document.form.wan_heartbeat_x.value;
41	
42	if(document.form.wan_proto[1].checked)
43		parent.document.QKform.wan_proto.value = "l2tp";
44	else
45		parent.document.QKform.wan_proto.value = "pptp";
46	
47	parent.document.QKform.wan_heartbeat_x.value = document.form.wan_heartbeat_x.value;
48}
49
50function show_prev_button(){
51	if(flag == "auto_way")
52		document.form.prev_page.value = parent.document.QKform.prev_page.value;
53	else
54		document.form.prev_page.value = "/qis/QIS_internet_type.htm";
55}
56
57function gotoAccount(){
58	if(document.form.wan_heartbeat_x.value.length <= 0){
59		alert("<#QIS_internet_vpn_alert#>");
60		document.form.wan_heartbeat_x.focus();
61		document.form.wan_heartbeat_x.select();
62		return;
63	}
64	
65	if(!DomainValidate(document.form.wan_heartbeat_x))
66		return;
67	
68	get_value_to_parent();
69	
70	parent.document.QKform.prev_page.value = "/qis/QIS_internet_vpn.htm";
71	document.form.action = "/qis/QIS_internet_account.htm";
72		
73	document.form.submit();
74}
75
76function show_hint(field_order){
77	if(field_order == 1)
78		return overlib("<#BOP_isp_heart_desc#>", LEFT);
79}
80</script>                                          
81</head>   
82
83<body onLoad="initial();" onunLoad="no_flash_button();">
84<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
85<form method="post" name="form" action="/start_apply.htm">
86<input type="hidden" name="flag" value="">
87<input type="hidden" name="prev_page" value="">
88
89<div class="QISmain">
90<div class="description_down"><#QIS_internet_vpn_title#></div>
91<fieldset>
92<legend>
93	<#QIS_internet_vpn_type#>
94	<input type="radio" name="wan_proto" class="input" value="pptp">PPTP
95	<input type="radio" name="wan_proto" class="input" value="l2tp">L2TP
96</legend>
97	<table class="QISform" width="400" border="0" align="center" cellpadding="3" cellspacing="0">
98		<tr>
99			<th width="180" onmouseover="return show_hint(1);" onmouseout="return nd();">
100				<#PPPConnection_x_HeartBeat_itemname#>
101			</th>
102			<td class="QISformtd">
103				<input type="text" name="wan_heartbeat_x" title="<#BOP_isp_heart_item#>" value="" size="36" maxlength="256" onkeypress="return is_string(this);" class="input">
104			</td>
105		</tr>
106	</table>
107</fieldset>
108</div>
109
110<div class='QISfoot'>
111  <input type='button' id="prevButton" value="<#CTL_prev#>" onclick="gotoprev(document.form);" class="sbtn" width="70" align="center">
112  <input type='button' id="nextButton" value="<#CTL_next#>" onclick="gotoAccount();" class="sbtn" width="70" align="center">
113</div>
114
115</form> 
116</body> 
117</html>
118