675 lines
28 KiB
HTML
675 lines
28 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">
|
||
|
<script language = "Javascript" src = "../rzahg/iccommon.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('textin','','hide');
|
||
|
MM_showHideLayers('useip','','hide');
|
||
|
} else {
|
||
|
if (document.form1.idtype[1].selected == true) {
|
||
|
MM_showHideLayers('textin','','show');
|
||
|
MM_showHideLayers('ipsegs','','hide');
|
||
|
MM_showHideLayers('useip','','hide');
|
||
|
} else {
|
||
|
if ((document.form1.idtype[2].selected == true) ||
|
||
|
(document.form1.idtype[3].selected == true)) {
|
||
|
MM_showHideLayers('textin','','show');
|
||
|
MM_showHideLayers('ipsegs','','hide');
|
||
|
MM_showHideLayers('useip','','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[8] != "") ||
|
||
|
(navigator.appName == "Microsoft Internet Explorer" && parent.hidden.savevalue[41] != "")) {
|
||
|
if (parseInt(parent.hidden.savevalue[8]) == 0) {
|
||
|
//ip address
|
||
|
MM_showHideLayers('textin','','hide');
|
||
|
MM_showHideLayers('useip','','hide');
|
||
|
MM_showHideLayers('ipsegs','','show');
|
||
|
if (isNS && !isNS6 == true) {
|
||
|
document.layers.ipsegs.document.form2.ip1.value = parent.hidden.savevalue[41];
|
||
|
document.layers.ipsegs.document.form2.ip2.value = parent.hidden.savevalue[42];
|
||
|
document.layers.ipsegs.document.form2.ip3.value = parent.hidden.savevalue[43];
|
||
|
document.layers.ipsegs.document.form2.ip4.value = parent.hidden.savevalue[44];
|
||
|
document.layers.textin.document.form3.reset;
|
||
|
document.layers.useip.document.form4.reset;
|
||
|
} else {
|
||
|
document.form2.ip1.value = parent.hidden.savevalue[41];
|
||
|
document.form2.ip2.value = parent.hidden.savevalue[42];
|
||
|
document.form2.ip3.value = parent.hidden.savevalue[43];
|
||
|
document.form2.ip4.value = parent.hidden.savevalue[44];
|
||
|
document.form3.reset;
|
||
|
document.form4.reset;
|
||
|
}
|
||
|
} else {
|
||
|
if (parseInt(parent.hidden.savevalue[8]) == 1) {
|
||
|
//host name
|
||
|
document.form1.idtype[1].selected = true;
|
||
|
MM_showHideLayers('ipsegs','','hide');
|
||
|
MM_showHideLayers('textin','','show');
|
||
|
MM_showHideLayers('useip','','hide');
|
||
|
if (isNS && !isNS6 == true) {
|
||
|
document.layers.textin.document.form3.idtext.value = parent.hidden.savevalue[9];
|
||
|
document.layers.ipsegs.document.form2.reset;
|
||
|
} else {
|
||
|
document.form3.idtext.value = parent.hidden.savevalue[9];
|
||
|
document.form2.reset;
|
||
|
}
|
||
|
} else {
|
||
|
if (parseInt(parent.hidden.savevalue[8]) == 2) {
|
||
|
//key identifier
|
||
|
document.form1.idtype[2].selected = true;
|
||
|
MM_showHideLayers('ipsegs','','hide');
|
||
|
MM_showHideLayers('textin','','show');
|
||
|
MM_showHideLayers('useip','','show');
|
||
|
if (isNS && !isNS6 == true) {
|
||
|
document.layers.textin.document.form3.idtext.value = parent.hidden.savevalue[9];
|
||
|
document.layers.ipsegs.document.form2.reset;
|
||
|
} else {
|
||
|
document.form3.idtext.value = parent.hidden.savevalue[9];
|
||
|
document.form2.reset;
|
||
|
}
|
||
|
} else {
|
||
|
if (parseInt(parent.hidden.savevalue[8]) == 3) {
|
||
|
//user at domain
|
||
|
document.form1.idtype[3].selected = true;
|
||
|
MM_showHideLayers('ipsegs','','hide');
|
||
|
MM_showHideLayers('textin','','show');
|
||
|
MM_showHideLayers('useip','','show');
|
||
|
if (isNS && !isNS6 == true) {
|
||
|
document.layers.textin.document.form3.idtext.value = parent.hidden.savevalue[9];
|
||
|
document.layers.ipsegs.document.form2.reset;
|
||
|
} else {
|
||
|
document.form3.idtext.value = parent.hidden.savevalue[9];
|
||
|
document.form2.reset;
|
||
|
}
|
||
|
} else {
|
||
|
MM_showHideLayers('textin','','hide');
|
||
|
MM_showHideLayers('useip','','hide');
|
||
|
MM_showHideLayers('ipsegs','','show');
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
} else {
|
||
|
//Nothing was saved in hidden frame, probably the 1st load of the page
|
||
|
MM_showHideLayers('textin','','hide');
|
||
|
MM_showHideLayers('useip','','hide');
|
||
|
MM_showHideLayers('ipsegs','','show');
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
if (parseInt(parent.hidden.savevalue[8]) != 0 && parseInt(parent.hidden.savevalue[8]) != 1) {
|
||
|
if (isNS && !isNS6 == true) {
|
||
|
document.layers.useip.document.form4.ip5.value = parent.hidden.savevalue[45];
|
||
|
document.layers.useip.document.form4.ip6.value = parent.hidden.savevalue[46];
|
||
|
document.layers.useip.document.form4.ip7.value = parent.hidden.savevalue[47];
|
||
|
document.layers.useip.document.form4.ip8.value = parent.hidden.savevalue[48];
|
||
|
} else {
|
||
|
document.form4.ip5.value = parent.hidden.savevalue[45];
|
||
|
document.form4.ip6.value = parent.hidden.savevalue[46];
|
||
|
document.form4.ip7.value = parent.hidden.savevalue[47];
|
||
|
document.form4.ip8.value = parent.hidden.savevalue[48];
|
||
|
}
|
||
|
}
|
||
|
//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
|
||
|
window.location = "rzalradvvpn20.htm";
|
||
|
//END NON-TRANSLATABLE
|
||
|
}
|
||
|
|
||
|
// checkNS()
|
||
|
//
|
||
|
function checkNS() {
|
||
|
errMessage1 = "Specify the IP address of the local key server.";
|
||
|
errMessage2 = "The IP address of the local key server is incorrect. Enter a valid IP address";
|
||
|
errMessage3 = "Specify the IP address to represent the local key server.";
|
||
|
errMessage4 = "The IP address that represents the local key server is incorrect. Enter a valid IP address";
|
||
|
errMessage5 = "Specify the key identifier to represent the local key server.";
|
||
|
errMessage6 = "The key identifier that represents the local key server is incorrect. Enter a valid key identifier between 1-256 alphanumeric characters.";
|
||
|
errMessage7 = "Specify the user at domain name to represent the local key server.";
|
||
|
errMessage9 = "Specify the host name to represent the local key server.";
|
||
|
errMessage10 = "The host name that represents the local key server is incorrect. Enter a valid host name";
|
||
|
|
||
|
//START NON-TRANSLATABLE
|
||
|
var newKey;
|
||
|
var key1 = "";
|
||
|
var keyin = document.layers.textin.document.form3.idtext.value;
|
||
|
|
||
|
//Save id type and corresponding identifier
|
||
|
if (document.form1.idtype[0].selected == true) {
|
||
|
//ip address selected
|
||
|
parent.hidden.savevalue[8] = 0;
|
||
|
if (document.layers.ipsegs.document.form2.ip2.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(errMessage3);
|
||
|
document.layers.ipsegs.document.form2.ip1.select();
|
||
|
document.layers.ipsegs.document.form2.ip1.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check IP address of local key
|
||
|
var add1 = parseInt(document.layers.ipsegs.document.form2.ip1.value);
|
||
|
var add2 = parseInt(document.layers.ipsegs.document.form2.ip2.value);
|
||
|
var add3 = parseInt(document.layers.ipsegs.document.form2.ip3.value);
|
||
|
var 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(errMessage4);
|
||
|
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(errMessage4);
|
||
|
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(errMessage4);
|
||
|
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(errMessage4);
|
||
|
document.layers.ipsegs.document.form2.ip4.select();
|
||
|
document.layers.ipsegs.document.form2.ip4.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//IP address is valid
|
||
|
parent.hidden.savevalue[9] = add1 + "." + add2 + "." + add3 + "." + add4;
|
||
|
parent.hidden.savevalue[41] = add1;
|
||
|
parent.hidden.savevalue[42] = add2;
|
||
|
parent.hidden.savevalue[43] = add3;
|
||
|
parent.hidden.savevalue[44] = add4;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
} else {
|
||
|
if (document.form1.idtype[1].selected == true) {
|
||
|
//Host name selected
|
||
|
parent.hidden.savevalue[8] = 1;
|
||
|
if (keyin == "") {
|
||
|
//Give error message
|
||
|
alert(errMessage9);
|
||
|
document.layers.textin.document.form3.idtext.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Host name was entered
|
||
|
parent.hidden.savevalue[9] = keyin;
|
||
|
}
|
||
|
} else {
|
||
|
if (document.form1.idtype[2].selected == true) {
|
||
|
//key identifier selected
|
||
|
parent.hidden.savevalue[8] = 2;
|
||
|
if (keyin == "") {
|
||
|
//Give error message
|
||
|
alert(errMessage5);
|
||
|
document.layers.textin.document.form3.idtext.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Search for any spaces and get rid of them
|
||
|
re = /\s*/;
|
||
|
newKey = keyin.split(re);
|
||
|
// Filter out non-alphanumeric characters
|
||
|
for (var i = 0; i < newKey.length; i++) {
|
||
|
if ((newKey[i].charCodeAt(0) >= 48 && newKey[i].charCodeAt(0) <= 57) ||
|
||
|
(newKey[i].charCodeAt(0) >= 65 && newKey[i].charCodeAt(0) <= 90) ||
|
||
|
(newKey[i].charCodeAt(0) >= 97 && newKey[i].charCodeAt(0) <= 122)) {
|
||
|
key1 += newKey[i];
|
||
|
}
|
||
|
}
|
||
|
//Ensure that they entered at least one valid value
|
||
|
if (key1 != "") {
|
||
|
//Key identifier is now valid, save it to hidden frame
|
||
|
parent.hidden.savevalue[9] = key1;
|
||
|
} else {
|
||
|
alert(errMessage6);
|
||
|
document.layers.textin.document.form3.idtext.select();
|
||
|
document.layers.textin.document.form3.idtext.focus();
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
} else {
|
||
|
if (document.form1.idtype[3].selected == true) {
|
||
|
//user at domain name selected
|
||
|
parent.hidden.savevalue[8] = 3;
|
||
|
if (keyin == "") {
|
||
|
//Give error message
|
||
|
alert(errMessage7);
|
||
|
document.layers.textin.document.form3.idtext.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Email is entered, no error check performed
|
||
|
parent.hidden.savevalue[9] = keyin;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//Save whether use local IP address to identify local data endpoint
|
||
|
if (document.form1.idtype[0].selected == true || document.form1.idtype[1].selected == true) {
|
||
|
parent.hidden.savevalue[11] = "";
|
||
|
parent.hidden.savevalue[45] = "";
|
||
|
parent.hidden.savevalue[46] = "";
|
||
|
parent.hidden.savevalue[47] = "";
|
||
|
parent.hidden.savevalue[48] = "";
|
||
|
} else {
|
||
|
if (document.layers.useip.document.form4.ip5.value == "" && document.layers.useip.document.form4.ip6.value == "" &&
|
||
|
document.layers.useip.document.form4.ip7.value == "" && document.layers.useip.document.form4.ip8.value == "") {
|
||
|
//no values entered
|
||
|
alert(errMessage1);
|
||
|
document.layers.useip.document.form4.ip5.select();
|
||
|
document.layers.useip.document.form4.ip5.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check IP address of local key
|
||
|
add5 = parseInt(document.layers.useip.document.form4.ip5.value);
|
||
|
add6 = parseInt(document.layers.useip.document.form4.ip6.value);
|
||
|
add7 = parseInt(document.layers.useip.document.form4.ip7.value);
|
||
|
add8 = parseInt(document.layers.useip.document.form4.ip8.value);
|
||
|
//Check the first segment
|
||
|
if (add5 < 1 || add5 > 255 || isNaN(add5) || document.layers.useip.document.form4.ip5.value == "") {
|
||
|
alert(errMessage2);
|
||
|
document.layers.useip.document.form4.ip5.select();
|
||
|
document.layers.useip.document.form4.ip5.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the second segment
|
||
|
if (add6 < 0 || add6 > 255 || isNaN(add6) || document.layers.useip.document.form4.ip6.value == "") {
|
||
|
alert(errMessage2);
|
||
|
document.layers.useip.document.form4.ip6.select();
|
||
|
document.layers.useip.document.form4.ip6.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the third segment
|
||
|
if (add7 < 0 || add7 > 255 || isNaN(add7) || document.layers.useip.document.form4.ip7.value == "") {
|
||
|
alert(errMessage2);
|
||
|
document.layers.useip.document.form4.ip7.select();
|
||
|
document.layers.useip.document.form4.ip7.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check the fourth segment
|
||
|
if (add8 < 0 || add8 > 255 || isNaN(add8) || document.layers.useip.document.form4.ip8.value == "") {
|
||
|
alert(errMessage2);
|
||
|
document.layers.useip.document.form4.ip8.select();
|
||
|
document.layers.useip.document.form4.ip8.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//IP address is valid
|
||
|
parent.hidden.savevalue[11] = add5 + "." + add6 + "." + add7 + "." + add8;
|
||
|
parent.hidden.savevalue[45] = add5;
|
||
|
parent.hidden.savevalue[46] = add6;
|
||
|
parent.hidden.savevalue[47] = add7;
|
||
|
parent.hidden.savevalue[48] = add8;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if (parseInt(parent.hidden.savevalue[6]) == 1) {
|
||
|
window.location = "rzalradvvpn60.htm";
|
||
|
} else {
|
||
|
window.location = "rzalradvvpn50.htm";
|
||
|
}
|
||
|
//END NON-TRANSLATABLE
|
||
|
}
|
||
|
|
||
|
// checkIE()
|
||
|
//
|
||
|
function checkIE() {
|
||
|
errMessage1 = "Specify the IP address of the local key server.";
|
||
|
errMessage2 = "The IP address of the local key server is incorrect. Enter a valid IP address";
|
||
|
errMessage3 = "Specify the IP address to represent the local key server.";
|
||
|
errMessage4 = "The IP address that represents the local key server is incorrect. Enter a valid IP address";
|
||
|
errMessage5 = "Specify the key identifier to represent the local key server.";
|
||
|
errMessage6 = "The key identifier that represents the local key server is incorrect. Enter a valid key identifier between 1-256 alphanumeric characters.";
|
||
|
errMessage7 = "Specify the user at domain name to represent the local key server.";
|
||
|
errMessage9 = "Specify the host name to represent the local key server.";
|
||
|
errMessage10 = "The host name that represents the local key server is incorrect. Enter a valid host name";
|
||
|
|
||
|
//START NON-TRANSLATABLE
|
||
|
var newKey;
|
||
|
var key1 = "";
|
||
|
var keyin = document.form3.idtext.value;;
|
||
|
|
||
|
//Save id type and corresponding identifier
|
||
|
if (document.form1.idtype[0].selected == true) {
|
||
|
//ip address selected
|
||
|
parent.hidden.savevalue[8] = 0;
|
||
|
if (document.form2.ip2.value == "" && document.form2.ip2.value == "" &&
|
||
|
document.form2.ip3.value == "" && document.form2.ip4.value == "") {
|
||
|
//no values entered
|
||
|
alert(errMessage3);
|
||
|
document.form2.ip1.select();
|
||
|
document.form2.ip1.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check IP address of local key
|
||
|
var add1 = parseInt(document.form2.ip1.value);
|
||
|
var add2 = parseInt(document.form2.ip2.value);
|
||
|
var add3 = parseInt(document.form2.ip3.value);
|
||
|
var add4 = parseInt(document.form2.ip4.value);
|
||
|
//Check the first segment
|
||
|
if (add1 < 1 || add1 > 255 || isNaN(add1) || document.form2.ip1.value == "") {
|
||
|
alert(errMessage4);
|
||
|
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(errMessage4);
|
||
|
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(errMessage4);
|
||
|
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(errMessage4);
|
||
|
document.form2.ip4.select();
|
||
|
document.form2.ip4.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//IP address is valid
|
||
|
parent.hidden.savevalue[9] = add1 + "." + add2 + "." + add3 + "." + add4;
|
||
|
parent.hidden.savevalue[41] = add1;
|
||
|
parent.hidden.savevalue[42] = add2;
|
||
|
parent.hidden.savevalue[43] = add3;
|
||
|
parent.hidden.savevalue[44] = add4;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
} else {
|
||
|
if (document.form1.idtype[1].selected == true) {
|
||
|
//Host name selected
|
||
|
parent.hidden.savevalue[8] = 1;
|
||
|
if (keyin == "") {
|
||
|
//Give error message
|
||
|
alert(errMessage9);
|
||
|
document.form3.idtext.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Host name was entered
|
||
|
parent.hidden.savevalue[9] = keyin;
|
||
|
}
|
||
|
} else {
|
||
|
if (document.form1.idtype[2].selected == true) {
|
||
|
//key identifier selected
|
||
|
parent.hidden.savevalue[8] = 2;
|
||
|
if (keyin == "") {
|
||
|
//Give error message
|
||
|
alert(errMessage5);
|
||
|
document.form3.idtext.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Search for any spaces and get rid of them
|
||
|
re = /\s*/;
|
||
|
newKey = keyin.split(re);
|
||
|
// Filter out non-alphanumeric characters
|
||
|
for (var i = 0; i < newKey.length; i++) {
|
||
|
if ((newKey[i].charCodeAt(0) >= 48 && newKey[i].charCodeAt(0) <= 57) ||
|
||
|
(newKey[i].charCodeAt(0) >= 65 && newKey[i].charCodeAt(0) <= 90) ||
|
||
|
(newKey[i].charCodeAt(0) >= 97 && newKey[i].charCodeAt(0) <= 122)) {
|
||
|
key1 += newKey[i];
|
||
|
}
|
||
|
}
|
||
|
//Ensure that they entered at least one valid value
|
||
|
if (key1 != "") {
|
||
|
//Key identifier is now valid, save it to hidden frame
|
||
|
parent.hidden.savevalue[9] = key1;
|
||
|
} else {
|
||
|
alert(errMessage6);
|
||
|
document.form3.idtext.select();
|
||
|
document.form3.idtext.focus();
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
} else {
|
||
|
if (document.form1.idtype[3].selected == true) {
|
||
|
//user at domain name selected
|
||
|
parent.hidden.savevalue[8] = 3;
|
||
|
if (keyin == "") {
|
||
|
//Give error message
|
||
|
alert(errMessage7);
|
||
|
document.form3.idtext.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Email is valid
|
||
|
parent.hidden.savevalue[9] = keyin;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//Save whether use local IP address to identify local data endpoint
|
||
|
if (document.form1.idtype[0].selected == true || document.form1.idtype[1].selected == true) {
|
||
|
parent.hidden.savevalue[11] = "";
|
||
|
parent.hidden.savevalue[45] = "";
|
||
|
parent.hidden.savevalue[46] = "";
|
||
|
parent.hidden.savevalue[47] = "";
|
||
|
parent.hidden.savevalue[48] = "";
|
||
|
} else {
|
||
|
if (document.form4.ip5.value == "" && document.form4.ip6.value == "" &&
|
||
|
document.form4.ip7.value == "" && document.form4.ip8.value == "") {
|
||
|
//no values entered
|
||
|
alert(errMessage1);
|
||
|
document.form4.ip5.select();
|
||
|
document.form4.ip5.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//Check IP address of local key
|
||
|
add5 = parseInt(document.form4.ip5.value);
|
||
|
add6 = parseInt(document.form4.ip6.value);
|
||
|
add7 = parseInt(document.form4.ip7.value);
|
||
|
add8 = parseInt(document.form4.ip8.value);
|
||
|
//Check the first segment
|
||
|
if (add5 < 1 || add5 > 255 || isNaN(add5) || document.form4.ip5.value == "") {
|
||
|
alert(errMessage2);
|
||
|
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(errMessage2);
|
||
|
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(errMessage2);
|
||
|
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(errMessage2);
|
||
|
document.form4.ip8.select();
|
||
|
document.form4.ip8.focus();
|
||
|
return;
|
||
|
} else {
|
||
|
//IP address is valid
|
||
|
parent.hidden.savevalue[11] = add5 + "." + add6 + "." + add7 + "." + add8;
|
||
|
parent.hidden.savevalue[45] = add5;
|
||
|
parent.hidden.savevalue[46] = add6;
|
||
|
parent.hidden.savevalue[47] = add7;
|
||
|
parent.hidden.savevalue[48] = add8;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if (parseInt(parent.hidden.savevalue[6]) == 1) {
|
||
|
window.location = "rzalradvvpn60.htm";
|
||
|
} else {
|
||
|
window.location = "rzalradvvpn50.htm";
|
||
|
}
|
||
|
//END NON-TRANSLATABLE
|
||
|
}
|
||
|
|
||
|
// onNext()
|
||
|
//
|
||
|
// This function is called when the user clicks on the Next button on the form
|
||
|
function onNext() {
|
||
|
if (isNS && !isNS6 == true) {
|
||
|
checkNS();
|
||
|
} else {
|
||
|
checkIE();
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
//////////-->
|
||
|
</script>
|
||
|
<title>VPN planning advisor</title>
|
||
|
</head>
|
||
|
|
||
|
<BODY onLoad="restoreValues()">
|
||
|
|
||
|
<H2>VPN planning advisor</H2>
|
||
|
<STRONG>Identify local key server</STRONG>
|
||
|
|
||
|
<form action=submit name="form1">
|
||
|
<P>Select an identifier type for the local system and then enter its associated identfier. This identifier represents both the connection endpoint and the data endpoint.</p>
|
||
|
<table>
|
||
|
<tr><td width=29> </td>
|
||
|
<td width=122><label for="idfixed">Identifier type:</label></td>
|
||
|
<td>
|
||
|
<SELECT NAME="idtype" onChange="changeHidden();" id="idfixed">
|
||
|
<OPTION SELECTED>IP version 4 address</OPTION>
|
||
|
<OPTION>Host name</OPTION>
|
||
|
<OPTION>Key identifier</OPTION>
|
||
|
<OPTION>User @ fully qualified domain name</OPTION>
|
||
|
</SELECT>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</form>
|
||
|
<div id="ipsegs" style="position: absolute;">
|
||
|
<form action=submit name="form2">
|
||
|
<table>
|
||
|
<tr><td width=29> </td>
|
||
|
<td width=122><label for="idQ1">Enter the identifier:</label></td>
|
||
|
<td><INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip1" id="idQ1"><STRONG> . </STRONG>
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip2" id="idQ1"><STRONG> . </STRONG>
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip3" id="idQ1"><STRONG> . </STRONG>
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip4" id="idQ1" id="idQ1"></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</form>
|
||
|
</div>
|
||
|
|
||
|
<div id="textin" style="position: relative;">
|
||
|
<form action=submit name="form3">
|
||
|
<table>
|
||
|
<tr><td width=29> </td>
|
||
|
<td width=122><label for="idQ2">Enter the identifier:</label></td>
|
||
|
<td><INPUT TYPE=text NAME="idtext" MAXLENGTH=128 SIZE=20 id="idQ2"></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</form>
|
||
|
</div>
|
||
|
|
||
|
<div id="useip" style="position: relative;">
|
||
|
<form action=submit name="form4">
|
||
|
<P>What is the IP address of the local key server to identify the local data endpoint?</p>
|
||
|
<table>
|
||
|
<tr>
|
||
|
<td width=29 align=right> </td>
|
||
|
<td><label for="ipaddQ1">IP address:</label>
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip5" id="ipaddQ1"><STRONG> . </STRONG>
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip6" id="ipaddQ1"><STRONG> . </STRONG>
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip7" id="ipaddQ1"><STRONG> . </STRONG>
|
||
|
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip8" id="ipaddQ1">
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</form>
|
||
|
</div>
|
||
|
|
||
|
<form action=submit name="form6">
|
||
|
<CENTER>
|
||
|
<input name=submit type="button" value=" << Back " onClick="onBack()">
|
||
|
<input name=submit type="button" value=" Next >> " onClick="onNext()">
|
||
|
</CENTER>
|
||
|
</form>
|
||
|
</BODY>
|
||
|
|
||
|
</html>
|
||
|
|