1<html> 2<head> 3<title></title> 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<script type="text/javascript"> 8var page_modified = 0; 9var restart_time = 0; 10 11var current_page = '<% get_parameter("current_page"); %>'; 12var next_page = '<% get_parameter("next_page"); %>'; 13var action_script = '<% get_parameter("action_script"); %>'; 14var group_id = '<% get_parameter("group_id"); %>'; 15var getflag = '<% get_parameter("flag"); %>'; 16 17function started_validating(){ 18} 19 20function done_validating(action){ 21 parent.done_validating(action, group_id); 22} 23 24function started_committing(){ 25} 26 27function done_committing(){ 28 page_modified = 1; 29} 30 31function no_changes_and_no_committing(){ 32} 33 34function invalid_variable_value(variable, bad_value, message){ 35} 36 37function restart_needed_time(second){ 38 restart_time = second; 39} 40 41function delay_redirect(next_url){ 42 document.redirectForm.action = next_url; 43 document.redirectForm.target = ""; 44 document.redirectForm.submit(); 45} 46 47function top_delay_redirect(next_url){ 48 document.redirectForm.action = next_url; 49 document.redirectForm.target = "_parent"; 50 document.redirectForm.submit(); 51} 52 53function showdr_advise(){ 54 if(parent.parent.document.forms[0].current_page.value == "/QIS_wizard.htm" 55 && parent.parent.document.forms[0].wan_route_x.value == "IP_Bridged" 56 && parent.parent.document.forms[0].wan_nat_x.value == "0"){ 57 parent.parent.$('drword').innerHTML = "<#DrSurf_sweet_advise1#><br/><br/>"; 58 setTimeout("parent.parent.$('drword').innerHTML = '<#DrSurf_sweet_advise3#><br/><br/>';", 5000); 59 //setTimeout("parent.parent.detectLANstatus();", 1000); 60 setTimeout("parent.parent.detectLANstatus('"+next_page+"', '"+getflag+"');", restart_time*1000); 61 } 62 else{ 63 parent.parent.$('drword').innerHTML = "<#DrSurf_sweet_advise1#><br/><br/>"; 64 //setTimeout("parent.parent.detectLANstatus();", 1000); 65 setTimeout("parent.parent.detectLANstatus('"+next_page+"', '"+getflag+"');", restart_time*1000); 66 } 67} 68 69function initial(){ 70 if(page_modified == 1){ 71 if(parent.parent.document.forms[0].current_page.value == "/QIS_wizard.htm" // wired client choose the AP mode. 72 && parent.parent.document.forms[0].wan_route_x.value == "IP_Bridged" 73 && parent.parent.document.forms[0].wan_nat_x.value == "0" 74 ){ 75 parent.parent.dr_advise(); 76 setTimeout("showdr_advise();", 5000); 77 } 78 else if(parent.parent.isWLclient()){ 79 parent.parent.dr_advise(); 80 setTimeout("showdr_advise();", 5000); 81 } 82 else if(next_page == "/qis/QIS_finish.htm"){ 83 parent.parent.showLoading(restart_time, "waiting"); 84 setTimeout("parent.location.href = '"+next_page+"';", restart_time*1000); 85 } 86 else{ 87 parent.showLoading(restart_time); 88 setTimeout("top_delay_redirect('"+next_page+"');", restart_time*1000); 89 //setTimeout("parent.location.href = '"+next_page+"';", restart_time*1000); // For IE redirect page. 90 } 91 } 92 else{ 93 if(next_page == "/QIS_wizard.htm"){ 94 top_delay_redirect(next_page); 95 } 96 else{ 97 parent.parent.location.href = next_page; 98 } 99 } 100} 101</script> 102</head> 103 104<body onload="initial();"> 105<form method="post" name="redirectForm" action="" target=""> 106<input type="hidden" name="flag" value='<% get_parameter("flag"); %>'> 107</form> 108 109<% update_variables(); %> 110<% convert_asus_variables(); %> 111<% asus_nvram_commit(); %> 112<% notify_services(); %> 113 114</body> 115</html> 116