1154 lines
58 KiB
HTML
1154 lines
58 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 4.0//EN">
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||
|
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
||
|
<title>VPN planning advisor</title>
|
||
|
|
||
|
<script language = "Javascript" src = "../rzahg/iccommon.js"></script>
|
||
|
<script language = "Javascript" src = "../rzahg/icextwindow.js"></script>
|
||
|
<script type="text/javascript" language="Javascript">
|
||
|
<!-- //////////
|
||
|
//START NON-TRANSLATABLE
|
||
|
//Obtain name of HTML file in parent frame.
|
||
|
var parentDir = parent.window.location.href.substring(0,location.href.lastIndexOf('/')+1);
|
||
|
var parentUrl = parent.window.location.href.substring(parentDir.length,parent.window.location.href.length+1);
|
||
|
if (parentUrl.indexOf("#") >= 0) { parentUrl = parentUrl.substring(0,parentUrl.indexOf("#"));}
|
||
|
|
||
|
function restoreValues() {
|
||
|
//Is the hidden frame already loaded with the correct html?
|
||
|
if (parentUrl != "rzalradvvpnwelcome.htm") {
|
||
|
window.location = "rzalradvvpnwelcome.htm"; //load advisor frameset
|
||
|
return;
|
||
|
} else {
|
||
|
//Obtain name of HTML file in hidden frame.
|
||
|
var hiddenDir = parent.hidden.window.location.href.substring(0,location.href.lastIndexOf('/')+1);
|
||
|
var hiddenUrl = parent.hidden.window.location.href.substring(hiddenDir.length,parent.hidden.window.location.href.length+1);
|
||
|
if (hiddenUrl.indexOf("#") >= 0) { hiddenUrl = hiddenUrl.substring(0,hiddenUrl.indexOf("#"));}
|
||
|
if (hiddenUrl != "rzalradvvpnhidden.htm") {
|
||
|
//Correct HTML not loaded, load it
|
||
|
parent.hidden.window.location = "rzalradvvpnhidden.htm";
|
||
|
} else { //already loaded
|
||
|
restoreValues2();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function changeHidden() {
|
||
|
if (document.form1.idtype[0].selected == true) {
|
||
|
MM_showHideLayers('ipsegs','','show');
|
||
|
MM_showHideLayers('ranger','','hide');
|
||
|
MM_showHideLayers('textin','','hide');
|
||
|
MM_showHideLayers('subber','','hide');
|
||
|
} else {
|
||
|
if (document.form1.idtype[4].selected == true) {
|
||
|
MM_showHideLayers('textin','','show');
|
||
|
MM_showHideLayers('ranger','','hide');
|
||
|
MM_showHideLayers('ipsegs','','hide');
|
||
|
MM_showHideLayers('subber','','hide');
|
||
|
} else {
|
||
|
if (document.form1.idtype[1].selected == true) {
|
||
|
MM_showHideLayers('ranger','','show');
|
||
|
MM_showHideLayers('textin','','hide');
|
||
|
MM_showHideLayers('ipsegs','','hide');
|
||
|
MM_showHideLayers('subber','','hide');
|
||
|
} else {
|
||
|
if (document.form1.idtype[3].selected == true) {
|
||
|
MM_showHideLayers('ranger','','hide');
|
||
|
MM_showHideLayers('textin','','hide');
|
||
|
MM_showHideLayers('ipsegs','','hide');
|
||
|
MM_showHideLayers('subber','','hide');
|
||
|
} else {
|
||
|
//subnet
|
||
|
MM_showHideLayers('ranger','','hide');
|
||
|
MM_showHideLayers('textin','','hide');
|
||
|
MM_showHideLayers('ipsegs','','hide');
|
||
|
MM_showHideLayers('subber','','show');
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// restoreValues2()
|
||
|
//
|
||
|
// This function is called when the the page is loaded. The function
|
||
|
// checks the applet to see if any values had been previously set. If
|
||
|
// values differ from page defaults, change values to match what user
|
||
|
// had selected.
|
||
|
function restoreValues2() {
|
||
|
if ((parent.hidden.savevalue[14] != "") ||
|
||
|
(navigator.appName == "Microsoft Internet Explorer" && parent.hidden.savevalue[53] != "")) {
|
||
|
if (parseInt(parent.hidden.savevalue[14]) == 0) {
|
||
|
//ip version 4 address
|
||
|
document.form1.idtype[0].selected = true;
|
||
|
MM_showHideLayers('textin','','hide');
|
||
|
MM_showHideLayers('ranger','','hide');
|
||
|
MM_showHideLayers('subber','','hide');
|
||
|
MM_showHideLayers('ipsegs','','show');
|
||
|
if (isNS && !isNS6 == true) {
|
||
|
document.layers.ipsegs.document.form2.ip1.value = parent.hidden.savevalue[53];
|
||
|
document.layers.ipsegs.document.form2.ip2.value = parent.hidden.savevalue[54];
|
||
|
document.layers.ipsegs.document.form2.ip3.value = parent.hidden.savevalue[55];
|
||
|
document.layers.ipsegs.document.form2.ip4.value = parent.hidden.savevalue[56];
|
||
|
document.layers.textin.document.form3.reset;
|
||
|
document.layers.ranger.document.form4.reset;
|
||
|
document.layers.subber.document.form5.reset;
|
||
|
} else {
|
||
|
document.form2.ip1.value = parent.hidden.savevalue[53];
|
||
|
document.form2.ip2.value = parent.hidden.savevalue[54];
|
||
|
document.form2.ip3.value = parent.hidden.savevalue[55];
|
||
|
document.form2.ip4.value = parent.hidden.savevalue[56];
|
||
|
document.form3.reset;
|
||
|
document.form4.reset;
|
||
|
document.form5.reset;
|
||
|
}
|
||
|
} else {
|
||
|
if (parseInt(parent.hidden.savevalue[14]) == 1) {
|
||
|
//range
|
||
|
document.form1.idtype[1].selected = true;
|
||
|
MM_showHideLayers('textin','','hide');
|
||
|
MM_showHideLayers('ipsegs','','hide');
|
||
|
MM_showHideLayers('subber','','hide');
|
||
|
MM_showHideLayers('ranger','','show');
|
||
|
if (isNS && !isNS6 == true) {
|
||
|
document.layers.ranger.document.form4.ip5.value = parent.hidden.savevalue[53];
|
||
|
document.layers.ranger.document.form4.ip6.value = parent.hidden.savevalue[54];
|
||
|
document.layers.ranger.document.form4.ip7.value = parent.hidden.savevalue[55];
|
||
|
document.layers.ranger.document.form4.ip8.value = parent.hidden.savevalue[56];
|
||
|
document.layers.ranger.document.form4.ip9.value = parent.hidden.savevalue[57];
|
||
|
document.layers.ranger.document.form4.ip10.value = parent.hidden.savevalue[58];
|
||
|
document.layers.ranger.document.form4.ip11.value = parent.hidden.savevalue[59];
|
||
|
document.layers.ranger.document.form4.ip12.value = parent.hidden.savevalue[60];
|
||
|
document.layers.ipsegs.document.form2.reset;
|
||
|
document.layers.textin.document.form3.reset;
|
||
|
document.layers.subber.document.form5.reset;
|
||
|
} else {
|
||
|
document.form4.ip5.value = parent.hidden.savevalue[53];
|
||
|
document.form4.ip6.value = parent.hidden.savevalue[54];
|
||
|
document.form4.ip7.value = parent.hidden.savevalue[55];
|
||
|
document.form4.ip8.value = parent.hidden.savevalue[56];
|
||
|
document.form4.ip9.value = parent.hidden.savevalue[57];
|
||
|
document.form4.ip10.value = parent.hidden.savevalue[58];
|
||
|
document.form4.ip11.value = parent.hidden.savevalue[59];
|
||
|
document.form4.ip12.value = parent.hidden.savevalue[60];
|
||
|
document.form2.reset;
|
||
|
document.form3.reset;
|
||
|
document.form5.reset;
|
||
|
}
|
||
|
} else {
|
||
|
if (parseInt(parent.hidden.savevalue[14]) == 2) {
|
||
|
//subnet
|
||
|
document.form1.idtype[2].selected = true;
|
||
|
MM_showHideLayers('textin','','hide');
|
||
|
MM_showHideLayers('ranger','','hide');
|
||
|
MM_showHideLayers('ipsegs','','hide');
|
||
|
MM_showHideLayers('subber','','show');
|
||
|
if (isNS && !isNS6 == true) {
|
||
|
document.layers.subber.document.form5.sub1.value = parent.hidden.savevalue[53];
|
||
|
document.layers.subber.document.form5.sub2.value = parent.hidden.savevalue[54];
|
||
|
document.layers.subber.document.form5.sub3.value = parent.hidden.savevalue[55];
|
||
|
document.layers.subber.document.form5.sub4.value = parent.hidden.savevalue[56];
|
||
|
document.layers.subber.document.form5.mask1.value = parent.hidden.savevalue[57];
|
||
|
document.layers.subber.document.form5.mask2.value = parent.hidden.savevalue[58];
|
||
|
document.layers.subber.document.form5.mask3.value = parent.hidden.savevalue[59];
|
||
|
document.layers.subber.document.form5.mask4.value = parent.hidden.savevalue[60];
|
||
|
document.layers.ipsegs.document.form2.reset;
|
||
|
document.layers.textin.document.form3.reset;
|
||
|
document.layers.ranger.document.form4.reset;
|
||
|
} else {
|
||
|
document.form5.sub1.value = parent.hidden.savevalue[53];
|
||
|
document.form5.sub2.value = parent.hidden.savevalue[54];
|
||
|
document.form5.sub3.value = parent.hidden.savevalue[55];
|
||
|
document.form5.sub4.value = parent.hidden.savevalue[56];
|
||
|
document.form5.mask1.value = parent.hidden.savevalue[57];
|
||
|
document.form5.mask2.value = parent.hidden.savevalue[58];
|
||
|
document.form5.mask3.value = parent.hidden.savevalue[59];
|
||
|
document.form5.mask4.value = parent.hidden.savevalue[60];
|
||
|
document.form2.reset;
|
||
|
document.form3.reset;
|
||
|
document.form4.reset;
|
||
|
}
|
||
|
} else {
|
||
|
if (parseInt(parent.hidden.savevalue[14]) == 3) {
|
||
|
//any ip
|
||
|
document.form1.idtype[3].selected = true;
|
||
|
MM_showHideLayers('textin','','hide');
|
||
|
MM_showHideLayers('ranger','','hide');
|
||
|
MM_showHideLayers('ipsegs','','hide');
|
||
|
MM_showHideLayers('subber','','hide');
|
||
|
if (isNS && !isNS6 == true) {
|
||
|
document.layers.ipsegs.document.form2.reset;
|
||
|
document.layers.textin.document.form3.reset;
|
||
|
document.layers.ranger.document.form4.reset;
|
||
|
document.layers.subber.document.form5.reset;
|
||
|
} else {
|
||
|
document.form2.reset;
|
||
|
document.form3.reset;
|
||
|
document.form4.reset;
|
||
|
document.form5.reset;
|
||
|
}
|
||
|
} else {
|
||
|
if (parseInt(parent.hidden.savevalue[14]) == 4) {
|
||
|
//ppp
|
||
|
document.form1.idtype[4].selected = true;
|
||
|
MM_showHideLayers('ranger','','hide');
|
||
|
MM_showHideLayers('ipsegs','','hide');
|
||
|
MM_showHideLayers('subber','','hide');
|
||
|
MM_showHideLayers('textin','','show');
|
||
|
if (isNS && !isNS6 == true) {
|
||
|
document.layers.textin.document.form3.idtext.value = parent.hidden.savevalue[15];
|
||
|
document.layers.ipsegs.document.form2.reset;
|
||
|
document.layers.ranger.document.form4.reset;
|
||
|
document.layers.subber.document.form5.reset;
|
||
|
} else {
|
||
|
document.form3.idtext.value = parent.hidden.savevalue[15];
|
||
|
document.form2.reset;
|
||
|
document.form4.reset;
|
||
|
document.form5.reset;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
} else {
|
||
|
//Nothing was saved in hidden frame, probably the 1st load of the page
|
||
|
MM_showHideLayers('textin','','hide');
|
||
|
MM_showHideLayers('ranger','','hide');
|
||
|
MM_showHideLayers('subber','','show');
|
||
|
MM_showHideLayers('ipsegs','','hide');
|
||
|
if (isNS && !isNS6 == true) {
|
||
|
document.layers.subber.document.form5.mask1.value = "255";
|
||
|
document.layers.subber.document.form5.mask2.value = "255";
|
||
|
document.layers.subber.document.form5.mask3.value = "255";
|
||
|
document.layers.subber.document.form5.mask4.value = "0";
|
||
|
} else {
|
||
|
document.form5.mask1.value = "255";
|
||
|
document.form5.mask2.value = "255";
|
||
|
document.form5.mask3.value = "255";
|
||
|
document.form5.mask4.value = "0";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if (parseInt(parent.hidden.savevalue[32]) == 1) {
|
||
|
document.form7.localport[1].checked = true;
|
||
|
document.form7.locportnum.value = parent.hidden.savevalue[17];
|
||
|
}
|
||
|
if (parent.hidden.savevalue[34] != "") {
|
||
|
document.form7.protocol.selectedIndex = parent.hidden.savevalue[34];
|
||
|
}
|
||
|
//END NON-TRANSLATABLE
|
||
|
}
|
||
|
|
||
|
// onBack()
|
||
|
//
|
||
|
// This function is called when the user clicks the Back button on the form.
|
||
|
// The function loads the previous page of the advisor in the contents frame.
|
||
|
function onBack() {
|
||
|
//START NON-TRANSLATABLE
|
||
|
if (parseInt(parent.hidden.savevalue[3]) == 0) {
|
||
|
window.location = "rzalradvvpn40.htm";
|
||
|
} else {
|
||
|
if (parseInt(parent.hidden.savevalue[3]) == 1) {
|
||
|
window.location = "rzalradvvpn130.htm";
|
||
|
}
|
||
|
}
|
||
|
//END NON-TRANSLATABLE
|
||
|
}
|
||
|
|
||
|
function checkNS() {
|
||
|
errMessage1 = "The IP address that identifies the local connection is incorrect. Enter a valid IP address.";
|
||
|
errMessage2 = "Specify the IP address to identify the local connection.";
|
||
|
errMessage3 = "The subnet that identifies the local connection is incorrect. Enter a valid subnet.";
|
||
|
errMessage3a = "The mask that identifies the local connection is incorrect. Enter a valid mask.";
|
||
|
errMessage4 = "Specify the subnet to identify the local connection.";
|
||
|
errMessage4a = "Specify the mask to identify the local connection.";
|
||
|
errMessage5 = "The range of addresses that identifies the local connection is incorrect. Enter a valid range.";
|
||
|
errMessage6 = "Specify the range of addresses to identify the local connection.";
|
||
|
errMessage7 = "The two addresses you entered for the range are identical. Enter starting and ending addresses."
|
||
|
errMessage8 = "Enter a PPP name between 1 and 10 characters.";
|
||
|
errMessage11 = "Enter a local port number";
|
||
|
errMessage12 = "The local port number you entered is not valid. Port must be an integer between 1 and 65535";
|
||
|
|
||
|
//START NON-TRANSLATABLE
|
||
|
|
||
|
if (document.form7.localport[0].checked == true) {
|
||
|
parent.hidden.savevalue[32] = 0;
|
||
|
} else {
|
||
|
parent.hidden.savevalue[32] = 1;
|
||
|
//Save port number
|
||
|
//Can be any port from 1 to 65535
|
||
|
if (document.form7.locportnum.value == "") {
|
||
|
document.form7.locportnum.focus();
|
||
|
alert(errMessage11);
|
||
|
return;
|
||
|
} else {
|
||
|
if (isNaN(document.form7.locportnum.value)) {
|
||
|
document.form7.locportnum.select();
|
||
|
document.form7.locportnum.focus();
|
||
|
alert(errMessage12);
|
||
|
return;
|
||
|
} else {
|
||
|
if (document.form7.locportnum.value < 1 || document.form7.locportnum.value > 65535) {
|
||
|
document.form7.locportnum.select();
|
||
|
document.form7.locportnum.focus();
|
||
|
alert(errMessage12);
|
||
|
return;
|
||
|
} else {
|
||
|
parent.hidden.savevalue[17] = document.form7.locportnum.value;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//Save which protocol is selected
|
||
|
parent.hidden.savevalue[34] = document.form7.protocol.selectedIndex;
|
||
|
|
||
|
if (document.form1.idtype[0].selected == true) {
|
||
|
//ip version 4 address selected
|
||
|
parent.hidden.savevalue[14] = 0;
|
||
|
if (document.layers.ipsegs.document.form2.ip1.value == "" && document.layers.ipsegs.document.form2.ip2.value == "" &&
|
||
|
document.layers.ipsegs.document.form2.ip3.value == "" && document.layers.ipsegs.document.form2.ip4.value == "") {
|
||
|
//no values entered
|
||
|
alert(errMessage2);
|
||
|
document.layers.ipsegs.document.form2.ip1.select();
|
||
|
document.layers.ipsegs.document.form2.ip1.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check ip version 4 address
|
||
|
add1 = parseInt(document.layers.ipsegs.document.form2.ip1.value);
|
||
|
add2 = parseInt(document.layers.ipsegs.document.form2.ip2.value);
|
||
|
add3 = parseInt(document.layers.ipsegs.document.form2.ip3.value);
|
||
|
add4 = parseInt(document.layers.ipsegs.document.form2.ip4.value);
|
||
|
//Check the first segment
|
||
|
if (add1 < 1 || add1 > 255 || isNaN(add1) || document.layers.ipsegs.document.form2.ip1.value == "") {
|
||
|
alert(errMessage1);
|
||
|
document.layers.ipsegs.document.form2.ip1.select();
|
||
|
document.layers.ipsegs.document.form2.ip1.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the second segment
|
||
|
if (add2 < 0 || add2 > 255 || isNaN(add2) || document.layers.ipsegs.document.form2.ip2.value == "") {
|
||
|
alert(errMessage1);
|
||
|
document.layers.ipsegs.document.form2.ip2.select();
|
||
|
document.layers.ipsegs.document.form2.ip2.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the third segment
|
||
|
if (add3 < 0 || add3 > 255 || isNaN(add3) || document.layers.ipsegs.document.form2.ip3.value == "") {
|
||
|
alert(errMessage1);
|
||
|
document.layers.ipsegs.document.form2.ip3.select();
|
||
|
document.layers.ipsegs.document.form2.ip3.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the fourth segment
|
||
|
if (add4 < 0 || add4 > 255 || isNaN(add4) || document.layers.ipsegs.document.form2.ip4.value == "") {
|
||
|
alert(errMessage1);
|
||
|
document.layers.ipsegs.document.form2.ip4.select();
|
||
|
document.layers.ipsegs.document.form2.ip4.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//IP address is valid
|
||
|
parent.hidden.savevalue[15] = add1 + "." + add2 + "." + add3 + "." + add4;
|
||
|
parent.hidden.savevalue[53] = add1;
|
||
|
parent.hidden.savevalue[54] = add2;
|
||
|
parent.hidden.savevalue[55] = add3;
|
||
|
parent.hidden.savevalue[56] = add4;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
} else {
|
||
|
if (document.form1.idtype[1].selected == true) {
|
||
|
//range selected
|
||
|
parent.hidden.savevalue[14] = 1;
|
||
|
if (document.layers.ranger.document.form4.ip5.value == "" && document.layers.ranger.document.form4.ip6.value == "" &&
|
||
|
document.layers.ranger.document.form4.ip7.value == "" && document.layers.ranger.document.form4.ip8.value == "" &&
|
||
|
document.layers.ranger.document.form4.ip9.value == "" && document.layers.ranger.document.form4.ip10.value == "" &&
|
||
|
document.layers.ranger.document.form4.ip11.value == "" && document.layers.ranger.document.form4.ip12.value == "") {
|
||
|
//no values entered
|
||
|
alert(errMessage6);
|
||
|
document.layers.ranger.document.form4.ip5.select();
|
||
|
document.layers.ranger.document.form4.ip5.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check range
|
||
|
add5 = parseInt(document.layers.ranger.document.form4.ip5.value);
|
||
|
add6 = parseInt(document.layers.ranger.document.form4.ip6.value);
|
||
|
add7 = parseInt(document.layers.ranger.document.form4.ip7.value);
|
||
|
add8 = parseInt(document.layers.ranger.document.form4.ip8.value);
|
||
|
add9 = parseInt(document.layers.ranger.document.form4.ip9.value);
|
||
|
add10 = parseInt(document.layers.ranger.document.form4.ip10.value);
|
||
|
add11 = parseInt(document.layers.ranger.document.form4.ip11.value);
|
||
|
add12 = parseInt(document.layers.ranger.document.form4.ip12.value);
|
||
|
//Check the first segment
|
||
|
if (add5 < 1 || add5 > 255 || isNaN(add5) || document.layers.ranger.document.form4.ip5.value == "") {
|
||
|
alert(errMessage5);
|
||
|
document.layers.ranger.document.form4.ip5.select();
|
||
|
document.layers.ranger.document.form4.ip5.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the second segment
|
||
|
if (add6 < 0 || add6 > 255 || isNaN(add6) || document.layers.ranger.document.form4.ip6.value == "") {
|
||
|
alert(errMessage5);
|
||
|
document.layers.ranger.document.form4.ip6.select();
|
||
|
document.layers.ranger.document.form4.ip6.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the third segment
|
||
|
if (add7 < 0 || add7 > 255 || isNaN(add7) || document.layers.ranger.document.form4.ip7.value == "") {
|
||
|
alert(errMessage5);
|
||
|
document.layers.ranger.document.form4.ip7.select();
|
||
|
document.layers.ranger.document.form4.ip7.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the fourth segment
|
||
|
if (add8 < 0 || add8 > 255 || isNaN(add8) || document.layers.ranger.document.form4.ip8.value == "") {
|
||
|
alert(errMessage5);
|
||
|
document.layers.ranger.document.form4.ip8.select();
|
||
|
document.layers.ranger.document.form4.ip8.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the first segment of 2nd address
|
||
|
if (add9 < 1 || add9 > 255 || isNaN(add9) || document.layers.ranger.document.form4.ip9.value == "") {
|
||
|
alert(errMessage5);
|
||
|
document.layers.ranger.document.form4.ip9.select();
|
||
|
document.layers.ranger.document.form4.ip9.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the second segment of 2nd address
|
||
|
if (add10 < 0 || add10 > 255 || isNaN(add10) || document.layers.ranger.document.form4.ip10.value == "") {
|
||
|
alert(errMessage5);
|
||
|
document.layers.ranger.document.form4.ip10.select();
|
||
|
document.layers.ranger.document.form4.ip10.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the third segment of 2nd address
|
||
|
if (add11 < 0 || add11 > 255 || isNaN(add11) || document.layers.ranger.document.form4.ip11.value == "") {
|
||
|
alert(errMessage5);
|
||
|
document.layers.ranger.document.form4.ip11.select();
|
||
|
document.layers.ranger.document.form4.ip11.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the fourth segment of 2nd address
|
||
|
if (add12 < 0 || add12 > 255 || isNaN(add12) || document.layers.ranger.document.form4.ip12.value == "") {
|
||
|
alert(errMessage5);
|
||
|
document.layers.ranger.document.form4.ip12.select();
|
||
|
document.layers.ranger.document.form4.ip12.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//IP address range is valid
|
||
|
if ((add5 == add9) && (add6 == add10) && (add7 == add11) && (add8 == add12)) {
|
||
|
//addresses equal each other, and that is not good
|
||
|
alert(errMessage7);
|
||
|
return;
|
||
|
} else {
|
||
|
//Store smallest address in first slot
|
||
|
if ((add9 > add5) ||
|
||
|
((add9 == add5) && (add10 > add6)) ||
|
||
|
((add9 == add5) && (add10 == add6) && (add11 > add7)) ||
|
||
|
((add9 == add5) && (add10 == add6) && (add11 == add7) && (add12 > add8))) {
|
||
|
//First address is smaller
|
||
|
parent.hidden.savevalue[15] = add5 + "." + add6 + "." + add7 + "." + add8;
|
||
|
parent.hidden.savevalue[53] = add5;
|
||
|
parent.hidden.savevalue[54] = add6;
|
||
|
parent.hidden.savevalue[55] = add7;
|
||
|
parent.hidden.savevalue[56] = add8;
|
||
|
parent.hidden.savevalue[16] = add9 + "." + add10 + "." + add11 + "." + add12;
|
||
|
parent.hidden.savevalue[57] = add9;
|
||
|
parent.hidden.savevalue[58] = add10;
|
||
|
parent.hidden.savevalue[59] = add11;
|
||
|
parent.hidden.savevalue[60] = add12;
|
||
|
} else {
|
||
|
//Second address is smaller
|
||
|
parent.hidden.savevalue[16] = add5 + "." + add6 + "." + add7 + "." + add8;
|
||
|
parent.hidden.savevalue[57] = add5;
|
||
|
parent.hidden.savevalue[58] = add6;
|
||
|
parent.hidden.savevalue[59] = add7;
|
||
|
parent.hidden.savevalue[60] = add8;
|
||
|
parent.hidden.savevalue[15] = add9 + "." + add10 + "." + add11 + "." + add12;
|
||
|
parent.hidden.savevalue[53] = add9;
|
||
|
parent.hidden.savevalue[54] = add10;
|
||
|
parent.hidden.savevalue[55] = add11;
|
||
|
parent.hidden.savevalue[56] = add12;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
} else {
|
||
|
if (document.form1.idtype[2].selected == true) {
|
||
|
//subnet selected
|
||
|
parent.hidden.savevalue[14] = 2;
|
||
|
if (document.layers.subber.document.form5.sub1.value == "" && document.layers.subber.document.form5.sub2.value == "" &&
|
||
|
document.layers.subber.document.form5.sub3.value == "" && document.layers.subber.document.form5.sub4.value == "") {
|
||
|
//no values entered
|
||
|
alert(errMessage4);
|
||
|
document.layers.subber.document.form5.sub1.select();
|
||
|
document.layers.subber.document.form5.sub1.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check subnet and mask
|
||
|
su1 = parseInt(document.layers.subber.document.form5.sub1.value);
|
||
|
su2 = parseInt(document.layers.subber.document.form5.sub2.value);
|
||
|
su3 = parseInt(document.layers.subber.document.form5.sub3.value);
|
||
|
su4 = parseInt(document.layers.subber.document.form5.sub4.value);
|
||
|
mas1 = parseInt(document.layers.subber.document.form5.mask1.value);
|
||
|
mas2 = parseInt(document.layers.subber.document.form5.mask2.value);
|
||
|
mas3 = parseInt(document.layers.subber.document.form5.mask3.value);
|
||
|
mas4 = parseInt(document.layers.subber.document.form5.mask4.value);
|
||
|
//Check the first segment
|
||
|
|
||
|
if (su1 < 0 || su1 > 255 || isNaN(su1) || document.layers.subber.document.form5.sub1.value == "") {
|
||
|
alert(errMessage3);
|
||
|
document.layers.subber.document.form5.sub1.select();
|
||
|
document.layers.subber.document.form5.sub1.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the second segment
|
||
|
if (su2 < 0 || su2 > 255 || isNaN(su2) || document.layers.subber.document.form5.sub2.value == "") {
|
||
|
alert(errMessage3);
|
||
|
document.layers.subber.document.form5.sub2.select();
|
||
|
document.layers.subber.document.form5.sub2.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the third segment
|
||
|
if (su3 < 0 || su3 > 255 || isNaN(su3) || document.layers.subber.document.form5.sub3.value == "") {
|
||
|
alert(errMessage3);
|
||
|
document.layers.subber.document.form5.sub3.select();
|
||
|
document.layers.subber.document.form5.sub3.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the fourth segment
|
||
|
if (su4 < 0 || su4 > 255 || isNaN(su4) || document.layers.subber.document.form5.sub4.value == "") {
|
||
|
alert(errMessage3);
|
||
|
document.layers.subber.document.form5.sub4.select();
|
||
|
document.layers.subber.document.form5.sub4.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
if (document.layers.subber.document.form5.mask1.value == "" && document.layers.subber.document.form5.mask2.value == "" &&
|
||
|
document.layers.subber.document.form5.mask3.value == "" && document.layers.subber.document.form5.mask4.value == "") {
|
||
|
//no values entered
|
||
|
alert(errMessage4a);
|
||
|
document.layers.subber.document.form5.mask1.select();
|
||
|
document.layers.subber.document.form5.mask1.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
if ((mas1 != 255 && mas1 != 254 && mas1 != 252 &&
|
||
|
mas1 != 248 && mas1 != 240 && mas1 != 224 &&
|
||
|
mas1 != 192 && mas1 != 128 && mas1 != 0 && !(isNaN(mas1))) || (isNaN(mas1))) {
|
||
|
alert(errMessage3a);
|
||
|
document.layers.subber.document.form5.mask1.select();
|
||
|
document.layers.subber.document.form5.mask1.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the second segment
|
||
|
if ((mas2 != 255 && mas2 != 254 && mas2 != 252 &&
|
||
|
mas2 != 248 && mas2 != 240 && mas2 != 224 &&
|
||
|
mas2 != 192 && mas2 != 128 && mas2 != 0 && !(isNaN(mas2))) || (isNaN(mas2))) {
|
||
|
alert(errMessage3a);
|
||
|
document.layers.subber.document.form5.mask2.select();
|
||
|
document.layers.subber.document.form5.mask2.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the third segment
|
||
|
if ((mas3 != 255 && mas3 != 254 && mas3 != 252 &&
|
||
|
mas3 != 248 && mas3 != 240 && mas3 != 224 &&
|
||
|
mas3 != 192 && mas3 != 128 && mas3 != 0 && !(isNaN(mas3))) || (isNaN(mas3))) {
|
||
|
alert(errMessage3a);
|
||
|
document.layers.subber.document.form5.mask3.select();
|
||
|
document.layers.subber.document.form5.mask3.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the fourth segment
|
||
|
if ((mas4 != 255 && mas4 != 254 && mas4 != 252 &&
|
||
|
mas4 != 248 && mas4 != 240 && mas4 != 224 &&
|
||
|
mas4 != 192 && mas4 != 128 && mas4 != 0 && !(isNaN(mas4))) || (isNaN(mas4))) {
|
||
|
alert(errMessage3a);
|
||
|
document.layers.subber.document.form5.mask4.select();
|
||
|
document.layers.subber.document.form5.mask4.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//subnet and mask are valid
|
||
|
parent.hidden.savevalue[15] = su1 + "." + su2 + "." + su3 + "." + su4;
|
||
|
parent.hidden.savevalue[53] = su1;
|
||
|
parent.hidden.savevalue[54] = su2;
|
||
|
parent.hidden.savevalue[55] = su3;
|
||
|
parent.hidden.savevalue[56] = su4;
|
||
|
parent.hidden.savevalue[16] = mas1 + "." + mas2 + "." + mas3 + "." + mas4;
|
||
|
parent.hidden.savevalue[57] = mas1;
|
||
|
parent.hidden.savevalue[58] = mas2;
|
||
|
parent.hidden.savevalue[59] = mas3;
|
||
|
parent.hidden.savevalue[60] = mas4;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
} else {
|
||
|
if (document.form1.idtype[3].selected == true) {
|
||
|
//any ip address selected
|
||
|
parent.hidden.savevalue[14] = 3;
|
||
|
} else {
|
||
|
if (document.form1.idtype[4].selected == true) {
|
||
|
//ppp selected
|
||
|
parent.hidden.savevalue[14] = 4;
|
||
|
var testppp = document.layers.textin.document.form3.idtext.value;
|
||
|
//ppp must be 10 chars or less
|
||
|
if (testppp.length > 10 || document.layers.textin.document.form3.idtext.value == "") {
|
||
|
alert(errMessage8);
|
||
|
document.layers.textin.document.form3.idtext.select();
|
||
|
document.layers.textin.document.form3.idtext.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//ppp is valid
|
||
|
parent.hidden.savevalue[15] = document.layers.textin.document.form3.idtext.value;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
window.location = "rzalradvvpn80.htm";
|
||
|
//END NON-TRANSLATABLE
|
||
|
}
|
||
|
|
||
|
function checkIE() {
|
||
|
errMessage1 = "The IP address that identifies the local connection is incorrect. Enter a valid IP address";
|
||
|
errMessage2 = "Specify the IP address to identify the local connection.";
|
||
|
errMessage3 = "The subnet that identifies the local connection is incorrect. Enter a valid subnet ";
|
||
|
errMessage3a = "The mask that identifies the local connection is incorrect. Enter a valid mask";
|
||
|
errMessage4 = "Specify the subnet to identify the local connection.";
|
||
|
errMessage4a = "Specify the mask to identify the local connection.";
|
||
|
errMessage5 = "The range of addresses that identifies the local connection is incorrect. Enter a valid range";
|
||
|
errMessage6 = "Specify the range of addresses to identify the local connection.";
|
||
|
errMessage7 = "The two addresses you entered for the range are identical. Enter starting and ending addresses."
|
||
|
errMessage8 = "Enter a PPP name between 1 and 10 characters.";
|
||
|
errMessage11 = "Enter a local port number";
|
||
|
errMessage12 = "The local port number you entered is not valid. Port must be an integer between 1 and 65535";
|
||
|
|
||
|
//START NON-TRANSLATABLE
|
||
|
|
||
|
if (document.form7.localport[0].checked == true) {
|
||
|
parent.hidden.savevalue[32] = 0;
|
||
|
} else {
|
||
|
parent.hidden.savevalue[32] = 1;
|
||
|
//Save port number
|
||
|
//Can be any port from 1 to 65535
|
||
|
if (document.form7.locportnum.value == "") {
|
||
|
document.form7.locportnum.focus();
|
||
|
alert(errMessage11);
|
||
|
return;
|
||
|
} else {
|
||
|
if (isNaN(document.form7.locportnum.value)) {
|
||
|
document.form7.locportnum.select();
|
||
|
document.form7.locportnum.focus();
|
||
|
alert(errMessage12);
|
||
|
return;
|
||
|
} else {
|
||
|
if (document.form7.locportnum.value < 1 || document.form7.locportnum.value > 65535) {
|
||
|
document.form7.locportnum.select();
|
||
|
document.form7.locportnum.focus();
|
||
|
alert(errMessage12);
|
||
|
return;
|
||
|
} else {
|
||
|
parent.hidden.savevalue[17] = document.form7.locportnum.value;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//Save which protocol is selected
|
||
|
parent.hidden.savevalue[34] = document.form7.protocol.selectedIndex;
|
||
|
if (document.form1.idtype[0].selected == true) {
|
||
|
//ip version 4 address selected
|
||
|
parent.hidden.savevalue[14] = 0;
|
||
|
if (document.form2.ip1.value == "" && document.form2.ip2.value == "" &&
|
||
|
document.form2.ip3.value == "" && document.form2.ip4.value == "") {
|
||
|
//no values entered
|
||
|
alert(errMessage2);
|
||
|
document.form2.ip1.select();
|
||
|
document.form2.ip1.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check ip version 4 address
|
||
|
add1 = parseInt(document.form2.ip1.value);
|
||
|
add2 = parseInt(document.form2.ip2.value);
|
||
|
add3 = parseInt(document.form2.ip3.value);
|
||
|
add4 = parseInt(document.form2.ip4.value);
|
||
|
//Check the first segment
|
||
|
if (add1 < 1 || add1 > 255 || isNaN(add1) || document.form2.ip1.value == "") {
|
||
|
alert(errMessage1);
|
||
|
document.form2.ip1.select();
|
||
|
document.form2.ip1.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the second segment
|
||
|
if (add2 < 0 || add2 > 255 || isNaN(add2) || document.form2.ip2.value == "") {
|
||
|
alert(errMessage1);
|
||
|
document.form2.ip2.select();
|
||
|
document.form2.ip2.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the third segment
|
||
|
if (add3 < 0 || add3 > 255 || isNaN(add3) || document.form2.ip3.value == "") {
|
||
|
alert(errMessage1);
|
||
|
document.form2.ip3.select();
|
||
|
document.form2.ip3.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the fourth segment
|
||
|
if (add4 < 0 || add4 > 255 || isNaN(add4) || document.form2.ip4.value == "") {
|
||
|
alert(errMessage1);
|
||
|
document.form2.ip4.select();
|
||
|
document.form2.ip4.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//IP address is valid
|
||
|
parent.hidden.savevalue[15] = add1 + "." + add2 + "." + add3 + "." + add4;
|
||
|
parent.hidden.savevalue[53] = add1;
|
||
|
parent.hidden.savevalue[54] = add2;
|
||
|
parent.hidden.savevalue[55] = add3;
|
||
|
parent.hidden.savevalue[56] = add4;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
} else {
|
||
|
if (document.form1.idtype[1].selected == true) {
|
||
|
//range selected
|
||
|
parent.hidden.savevalue[14] = 1;
|
||
|
if (document.form4.ip5.value == "" && document.form4.ip6.value == "" &&
|
||
|
document.form4.ip7.value == "" && document.form4.ip8.value == "" &&
|
||
|
document.form4.ip9.value == "" && document.form4.ip10.value == "" &&
|
||
|
document.form4.ip11.value == "" && document.form4.ip12.value == "") {
|
||
|
//no values entered
|
||
|
alert(errMessage6);
|
||
|
document.form4.ip5.select();
|
||
|
document.form4.ip5.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check range
|
||
|
add5 = parseInt(document.form4.ip5.value);
|
||
|
add6 = parseInt(document.form4.ip6.value);
|
||
|
add7 = parseInt(document.form4.ip7.value);
|
||
|
add8 = parseInt(document.form4.ip8.value);
|
||
|
add9 = parseInt(document.form4.ip9.value);
|
||
|
add10 = parseInt(document.form4.ip10.value);
|
||
|
add11 = parseInt(document.form4.ip11.value);
|
||
|
add12 = parseInt(document.form4.ip12.value);
|
||
|
//Check the first segment
|
||
|
if (add5 < 1 || add5 > 255 || isNaN(add5) || document.form4.ip5.value == "") {
|
||
|
alert(errMessage5);
|
||
|
document.form4.ip5.select();
|
||
|
document.form4.ip5.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the second segment
|
||
|
if (add6 < 0 || add6 > 255 || isNaN(add6) || document.form4.ip6.value == "") {
|
||
|
alert(errMessage5);
|
||
|
document.form4.ip6.select();
|
||
|
document.form4.ip6.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the third segment
|
||
|
if (add7 < 0 || add7 > 255 || isNaN(add7) || document.form4.ip7.value == "") {
|
||
|
alert(errMessage5);
|
||
|
document.form4.ip7.select();
|
||
|
document.form4.ip7.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the fourth segment
|
||
|
if (add8 < 0 || add8 > 255 || isNaN(add8) || document.form4.ip8.value == "") {
|
||
|
alert(errMessage5);
|
||
|
document.form4.ip8.select();
|
||
|
document.form4.ip8.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the first segment of 2nd address
|
||
|
if (add9 < 1 || add9 > 255 || isNaN(add9) || document.form4.ip9.value == "") {
|
||
|
alert(errMessage5);
|
||
|
document.form4.ip9.select();
|
||
|
document.form4.ip9.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the second segment of 2nd address
|
||
|
if (add10 < 0 || add10 > 255 || isNaN(add10) || document.form4.ip10.value == "") {
|
||
|
alert(errMessage5);
|
||
|
document.form4.ip10.select();
|
||
|
document.form4.ip10.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the third segment of 2nd address
|
||
|
if (add11 < 0 || add11 > 255 || isNaN(add11) || document.form4.ip11.value == "") {
|
||
|
alert(errMessage5);
|
||
|
document.form4.ip11.select();
|
||
|
document.form4.ip11.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the fourth segment of 2nd address
|
||
|
if (add12 < 0 || add12 > 255 || isNaN(add12) || document.form4.ip12.value == "") {
|
||
|
alert(errMessage5);
|
||
|
document.form4.ip12.select();
|
||
|
document.form4.ip12.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//IP address range is valid
|
||
|
if ((add5 == add9) && (add6 == add10) && (add7 == add11) && (add8 == add12)) {
|
||
|
//addresses equal each other, and that is not good
|
||
|
alert(errMessage7);
|
||
|
return;
|
||
|
} else {
|
||
|
//Store smallest address in first slot
|
||
|
if ((add9 > add5) ||
|
||
|
((add9 == add5) && (add10 > add6)) ||
|
||
|
((add9 == add5) && (add10 == add6) && (add11 > add7)) ||
|
||
|
((add9 == add5) && (add10 == add6) && (add11 == add7) && (add12 > add8))) {
|
||
|
//First address is smaller
|
||
|
parent.hidden.savevalue[15] = add5 + "." + add6 + "." + add7 + "." + add8;
|
||
|
parent.hidden.savevalue[53] = add5;
|
||
|
parent.hidden.savevalue[54] = add6;
|
||
|
parent.hidden.savevalue[55] = add7;
|
||
|
parent.hidden.savevalue[56] = add8;
|
||
|
parent.hidden.savevalue[16] = add9 + "." + add10 + "." + add11 + "." + add12;
|
||
|
parent.hidden.savevalue[57] = add9;
|
||
|
parent.hidden.savevalue[58] = add10;
|
||
|
parent.hidden.savevalue[59] = add11;
|
||
|
parent.hidden.savevalue[60] = add12;
|
||
|
} else {
|
||
|
//Second address is smaller
|
||
|
parent.hidden.savevalue[16] = add5 + "." + add6 + "." + add7 + "." + add8;
|
||
|
parent.hidden.savevalue[57] = add5;
|
||
|
parent.hidden.savevalue[58] = add6;
|
||
|
parent.hidden.savevalue[59] = add7;
|
||
|
parent.hidden.savevalue[60] = add8;
|
||
|
parent.hidden.savevalue[15] = add9 + "." + add10 + "." + add11 + "." + add12;
|
||
|
parent.hidden.savevalue[53] = add9;
|
||
|
parent.hidden.savevalue[54] = add10;
|
||
|
parent.hidden.savevalue[55] = add11;
|
||
|
parent.hidden.savevalue[56] = add12;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
} else {
|
||
|
if (document.form1.idtype[2].selected == true) {
|
||
|
//subnet selected
|
||
|
parent.hidden.savevalue[14] = 2;
|
||
|
if (document.form5.sub1.value == "" && document.form5.sub2.value == "" &&
|
||
|
document.form5.sub3.value == "" && document.form5.sub4.value == "") {
|
||
|
//no values entered
|
||
|
alert(errMessage4);
|
||
|
document.form5.sub1.select();
|
||
|
document.form5.sub1.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check subnet and mask
|
||
|
su1 = parseInt(document.form5.sub1.value);
|
||
|
su2 = parseInt(document.form5.sub2.value);
|
||
|
su3 = parseInt(document.form5.sub3.value);
|
||
|
su4 = parseInt(document.form5.sub4.value);
|
||
|
mas1 = parseInt(document.form5.mask1.value);
|
||
|
mas2 = parseInt(document.form5.mask2.value);
|
||
|
mas3 = parseInt(document.form5.mask3.value);
|
||
|
mas4 = parseInt(document.form5.mask4.value);
|
||
|
//Check the first segment
|
||
|
if (su1 < 0 || su1 > 255 || isNaN(su1) || document.form5.sub1.value == "") {
|
||
|
alert(errMessage3);
|
||
|
document.form5.sub1.select();
|
||
|
document.form5.sub1.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the second segment
|
||
|
if (su2 < 0 || su2 > 255 || isNaN(su2) || document.form5.sub2.value == "") {
|
||
|
alert(errMessage3);
|
||
|
document.form5.sub2.select();
|
||
|
document.form5.sub2.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the third segment
|
||
|
if (su3 < 0 || su3 > 255 || isNaN(su3) || document.form5.sub3.value == "") {
|
||
|
alert(errMessage3);
|
||
|
document.form5.sub3.select();
|
||
|
document.form5.sub3.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the fourth segment
|
||
|
if (su4 < 0 || su4 > 255 || isNaN(su4) || document.form5.sub4.value == "") {
|
||
|
alert(errMessage3);
|
||
|
document.form5.sub4.select();
|
||
|
document.form5.sub4.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
if (document.form5.mask1.value == "" && document.form5.mask2.value == "" &&
|
||
|
document.form5.mask3.value == "" && document.form5.mask4.value == "") {
|
||
|
//no values entered
|
||
|
alert(errMessage4a);
|
||
|
document.form5.mask1.select();
|
||
|
document.form5.mask1.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
if ((mas1 != 255 && mas1 != 254 && mas1 != 252 &&
|
||
|
mas1 != 248 && mas1 != 240 && mas1 != 224 &&
|
||
|
mas1 != 192 && mas1 != 128 && mas1 != 0 && !(isNaN(mas1))) || (isNaN(mas1))) {
|
||
|
alert(errMessage3a);
|
||
|
document.form5.mask1.select();
|
||
|
document.form5.mask1.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the second segment
|
||
|
if ((mas2 != 255 && mas2 != 254 && mas2 != 252 &&
|
||
|
mas2 != 248 && mas2 != 240 && mas2 != 224 &&
|
||
|
mas2 != 192 && mas2 != 128 && mas2 != 0 && !(isNaN(mas2))) || (isNaN(mas2))) {
|
||
|
alert(errMessage3a);
|
||
|
document.form5.mask2.select();
|
||
|
document.form5.mask2.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the third segment
|
||
|
if ((mas3 != 255 && mas3 != 254 && mas3 != 252 &&
|
||
|
mas3 != 248 && mas3 != 240 && mas3 != 224 &&
|
||
|
mas3 != 192 && mas3 != 128 && mas3 != 0 && !(isNaN(mas3))) || (isNaN(mas3))) {
|
||
|
alert(errMessage3a);
|
||
|
document.form5.mask3.select();
|
||
|
document.form5.mask3.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the fourth segment
|
||
|
if ((mas4 != 255 && mas4 != 254 && mas4 != 252 &&
|
||
|
mas4 != 248 && mas4 != 240 && mas4 != 224 &&
|
||
|
mas4 != 192 && mas4 != 128 && mas4 != 0 && !(isNaN(mas4))) || (isNaN(mas4))) {
|
||
|
alert(errMessage3a);
|
||
|
document.form5.mask4.select();
|
||
|
document.form5.mask4.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//subnet and mask are valid
|
||
|
parent.hidden.savevalue[15] = su1 + "." + su2 + "." + su3 + "." + su4;
|
||
|
parent.hidden.savevalue[53] = su1;
|
||
|
parent.hidden.savevalue[54] = su2;
|
||
|
parent.hidden.savevalue[55] = su3;
|
||
|
parent.hidden.savevalue[56] = su4;
|
||
|
parent.hidden.savevalue[16] = mas1 + "." + mas2 + "." + mas3 + "." + mas4;
|
||
|
parent.hidden.savevalue[57] = mas1;
|
||
|
parent.hidden.savevalue[58] = mas2;
|
||
|
parent.hidden.savevalue[59] = mas3;
|
||
|
parent.hidden.savevalue[60] = mas4;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
} else {
|
||
|
if (document.form1.idtype[3].selected == true) {
|
||
|
//any ip address selected
|
||
|
parent.hidden.savevalue[14] = 3;
|
||
|
} else {
|
||
|
if (document.form1.idtype[4].selected == true) {
|
||
|
//ppp selected
|
||
|
parent.hidden.savevalue[14] = 4;
|
||
|
var testppp = document.form3.idtext.value;
|
||
|
//ppp must be 10 chars or less
|
||
|
if (testppp.length > 10 || document.form3.idtext.value == "") {
|
||
|
alert(errMessage8);
|
||
|
document.form3.idtext.select();
|
||
|
document.form3.idtext.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//ppp is valid
|
||
|
parent.hidden.savevalue[15] = document.form3.idtext.value;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
window.location = "rzalradvvpn80.htm";
|
||
|
//END NON-TRANSLATABLE
|
||
|
}
|
||
|
|
||
|
// onNext()
|
||
|
//
|
||
|
// This function is called when the user clicks the Next button on the form
|
||
|
function onNext() {
|
||
|
if (isNS && !isNS6 == true) {
|
||
|
checkNS();
|
||
|
} else {
|
||
|
checkIE();
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
function selectPort(){
|
||
|
document.form7.localport[1].checked = true;
|
||
|
}
|
||
|
|
||
|
//////////-->
|
||
|
</script>
|
||
|
<title>VPN planning advisor</title>
|
||
|
</head>
|
||
|
|
||
|
<BODY onLoad="restoreValues()">
|
||
|
|
||
|
<H2>VPN planning advisor</H2>
|
||
|
<STRONG>Identify local data endpoints</STRONG>
|
||
|
|
||
|
<p>Specify what port and protocols the connection will protect. You can either select <strong>Any</strong> or specify a specific port and protocol.</p>
|
||
|
<form action=submit name="form7">
|
||
|
<table>
|
||
|
<tr><td width=29> </td>
|
||
|
<td width=122>Local port:</td>
|
||
|
<td><LABEL for="localportQ"><INPUT TYPE="radio" NAME="localport" VALUE="any" id="localportQ" checked>Any port</label>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr><td width=29> </td>
|
||
|
<td width=122> </td>
|
||
|
<td><LABEL for="portQ"><INPUT TYPE="radio" NAME="localport" VALUE="port" id="portQ">Port:
|
||
|
<INPUT TYPE=text id="portQ" NAME="locportnum" SIZE=7 maxlength=5 onFocus="selectPort()"></label></td>
|
||
|
</tr>
|
||
|
<tr><td width=29> </td>
|
||
|
<td width=122> </td>
|
||
|
<td> </td>
|
||
|
</tr>
|
||
|
<tr><td width=29> </td>
|
||
|
<td width=122><label for="idfixed">Protocol:</label></td>
|
||
|
<td> <SELECT NAME="protocol" id="idfixed">
|
||
|
<OPTION SELECTED>Any protocol</OPTION>
|
||
|
<OPTION>UDP</OPTION>
|
||
|
<OPTION>TCP</OPTION>
|
||
|
<OPTION>IPSec</OPTION>
|
||
|
<OPTION>AH</OPTION>
|
||
|
<OPTION>ESP</OPTION>
|
||
|
</SELECT>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</form>
|
||
|
|
||
|
<form action=submit name="form1">
|
||
|
<P>Select an identifier type for the local <a href="javascript:popupWindow('rzalrdep.htm');">data endpoints</a><img src="../images/popup.gif" alt="Link to definition" border="0"> of the connection and then enter its associated identifier.</p>
|
||
|
<table>
|
||
|
<tr>
|
||
|
<td><label for="idfixed1">Identifier type:</label></td>
|
||
|
<td>
|
||
|
<SELECT NAME="idtype" onChange="changeHidden();" id="idfixed1">
|
||
|
<OPTION>IP version 4 address</OPTION>
|
||
|
<OPTION>IP address range</OPTION>
|
||
|
<OPTION SELECTED>IP version 4 subnet</OPTION>
|
||
|
<OPTION>Any IP address</OPTION>
|
||
|
<OPTION>PPP profile</OPTION>
|
||
|
</SELECT>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</form>
|
||
|
|
||
|
<div id="ipsegs" style="position: absolute;">
|
||
|
<form action=submit name="form2">
|
||
|
<table>
|
||
|
<tr>
|
||
|
<td><LABEL for="ipadd"> Enter the identifier:</label></td>
|
||
|
<td>
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip1" id="ipadd"><STRONG> . </STRONG>
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip2" id="ipadd"><STRONG> . </STRONG>
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip3" id="ipadd"><STRONG> . </STRONG>
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip4" id="ipadd"></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</form>
|
||
|
</div>
|
||
|
|
||
|
<div id="textin" style="position: absolute;">
|
||
|
<form action=submit name="form3">
|
||
|
<table>
|
||
|
<tr>
|
||
|
<td><LABEL for="idtextQ"> Enter the identifier:</label></td>
|
||
|
<td><INPUT TYPE=text NAME="idtext" MAXLENGTH=128 SIZE=20 id="idtextQ"></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</form>
|
||
|
</div>
|
||
|
|
||
|
<div id="ranger" style="position: absolute;">
|
||
|
<form action=submit name="form4">
|
||
|
<table>
|
||
|
<tr>
|
||
|
<td><LABEL for="idQ2"> Enter the identifier:</label></td>
|
||
|
<td>
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip5" id="idQ2"><STRONG> . </STRONG>
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip6" id="idQ2"><STRONG> . </STRONG>
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip7" id="idQ2"><STRONG> . </STRONG>
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip8" id="idQ2"> to
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip9" id="idQ2"><STRONG> . </STRONG>
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip10" id="idQ2"><STRONG> . </STRONG>
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip11" id="idQ2"><STRONG> . </STRONG>
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip12" id="idQ2"></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</form>
|
||
|
</div>
|
||
|
|
||
|
<div id="subber" style="position: absolute;">
|
||
|
<form action=submit name="form5">
|
||
|
<table>
|
||
|
<tr>
|
||
|
<td><LABEL for="subQ1"> Enter the subnet:</label></td>
|
||
|
<td>
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="sub1" id="subQ1"><STRONG> . </STRONG>
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="sub2" id="subQ1"><STRONG> . </STRONG>
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="sub3" id="subQ1"><STRONG> . </STRONG>
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="sub4" id="subQ1"></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td><LABEL for="maskQ1"> Enter the mask:</label></td>
|
||
|
<td>
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="mask1" id="maskQ1"><STRONG> . </STRONG>
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="mask2" id="maskQ1"><STRONG> . </STRONG>
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="mask3" id="maskQ1"><STRONG> . </STRONG>
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="mask4" id="maskQ1"></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</form>
|
||
|
</div>
|
||
|
|
||
|
<form action=submit name="form6">
|
||
|
<p> </p>
|
||
|
<p> </p>
|
||
|
<CENTER>
|
||
|
<input name=submit type="button" value=" << Back " onClick="onBack()">
|
||
|
<input name=submit type="button" value=" Next >> " onClick="onNext()">
|
||
|
</CENTER>
|
||
|
</form>
|
||
|
|
||
|
</BODY>
|
||
|
</html>
|
||
|
|