ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzalr_5.4.0.1/rzalradvvpn80.htm

1553 lines
84 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<!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('ranger','','hide');
MM_showHideLayers('textin','','hide');
MM_showHideLayers('commoner','','hide');
MM_showHideLayers('subber','','hide');
MM_showHideLayers('useip','','hide');
} else {
if (document.form1.idtype[1].selected == true) {
MM_showHideLayers('textin','','show');
MM_showHideLayers('ranger','','hide');
MM_showHideLayers('ipsegs','','hide');
MM_showHideLayers('commoner','','hide');
MM_showHideLayers('subber','','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('ranger','','hide');
MM_showHideLayers('ipsegs','','hide');
MM_showHideLayers('commoner','','hide');
MM_showHideLayers('subber','','hide');
MM_showHideLayers('useip','','show');
} else {
if (document.form1.idtype[4].selected == true) {
//ip range
MM_showHideLayers('ranger','','show');
MM_showHideLayers('textin','','hide');
MM_showHideLayers('ipsegs','','hide');
MM_showHideLayers('commoner','','hide');
MM_showHideLayers('subber','','hide');
MM_showHideLayers('useip','','hide');
} else {
if (document.form1.idtype[5].selected == true) {
//subnet
MM_showHideLayers('ranger','','hide');
MM_showHideLayers('textin','','hide');
MM_showHideLayers('ipsegs','','hide');
MM_showHideLayers('commoner','','hide');
MM_showHideLayers('subber','','show');
MM_showHideLayers('useip','','hide');
} else {
if (document.form1.idtype[6].selected == true) {
//any ip
MM_showHideLayers('ranger','','hide');
MM_showHideLayers('textin','','hide');
MM_showHideLayers('ipsegs','','hide');
MM_showHideLayers('commoner','','hide');
MM_showHideLayers('subber','','hide');
MM_showHideLayers('useip','','hide');
} else {
//distname
MM_showHideLayers('commoner','','show');
MM_showHideLayers('ranger','','hide');
MM_showHideLayers('textin','','hide');
MM_showHideLayers('ipsegs','','hide');
MM_showHideLayers('subber','','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[18] != "") ||
(navigator.appName == "Microsoft Internet Explorer" && parent.hidden.savevalue[61] != "")) {
if (parseInt(parent.hidden.savevalue[18]) == 0) {
//ip version 4 address
MM_showHideLayers('textin','','hide');
MM_showHideLayers('ranger','','hide');
MM_showHideLayers('subber','','hide');
MM_showHideLayers('commoner','','hide');
MM_showHideLayers('ipsegs','','show');
MM_showHideLayers('useip','','hide');
if (isNS && !isNS6 == true) {
document.layers.ipsegs.document.form2.ip1.value = parent.hidden.savevalue[61];
document.layers.ipsegs.document.form2.ip2.value = parent.hidden.savevalue[62];
document.layers.ipsegs.document.form2.ip3.value = parent.hidden.savevalue[63];
document.layers.ipsegs.document.form2.ip4.value = parent.hidden.savevalue[64];
document.layers.textin.document.form3.reset;
document.layers.ranger.document.form4.reset;
document.layers.commoner.document.comForm.reset;
document.layers.subber.document.form5.reset;
document.layers.useip.document.form10.reset;
} else {
document.form2.ip1.value = parent.hidden.savevalue[61];
document.form2.ip2.value = parent.hidden.savevalue[62];
document.form2.ip3.value = parent.hidden.savevalue[63];
document.form2.ip4.value = parent.hidden.savevalue[64];
document.form3.reset;
document.form4.reset;
document.comForm.reset;
document.form5.reset;
document.form10.reset;
}
} else {
if (parseInt(parent.hidden.savevalue[18]) == 1) {
//host name
document.form1.idtype[1].selected = true;
MM_showHideLayers('ranger','','hide');
MM_showHideLayers('subber','','hide');
MM_showHideLayers('ipsegs','','hide');
MM_showHideLayers('commoner','','hide');
MM_showHideLayers('textin','','show');
MM_showHideLayers('useip','','hide');
if (isNS && !isNS6 == true) {
document.layers.textin.document.form3.idtext.value = parent.hidden.savevalue[19];
document.layers.ipsegs.document.form2.reset;
document.layers.ranger.document.form4.reset;
document.layers.commoner.document.comForm.reset;
document.layers.subber.document.form5.reset;
document.layers.useip.document.form10.reset;
} else {
document.form3.idtext.value = parent.hidden.savevalue[19];
document.form2.reset;
document.form4.reset;
document.comForm.reset;
document.form5.reset;
}
} else {
if (parseInt(parent.hidden.savevalue[18]) == 2) {
//keyid
document.form1.idtype[2].selected = true;
MM_showHideLayers('ranger','','hide');
MM_showHideLayers('ipsegs','','hide');
MM_showHideLayers('commoner','','hide');
MM_showHideLayers('subber','','hide');
MM_showHideLayers('textin','','show');
MM_showHideLayers('useip','','show');
if (isNS && !isNS6 == true) {
document.layers.textin.document.form3.idtext.value = parent.hidden.savevalue[19];
document.layers.ipsegs.document.form2.reset;
document.layers.ranger.document.form4.reset;
document.layers.commoner.document.comForm.reset;
document.layers.subber.document.form5.reset;
} else {
document.form3.idtext.value = parent.hidden.savevalue[19];
document.form2.reset;
document.form4.reset;
document.comForm.reset;
document.form5.reset;
}
} else {
if (parseInt(parent.hidden.savevalue[18]) == 3) {
//userat
document.form1.idtype[3].selected = true;
MM_showHideLayers('ranger','','hide');
MM_showHideLayers('ipsegs','','hide');
MM_showHideLayers('subber','','hide');
MM_showHideLayers('commoner','','hide');
MM_showHideLayers('textin','','show');
MM_showHideLayers('useip','','show');
if (isNS && !isNS6 == true) {
document.layers.textin.document.form3.idtext.value = parent.hidden.savevalue[19];
document.layers.ipsegs.document.form2.reset;
document.layers.ranger.document.form4.reset;
document.layers.commoner.document.comForm.reset;
document.layers.subber.document.form5.reset;
} else {
document.form3.idtext.value = parent.hidden.savevalue[19];
document.form2.reset;
document.form4.reset;
document.comForm.reset;
document.form5.reset;
}
} else {
if (parseInt(parent.hidden.savevalue[18]) == 4) {
//range
document.form1.idtype[4].selected = true;
MM_showHideLayers('textin','','hide');
MM_showHideLayers('ipsegs','','hide');
MM_showHideLayers('commoner','','hide');
MM_showHideLayers('subber','','hide');
MM_showHideLayers('ranger','','show');
MM_showHideLayers('useip','','hide');
if (isNS && !isNS6 == true) {
document.layers.ranger.document.form4.ip5.value = parent.hidden.savevalue[61];
document.layers.ranger.document.form4.ip6.value = parent.hidden.savevalue[62];
document.layers.ranger.document.form4.ip7.value = parent.hidden.savevalue[63];
document.layers.ranger.document.form4.ip8.value = parent.hidden.savevalue[64];
document.layers.ranger.document.form4.ip9.value = parent.hidden.savevalue[65];
document.layers.ranger.document.form4.ip10.value = parent.hidden.savevalue[66];
document.layers.ranger.document.form4.ip11.value = parent.hidden.savevalue[67];
document.layers.ranger.document.form4.ip12.value = parent.hidden.savevalue[68];
document.layers.ipsegs.document.form2.reset;
document.layers.textin.document.form3.reset;
document.layers.commoner.document.comForm.reset;
document.layers.subber.document.form5.reset;
document.layers.useip.document.form10.reset;
} else {
document.form4.ip5.value = parent.hidden.savevalue[61];
document.form4.ip6.value = parent.hidden.savevalue[62];
document.form4.ip7.value = parent.hidden.savevalue[63];
document.form4.ip8.value = parent.hidden.savevalue[64];
document.form4.ip9.value = parent.hidden.savevalue[65];
document.form4.ip10.value = parent.hidden.savevalue[66];
document.form4.ip11.value = parent.hidden.savevalue[67];
document.form4.ip12.value = parent.hidden.savevalue[68];
document.form2.reset;
document.form3.reset;
document.comForm.reset;
document.form5.reset;
document.form10.reset;
}
} else {
if (parseInt(parent.hidden.savevalue[18]) == 5) {
//subnet
document.form1.idtype[5].selected = true;
MM_showHideLayers('subber','','show');
MM_showHideLayers('textin','','hide');
MM_showHideLayers('ranger','','hide');
MM_showHideLayers('commoner','','hide');
MM_showHideLayers('ipsegs','','hide');
MM_showHideLayers('useip','','hide');
if (isNS && !isNS6 == true) {
document.layers.subber.document.form5.sub1.value = parent.hidden.savevalue[61];
document.layers.subber.document.form5.sub2.value = parent.hidden.savevalue[62];
document.layers.subber.document.form5.sub3.value = parent.hidden.savevalue[63];
document.layers.subber.document.form5.sub4.value = parent.hidden.savevalue[64];
document.layers.subber.document.form5.mask1.value = parent.hidden.savevalue[65];
document.layers.subber.document.form5.mask2.value = parent.hidden.savevalue[66];
document.layers.subber.document.form5.mask3.value = parent.hidden.savevalue[67];
document.layers.subber.document.form5.mask4.value = parent.hidden.savevalue[68];
document.layers.ipsegs.document.form2.reset;
document.layers.textin.document.form3.reset;
document.layers.ranger.document.form4.reset;
document.layers.commoner.document.comForm.reset;
document.layers.useip.document.form10.reset;
} else {
document.form5.sub1.value = parent.hidden.savevalue[61];
document.form5.sub2.value = parent.hidden.savevalue[62];
document.form5.sub3.value = parent.hidden.savevalue[63];
document.form5.sub4.value = parent.hidden.savevalue[64];
document.form5.mask1.value = parent.hidden.savevalue[65];
document.form5.mask2.value = parent.hidden.savevalue[66];
document.form5.mask3.value = parent.hidden.savevalue[67];
document.form5.mask4.value = parent.hidden.savevalue[68];
document.form2.reset;
document.form3.reset;
document.form4.reset;
document.comForm.reset;
document.form10.reset;
}
} else {
if (parseInt(parent.hidden.savevalue[18]) == 6) {
//any ip
document.form1.idtype[6].selected = true;
MM_showHideLayers('textin','','hide');
MM_showHideLayers('ranger','','hide');
MM_showHideLayers('commoner','','hide');
MM_showHideLayers('ipsegs','','hide');
MM_showHideLayers('subber','','hide');
MM_showHideLayers('useip','','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.commoner.document.comForm.reset;
document.layers.subber.document.form5.reset;
document.layers.useip.document.form10.reset;
} else {
document.form2.reset;
document.form3.reset;
document.form4.reset;
document.comForm.reset;
document.form5.reset;
document.form10.reset;
}
} else {
if (parseInt(parent.hidden.savevalue[18]) == 7) {
//distinguished name
if (parseInt(parent.hidden.savevalue[3]) == 0) {
document.form1.idtype[7].selected = true;
MM_showHideLayers('textin','','hide');
MM_showHideLayers('ranger','','hide');
MM_showHideLayers('ipsegs','','hide');
MM_showHideLayers('subber','','hide');
MM_showHideLayers('commoner','','show');
MM_showHideLayers('useip','','show');
if (isNS && !isNS6 == true) {
document.layers.commoner.document.comForm.commname.value = parent.hidden.savevalue[61];
document.layers.commoner.document.comForm.orgunits.value = parent.hidden.savevalue[62];
document.layers.commoner.document.comForm.organ.value = parent.hidden.savevalue[63];
document.layers.commoner.document.comForm.local.value = parent.hidden.savevalue[64];
document.layers.commoner.document.comForm.state.value = parent.hidden.savevalue[65];
document.layers.commoner.document.comForm.count.value = parent.hidden.savevalue[66];
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.comForm.commname.value = parent.hidden.savevalue[61];
document.comForm.orgunits.value = parent.hidden.savevalue[62];
document.comForm.organ.value = parent.hidden.savevalue[63];
document.comForm.local.value = parent.hidden.savevalue[64];
document.comForm.state.value = parent.hidden.savevalue[65];
document.comForm.count.value = parent.hidden.savevalue[66];
document.form2.reset;
document.form3.reset;
document.form4.reset;
document.form5.reset;
}
} else {
//get to this path when they've backed up after selecting DN and recheck preshared key
MM_showHideLayers('textin','','hide');
MM_showHideLayers('ranger','','hide');
MM_showHideLayers('commoner','','hide');
MM_showHideLayers('subber','','hide');
MM_showHideLayers('ipsegs','','show');
MM_showHideLayers('useip','','hide');
}
}
}
}
}
}
}
}
}
} else {
//Nothing was saved in hidden frame, probably the 1st load of the page
MM_showHideLayers('textin','','hide');
MM_showHideLayers('ranger','','hide');
MM_showHideLayers('commoner','','hide');
MM_showHideLayers('subber','','hide');
MM_showHideLayers('useip','','hide');
MM_showHideLayers('ipsegs','','show');
}
if (parseInt(parent.hidden.savevalue[18]) != 0 &&
parseInt(parent.hidden.savevalue[18]) != 1 &&
parseInt(parent.hidden.savevalue[18]) != 4 &&
parseInt(parent.hidden.savevalue[18]) != 5 &&
parseInt(parent.hidden.savevalue[18]) != 6) {
if (isNS && !isNS6 == true) {
document.layers.useip.document.form10.ip13.value = parent.hidden.savevalue[28];
document.layers.useip.document.form10.ip14.value = parent.hidden.savevalue[29];
document.layers.useip.document.form10.ip15.value = parent.hidden.savevalue[30];
document.layers.useip.document.form10.ip16.value = parent.hidden.savevalue[31];
} else {
document.form10.ip13.value = parent.hidden.savevalue[28];
document.form10.ip14.value = parent.hidden.savevalue[29];
document.form10.ip15.value = parent.hidden.savevalue[30];
document.form10.ip16.value = parent.hidden.savevalue[31];
}
}
//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[6]) == 1) {
window.location = "rzalradvvpn60.htm";
} else {
window.location = "rzalradvvpn50.htm";
}
//END NON-TRANSLATABLE
}
// oncheckNS()
//
//
function checkNS() {
errMessage1 = "The IP address that represents the remote key server is incorrect. Enter a valid IP address";
errMessage2 = "Specify the IP address to represent the remote key server.";
errMessage3 = "The subnet that represents the remote key server is incorrect. Enter a valid subnet.";
errMessage3a = "The mask that identifies the remote key server is incorrect. Enter a valid mask.";
errMessage4 = "Specify the subnet to represent the remote key server.";
errMessage4a = "Specify the mask to identify the remote key server.";
errMessage5 = "The range of addresses that represents the remote key server is incorrect. Enter a valid range.";
errMessage6 = "Specify the range of addresses to represent the remote key server.";
errMessage7 = "Specify the key identifier to represent the remote key server.";
errMessage8 = "The key identifier to represent the local remote server is incorrect. Enter a valid key identifier between 1-256 alphanumeric characters.";
errMessage9 = "Specify the host name to represent the remote key server.";
errMessage10 = "The host name that represents the remote key server is incorrect. Enter a valid host name.";
errMessage11 = "Specify the user at domain name to represent the remote key server.";
errMessage15 = "The two addresses you entered for the range are identical. Enter starting and ending addresses."
errMessage16 = "Enter a common name.";
//START NON-TRANSLATABLE
var newKey;
var key1 ="";
var keyin = document.layers.textin.document.form3.idtext.value;
if (document.form1.idtype[0].selected == true) {
//ip version 4 address selected
parent.hidden.savevalue[18] = 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 < 2 || 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[19] = add1 + "." + add2 + "." + add3 + "." + add4;
parent.hidden.savevalue[61] = add1;
parent.hidden.savevalue[62] = add2;
parent.hidden.savevalue[63] = add3;
parent.hidden.savevalue[64] = add4;
}
}
}
}
}
} else {
if (document.form1.idtype[1].selected == true) {
//hostname selected
parent.hidden.savevalue[18] = 1;
if (document.layers.textin.document.form3.idtext.value == "") {
//Give error message
alert(errMessage9);
document.layers.textin.document.form3.idtext.focus();
return;
} else {
//Host name was entered
parent.hidden.savevalue[19] = document.layers.textin.document.form3.idtext.value;
}
} else {
if (document.form1.idtype[2].selected == true) {
//key identifier selected
parent.hidden.savevalue[18] = 2;
if (keyin == "") {
//Give error message
alert(errMessage7);
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[19] = key1;
} else {
alert(errMessage8);
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[18] = 3;
if (document.layers.textin.document.form3.idtext.value == "") {
//Give error message
alert(errMessage11);
document.layers.textin.document.form3.idtext.focus();
return;
} else {
//Email is valid
parent.hidden.savevalue[19] = document.layers.textin.document.form3.idtext.value;
}
} else {
if (document.form1.idtype[4].selected == true) {
//range selected
parent.hidden.savevalue[18] = 4;
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 < 2 || 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 < 2 || 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 {
if ((add5 == add9) && (add6 == add10) && (add7 == add11) && (add8 == add12)) {
//addresses equal each other, and that is not good
alert(errMessage15);
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[19] = add5 + "." + add6 + "." + add7 + "." + add8;
parent.hidden.savevalue[61] = add5;
parent.hidden.savevalue[62] = add6;
parent.hidden.savevalue[63] = add7;
parent.hidden.savevalue[64] = add8;
parent.hidden.savevalue[20] = add9 + "." + add10 + "." + add11 + "." + add12;
parent.hidden.savevalue[65] = add9;
parent.hidden.savevalue[66] = add10;
parent.hidden.savevalue[67] = add11;
parent.hidden.savevalue[68] = add12;
} else {
//Second address is smaller
parent.hidden.savevalue[20] = add5 + "." + add6 + "." + add7 + "." + add8;
parent.hidden.savevalue[65] = add5;
parent.hidden.savevalue[66] = add6;
parent.hidden.savevalue[67] = add7;
parent.hidden.savevalue[68] = add8;
parent.hidden.savevalue[19] = add9 + "." + add10 + "." + add11 + "." + add12;
parent.hidden.savevalue[61] = add9;
parent.hidden.savevalue[62] = add10;
parent.hidden.savevalue[63] = add11;
parent.hidden.savevalue[64] = add12;
}
}
}
}
}
}
}
}
}
}
}
} else {
if (document.form1.idtype[5].selected == true) {
//subnet selected
parent.hidden.savevalue[18] = 5;
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 < 2 ||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[19] = su1 + "." + su2 + "." + su3 + "." + su4;
parent.hidden.savevalue[61] = su1;
parent.hidden.savevalue[62] = su2;
parent.hidden.savevalue[63] = su3;
parent.hidden.savevalue[64] = su4;
parent.hidden.savevalue[20] = mas1 + "." + mas2 + "." + mas3 + "." + mas4;
parent.hidden.savevalue[65] = mas1;
parent.hidden.savevalue[66] = mas2;
parent.hidden.savevalue[67] = mas3;
parent.hidden.savevalue[68] = mas4;
}
}
}
}
}
}
}
}
}
}
} else {
if (document.form1.idtype[6].selected == true) {
//any ip address selected
parent.hidden.savevalue[18] = 6;
} else {
if (document.form1.idtype[7].selected == true) {
//distinguished name selected
parent.hidden.savevalue[18] = 7;
if (document.layers.commoner.document.comForm.commname.value == "") {
alert(errMessage16);
document.layers.commoner.document.comForm.commname.focus();
return;
} else {
parent.hidden.savevalue[61] = document.layers.commoner.document.comForm.commname.value;
parent.hidden.savevalue[62] = document.layers.commoner.document.comForm.orgunits.value;
parent.hidden.savevalue[63] = document.layers.commoner.document.comForm.organ.value;
parent.hidden.savevalue[64] = document.layers.commoner.document.comForm.local.value;
parent.hidden.savevalue[65] = document.layers.commoner.document.comForm.state.value;
parent.hidden.savevalue[66] = document.layers.commoner.document.comForm.count.value;
}
} else {
//Nothing selected, which should be impossible
return;
}
}
}
}
}
}
}
}
//Save whether use remote IP address to identify remote data endpoint
if (document.form1.idtype[0].selected == true ||
document.form1.idtype[1].selected == true ||
document.form1.idtype[4].selected == true ||
document.form1.idtype[5].selected == true ||
document.form1.idtype[6].selected == true) {
parent.hidden.savevalue[12] = "";
parent.hidden.savevalue[28] = "";
parent.hidden.savevalue[29] = "";
parent.hidden.savevalue[30] = "";
parent.hidden.savevalue[31] = "";
} else {
if (document.layers.useip.document.form10.ip13.value == "" && document.layers.useip.document.form10.ip14.value == "" &&
document.layers.useip.document.form10.ip15.value == "" && document.layers.useip.document.form10.ip16.value == "") {
//no values entered
alert(errMessage2);
document.layers.useip.document.form10.ip13.select();
document.layers.useip.document.form10.ip13.focus();
return;
} else {
//Check IP address of local key
add5 = parseInt(document.layers.useip.document.form10.ip13.value);
add6 = parseInt(document.layers.useip.document.form10.ip14.value);
add7 = parseInt(document.layers.useip.document.form10.ip15.value);
add8 = parseInt(document.layers.useip.document.form10.ip16.value);
//Check the first segment
if (add5 < 1 || add5 > 255 || isNaN(add5) || document.layers.useip.document.form10.ip13.value == "") {
alert(errMessage1);
document.layers.useip.document.form10.ip13.select();
document.layers.useip.document.form10.ip13.focus();
return;
} else {
//Check the second segment
if (add6 < 0 || add6 > 255 || isNaN(add6) || document.layers.useip.document.form10.ip14.value == "") {
alert(errMessage1);
document.layers.useip.document.form10.ip14.select();
document.layers.useip.document.form10.ip14.focus();
return;
} else {
//Check the third segment
if (add7 < 0 || add7 > 255 || isNaN(add7) || document.layers.useip.document.form10.ip15.value == "") {
alert(errMessage1);
document.layers.useip.document.form10.ip15.select();
document.layers.useip.document.form10.ip15.focus();
return;
} else {
//Check the fourth segment
if (add8 < 0 || add8 > 255 || isNaN(add8) || document.layers.useip.document.form10.ip16.value == "") {
alert(errMessage1);
document.layers.useip.document.form10.ip16.select();
document.layers.useip.document.form10.ip16.focus();
return;
} else {
//IP address is valid
parent.hidden.savevalue[12] = add5 + "." + add6 + "." + add7 + "." + add8;
parent.hidden.savevalue[28] = add5;
parent.hidden.savevalue[29] = add6;
parent.hidden.savevalue[30] = add7;
parent.hidden.savevalue[31] = add8;
}
}
}
}
}
}
if (parseInt(parent.hidden.savevalue[6]) == 1 || parseInt(parent.hidden.savevalue[6]) == 3) {
window.location = "rzalradvvpn100.htm";
} else {
window.location = "rzalradvvpn110.htm";
}
//END NON-TRANSLATABLE
}
// oncheckIE()
//
//
function checkIE() {
errMessage1 = "The IP address that represents the remote key server is incorrect. Enter a valid IP address.";
errMessage2 = "Specify the IP address to represent the remote key server.";
errMessage3 = "The subnet that represents the remote key server is incorrect. Enter a valid subnet.";
errMessage3a = "The mask that identifies the remote key server is incorrect. Enter a valid mask.";
errMessage4 = "Specify the subnet to represent the remote key server.";
errMessage4a = "Specify the mask to identify the remote key server.";
errMessage5 = "The range of addresses that represents the remote key server is incorrect. Enter a valid range.";
errMessage6 = "Specify the range of addresses to represent the remote key server.";
errMessage7 = "Specify the key identifier to represent the remote key server.";
errMessage8 = "The key identifier to represent the local remote server is incorrect. Enter a valid key identifier between 1-256 alphanumeric characters.";
errMessage9 = "Specify the host name to represent the remote key server.";
errMessage10 = "The host name that represents the remote key server is incorrect. Enter a valid host name.";
errMessage11 = "Specify the user at domain name to represent the remote key server.";
errMessage15 = "The two addresses you entered for the range are identical. Enter starting and ending addresses."
errMessage16 = "Enter a common name.";
//START NON-TRANSLATABLE
var newKey;
var key1 ="";
var keyin = document.form3.idtext.value;
if (document.form1.idtype[0].selected == true) {
//ip version 4 address selected
parent.hidden.savevalue[18] = 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 < 2 || 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[19] = add1 + "." + add2 + "." + add3 + "." + add4;
parent.hidden.savevalue[61] = add1;
parent.hidden.savevalue[62] = add2;
parent.hidden.savevalue[63] = add3;
parent.hidden.savevalue[64] = add4;
}
}
}
}
}
} else {
if (document.form1.idtype[1].selected == true) {
//hostname selected
parent.hidden.savevalue[18] = 1;
if (document.form3.idtext.value == "") {
//Give error message
alert(errMessage9);
document.form3.idtext.focus();
return;
} else {
//Host name was entered
parent.hidden.savevalue[19] = document.form3.idtext.value;
}
} else {
if (document.form1.idtype[2].selected == true) {
//key identifier selected
parent.hidden.savevalue[18] = 2;
if (keyin == "") {
//Give error message
alert(errMessage7);
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[19] = key1;
} else {
alert(errMessage8);
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[18] = 3;
if (document.form3.idtext.value == "") {
//Give error message
alert(errMessage11);
document.form3.idtext.focus();
return;
} else {
//Email is valid
parent.hidden.savevalue[19] = document.form3.idtext.value;
}
} else {
if (document.form1.idtype[4].selected == true) {
//range selected
parent.hidden.savevalue[18] = 4;
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 < 2 || 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 < 2 || 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 {
if ((add5 == add9) && (add6 == add10) && (add7 == add11) && (add8 == add12)) {
//addresses equal each other, and that is not good
alert(errMessage15);
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[19] = add5 + "." + add6 + "." + add7 + "." + add8;
parent.hidden.savevalue[61] = add5;
parent.hidden.savevalue[62] = add6;
parent.hidden.savevalue[63] = add7;
parent.hidden.savevalue[64] = add8;
parent.hidden.savevalue[20] = add9 + "." + add10 + "." + add11 + "." + add12;
parent.hidden.savevalue[65] = add9;
parent.hidden.savevalue[66] = add10;
parent.hidden.savevalue[67] = add11;
parent.hidden.savevalue[68] = add12;
} else {
//Second address is smaller
parent.hidden.savevalue[20] = add5 + "." + add6 + "." + add7 + "." + add8;
parent.hidden.savevalue[65] = add5;
parent.hidden.savevalue[66] = add6;
parent.hidden.savevalue[67] = add7;
parent.hidden.savevalue[68] = add8;
parent.hidden.savevalue[19] = add9 + "." + add10 + "." + add11 + "." + add12;
parent.hidden.savevalue[61] = add9;
parent.hidden.savevalue[62] = add10;
parent.hidden.savevalue[63] = add11;
parent.hidden.savevalue[64] = add12;
}
}
}
}
}
}
}
}
}
}
}
} else {
if (document.form1.idtype[5].selected == true) {
//subnet selected
parent.hidden.savevalue[18] = 5;
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 < 2 ||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[19] = su1 + "." + su2 + "." + su3 + "." + su4;
parent.hidden.savevalue[61] = su1;
parent.hidden.savevalue[62] = su2;
parent.hidden.savevalue[63] = su3;
parent.hidden.savevalue[64] = su4;
parent.hidden.savevalue[20] = mas1 + "." + mas2 + "." + mas3 + "." + mas4;
parent.hidden.savevalue[65] = mas1;
parent.hidden.savevalue[66] = mas2;
parent.hidden.savevalue[67] = mas3;
parent.hidden.savevalue[68] = mas4;
}
}
}
}
}
}
}
}
}
}
} else {
if (document.form1.idtype[6].selected == true) {
//any ip address selected
parent.hidden.savevalue[18] = 6;
} else {
if (document.form1.idtype[7].selected == true) {
//distinguished name selected
parent.hidden.savevalue[18] = 7;
if (document.comForm.commname.value == "") {
alert(errMessage16);
document.comForm.commname.focus();
return;
} else {
parent.hidden.savevalue[61] = document.comForm.commname.value;
parent.hidden.savevalue[62] = document.comForm.orgunits.value;
parent.hidden.savevalue[63] = document.comForm.organ.value;
parent.hidden.savevalue[64] = document.comForm.local.value;
parent.hidden.savevalue[65] = document.comForm.state.value;
parent.hidden.savevalue[66] = document.comForm.count.value;
}
} else {
//Nothing selected, which should be impossible
return;
}
}
}
}
}
}
}
}
//Save whether use remote IP address to identify remote data endpoint
if (document.form1.idtype[0].selected == true ||
document.form1.idtype[1].selected == true ||
document.form1.idtype[4].selected == true ||
document.form1.idtype[5].selected == true ||
document.form1.idtype[6].selected == true) {
parent.hidden.savevalue[12] = "";
parent.hidden.savevalue[28] = "";
parent.hidden.savevalue[29] = "";
parent.hidden.savevalue[30] = "";
parent.hidden.savevalue[31] = "";
} else {
if (document.form10.ip13.value == "" && document.form10.ip14.value == "" &&
document.form10.ip15.value == "" && document.form10.ip16.value == "") {
//no values entered
alert(errMessage2);
document.form10.ip13.select();
document.form10.ip13.focus();
return;
} else {
//Check IP address of local key
add5 = parseInt(document.form10.ip13.value);
add6 = parseInt(document.form10.ip14.value);
add7 = parseInt(document.form10.ip15.value);
add8 = parseInt(document.form10.ip16.value);
//Check the first segment
if (add5 < 1 || add5 > 255 || isNaN(add5) || document.form10.ip13.value == "") {
alert(errMessage1);
document.form10.ip13.select();
document.form10.ip13.focus();
return;
} else {
//Check the second segment
if (add6 < 0 || add6 > 255 || isNaN(add6) || document.form10.ip14.value == "") {
alert(errMessage1);
document.form10.ip14.select();
document.form10.ip14.focus();
return;
} else {
//Check the third segment
if (add7 < 0 || add7 > 255 || isNaN(add7) || document.form10.ip15.value == "") {
alert(errMessage1);
document.form10.ip15.select();
document.form10.ip15.focus();
return;
} else {
//Check the fourth segment
if (add8 < 0 || add8 > 255 || isNaN(add8) || document.form10.ip16.value == "") {
alert(errMessage1);
document.form10.ip16.select();
document.form10.ip16.focus();
return;
} else {
//IP address is valid
parent.hidden.savevalue[12] = add5 + "." + add6 + "." + add7 + "." + add8;
parent.hidden.savevalue[28] = add5;
parent.hidden.savevalue[29] = add6;
parent.hidden.savevalue[30] = add7;
parent.hidden.savevalue[31] = add8;
}
}
}
}
}
}
if (parseInt(parent.hidden.savevalue[6]) == 1 || parseInt(parent.hidden.savevalue[6]) == 3) {
window.location = "rzalradvvpn100.htm";
} else {
window.location = "rzalradvvpn110.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 remote key server</STRONG>
<P>Select an identifier type for the remote system and then enter its associated identifier.</P>
<FORM ACTION=SUBMIT NAME="form1">
<TABLE>
<TR><TD WIDTH=29>&nbsp;</TD>
<TD WIDTH=122>Identifier type:</TD>
<TD>
<script type="text/javascript" language="Javascript">
//TRNOTE - Following line is all tags, does not need to be translated
select1 = "<SELECT NAME=\"idtype\" onChange=\"changeHidden();\">";
option1 = "<OPTION SELECTED>IP version 4 address<\/OPTION>"; //0
option2 = "<OPTION>Host name<\/OPTION>"; //1
option3 = "<OPTION>Key identifier<\/OPTION>"; //2
option4 = "<OPTION>User @ fully qualified domain name<\/OPTION>"; //3
option5 = "<OPTION>IP address range<\/OPTION>"; //4
option6 = "<OPTION>IP version 4 subnet<\/OPTION>"; //5
option7 = "<OPTION>Any IP address<\/OPTION>"; //6
option8 = "<OPTION>Distinguished name<\/OPTION>"; //7
//TRNOTE - Following line is all tags, does not need to be translated
select2 = "<\/SELECT>";
if (parseInt(parent.hidden.savevalue[3]) == 0) {
//Allow additional option
document.writeln(select1);
document.writeln(option1);
document.writeln(option2);
document.writeln(option3);
document.writeln(option4);
document.writeln(option5);
document.writeln(option6);
document.writeln(option7);
document.writeln(option8);
document.writeln(select2);
} else {
document.writeln(select1);
document.writeln(option1);
document.writeln(option2);
document.writeln(option3);
document.writeln(option4);
document.writeln(option5);
document.writeln(option6);
document.writeln(option7);
document.writeln(select2);
}
</SCRIPT>
</TD>
</TR>
</TABLE>
</FORM>
<DIV ID="ipsegs" STYLE="position: absolute;">
<FORM ACTION=SUBMIT NAME="form2">
<TABLE>
<TR><TD WIDTH=29>&nbsp;</TD>
<TD WIDTH=122><LABEL FOR="id">Enter the identifier:</LABEL></TD>
<TD>
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip1" id="id"><STRONG> . </STRONG>
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip2" id="id"><STRONG> . </STRONG>
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip3" id="id"><STRONG> . </STRONG>
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip4" id="id"></TD>
</TR>
</TABLE>
</FORM>
</DIV>
<DIV ID="textin" STYLE="position: absolute;">
<FORM ACTION=SUBMIT NAME="form3">
<TABLE>
<TR><TD WIDTH=29>&nbsp;</TD>
<TD WIDTH=122><label for="id1">Enter the identifier:</label></TD>
<TD><INPUT TYPE=TEXT NAME="idtext" MAXLENGTH=128 SIZE=20 id="id1"></TD>
</TR>
</TABLE>
</FORM>
</DIV>
<DIV ID="ranger" STYLE="position: absolute;">
<FORM ACTION=SUBMIT NAME="form4">
<TABLE>
<TR><TD WIDTH=29>&nbsp;</TD>
<TD WIDTH=122><label for="id2">Enter the identifier:</label></TD>
<TD><INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip5" id="id2"><STRONG> . </STRONG>
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip6" id="id2"><STRONG> . </STRONG>
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip7" id="id2"><STRONG> . </STRONG>
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip8" id="id2"> to
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip9" id="id2"><STRONG> . </STRONG>
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip10" id="id2"><STRONG> . </STRONG>
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip11" id="id2"><STRONG> . </STRONG>
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip12" id="id2"></TD>
</TR>
</TABLE>
</FORM>
</DIV>
<DIV ID="subber" STYLE="position: absolute;">
<FORM ACTION=SUBMIT NAME="form5">
<TABLE>
<TR><TD WIDTH=29>&nbsp;</TD>
<TD WIDTH=122><LABEL FOR="subnet">Enter the subnet:</LABEL></TD>
<TD><INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="sub1" ID="subnet"><STRONG> . </STRONG>
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="sub2" ID="subnet"><STRONG> . </STRONG>
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="sub3" ID="subnet"><STRONG> . </STRONG>
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="sub4" ID="subnet"></TD>
</TR>
<TR><TD WIDTH=29>&nbsp;</TD>
<TD WIDTH=122><LABEL FOR="maskid">Enter the mask:</LABEL></TD>
<TD>
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="mask1" ID="maskid"><STRONG> . </STRONG>
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="mask2" ID="maskid"><STRONG> . </STRONG>
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="mask3" ID="maskid"><STRONG> . </STRONG>
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="mask4" ID="maskid"></TD>
</TR>
</TABLE>
</FORM>
</DIV>
<DIV ID="commoner" STYLE="position: relative;">
<FORM ACTION=SUBMIT NAME="comForm">
<TABLE>
<TR><TD WIDTH=29>&nbsp;</TD><TD WIDTH=122><label for="cn">Common name:</label></TD><TD>
<INPUT TYPE=TEXT NAME="commname" MAXLENGTH=32 SIZE=20 id="cn"></TD></TR>
<TR><TD WIDTH=29>&nbsp;</TD><TD WIDTH=122><label for="ou">
Organizational units:</label></TD><TD><INPUT TYPE=TEXT NAME="orgunits" MAXLENGTH=32 SIZE=20 id="ou"></TD></TR>
<TR><TD WIDTH=29>&nbsp;</TD><TD WIDTH=122><label for="org">Organization:</label></TD><TD>
<INPUT TYPE=TEXT NAME="organ" MAXLENGTH=32 SIZE=20 id="org"></TD></TR>
<TR><TD WIDTH=29>&nbsp;</TD><TD WIDTH=122><label for="locality">Locality:</label></TD><TD>
<INPUT TYPE=TEXT NAME="local" MAXLENGTH=32 SIZE=20 id="locality"></TD></TR>
<TR><TD WIDTH=29>&nbsp;</TD><TD WIDTH=122><label for="state1">State:</label></TD><TD>
<INPUT TYPE=TEXT NAME="state" MAXLENGTH=32 SIZE=20 id="state1"></TD></TR>
<TR><TD WIDTH=29>&nbsp;</TD><TD WIDTH=122><label for="corr">Country or region:</label></TD><TD>
<INPUT TYPE=TEXT NAME="count" MAXLENGTH=32 SIZE=20 id="corr"></TD></TR>
</TABLE>
</FORM>
</DIV>
<DIV ID="useip" STYLE="position: relative;">
<FORM ACTION=SUBMIT NAME="form10">
<P>What is the IP address of the remote key server to identify the remote data endpoint?</P>
<TABLE>
<TR>
<TD WIDTH=29 ALIGN=RIGHT>&nbsp;</TD>
<TD><LABEL FOR="ip">IP address:</label>
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip13" id="ip"><STRONG> . </STRONG>
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip14" id="ip"><STRONG> . </STRONG>
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip15" id="ip"><STRONG> . </STRONG>
<INPUT TYPE="text" SIZE=3 MAXLENGTH=3 NAME="ip16" id="ip">
</TD>
</TR>
</TABLE>
</FORM>
</DIV>
<FORM ACTION=SUBMIT NAME="form7">
<CENTER>
<INPUT NAME=SUBMIT TYPE="button" VALUE="&nbsp;&lt&lt Back&nbsp" onClick="onBack()">
<INPUT NAME=SUBMIT TYPE="button" VALUE="&nbsp;Next &gt;&gt;&nbsp" onClick="onNext()">
</CENTER>
</FORM>
</BODY>
</HTML>