ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahq_5.4.0.1/rzahqadvisor27.htm

230 lines
9.8 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 4.0//EN">
<html>
<head>
<meta name="Copyright" content="Copyright (c) 2004 by IBM Corporation">
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<title>Windows Server installation advisor--TCP/IP name server system</title>
<script language="Javascript" type="text/javascript" src="rzahqadvcommon.js"></script>
<script type="text/javascript" language="Javascript">
<!-- // Hide script from older browsers
var errMess = "You entered an unallowed IP address. The segments of an IP address must be numbers from 0 to 255.";
var errMess1 = "Enter at least one name server IP address or select to use the name servers that are configured for OS/400.";
//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 checkFrame() {
//Is the hidden frame already loaded with the correct html?
if (parentUrl != "rzahqadvisor1.htm") {
window.location = "rzahqadvisor1.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 != "rzahqadvhidden.htm") {
//Correct HTML not loaded, load it
parent.hidden.window.location = "rzahqadvhidden.htm";
} else { //already loaded
getData();
}
}
}
function getData() {
if (!isEmpty(parent.hidden.v1[69])) {
if (parseInt(parent.hidden.v1[69]) == 2) {
document.form1.rad[1].checked = true;
if (!isEmpty(parent.hidden.v1[70])) {
var seg = parent.hidden.v1[70].split(".");
document.form1.a1.value = seg[0];
document.form1.a2.value = seg[1];
document.form1.a3.value = seg[2];
document.form1.a4.value = seg[3];
}
if (!isEmpty(parent.hidden.v1[71])) {
var seg = parent.hidden.v1[71].split(".");
document.form1.b1.value = seg[0];
document.form1.b2.value = seg[1];
document.form1.b3.value = seg[2];
document.form1.b4.value = seg[3];
}
if (!isEmpty(parent.hidden.v1[72])) {
var seg = parent.hidden.v1[72].split(".");
document.form1.c1.value = seg[0];
document.form1.c2.value = seg[1];
document.form1.c3.value = seg[2];
document.form1.c4.value = seg[3];
}
} else {
if (parseInt(parent.hidden.v1[69]) == 3) { document.form1.rad[2].checked = true; }
}
}
}
function onNext() {
parent.hidden.v1[70] = "";
parent.hidden.v1[71] = "";
parent.hidden.v1[72] = "";
p1 = ".";
ip1 = document.form1.a1.value + p1 + document.form1.a2.value + p1 + document.form1.a3.value + p1 + document.form1.a4.value;
ip2 = document.form1.b1.value + p1 + document.form1.b2.value + p1 + document.form1.b3.value + p1 + document.form1.b4.value;
ip3 = document.form1.c1.value + p1 + document.form1.c2.value + p1 + document.form1.c3.value + p1 + document.form1.c4.value;
//Save data
if (document.form1.rad[0].checked == true) {
parent.hidden.v1[69] = "1";
} else {
if (document.form1.rad[2].checked == true) {
parent.hidden.v1[69] = "3";
} else {
parent.hidden.v1[69] = "2";
//Check ip addresses
if (isEmpty(document.form1.a1.value) && isEmpty(document.form1.a2.value) && isEmpty(document.form1.a3.value) && isEmpty(document.form1.a4.value) &&
isEmpty(document.form1.b1.value) && isEmpty(document.form1.b2.value) && isEmpty(document.form1.b3.value) && isEmpty(document.form1.b4.value) &&
isEmpty(document.form1.c1.value) && isEmpty(document.form1.c2.value) && isEmpty(document.form1.c3.value) && isEmpty(document.form1.c4.value)) {
alert(errMess1);
return;
}
if (!isEmpty(document.form1.a1.value) || !isEmpty(document.form1.a2.value) || !isEmpty(document.form1.a3.value) || !isEmpty(document.form1.a4.value)) {
//Must have valid data in ip
if (isInteger(document.form1.a1.value) && isInteger(document.form1.a2.value) && isInteger(document.form1.a3.value) && isInteger(document.form1.a4.value)) {
if (!isValidIPAddress(ip1)) {
alert(errMess);
document.form1.a1.select();
document.form1.a1.focus();
return;
} else {
parent.hidden.v1[70] = ip1;
}
} else {
//One of the segments is not a number
alert(errMess);
document.form1.a1.select();
document.form1.a1.focus();
return;
}
}
if (!isEmpty(document.form1.b1.value) || !isEmpty(document.form1.b2.value) || !isEmpty(document.form1.b3.value) || !isEmpty(document.form1.b4.value)) {
//Must have valid data in ip
if (isInteger(document.form1.b1.value) && isInteger(document.form1.b2.value) && isInteger(document.form1.b3.value) && isInteger(document.form1.b4.value)) {
if (!isValidIPAddress(ip2)) {
alert(errMess);
document.form1.b1.select();
document.form1.b1.focus();
return;
} else {
parent.hidden.v1[71] = ip2;
}
} else {
//One of the segments is not a number
alert(errMess);
document.form1.b1.select();
document.form1.b1.focus();
return;
}
}
if (!isEmpty(document.form1.c1.value) || !isEmpty(document.form1.c2.value) || !isEmpty(document.form1.c3.value) || !isEmpty(document.form1.c4.value)) {
//Must have valid data in ip
if (isInteger(document.form1.c1.value) && isInteger(document.form1.c2.value) && isInteger(document.form1.c3.value) && isInteger(document.form1.c4.value)) {
if (!isValidIPAddress(ip3)) {
alert(errMess);
document.form1.c1.select();
document.form1.c1.focus();
return;
} else {
parent.hidden.v1[72] = ip3;
}
} else {
//One of the segments is not a number
alert(errMess);
document.form1.c1.select();
document.form1.c1.focus();
return;
}
}
}
}
//Next page
window.location = "rzahqadvisor25.htm";
}
function onBack() {
window.location = "rzahqadvisor24.htm";
}
//END NON-TRANSLATABLE
////////// -->
</script>
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body onLoad="checkFrame()">
<h2>Windows Server installation advisor</h2>
<strong>TCP/IP name server system</strong>
<p>Specify the Internet address of the name server used by the Windows server.</p>
<form name="form1">
<table>
<tr>
<td>&nbsp;&nbsp;&nbsp;</td>
<td><input type="radio" name="rad" value="usename" id="usename" checked></td>
<td><label for="usename">Use the name servers that are configured for i5/OS</label></td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;</td>
<td><input type="radio" name="rad" value="specify" id="specify"></td>
<td><label for="specify">Specify up to three name server IP addresses</label></td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;</td>
<td></td>
<td><label for="i1">IP address:</label> <input type="text" name="a1" size="3" maxlength="3" id="i1" onKeyPress="selectRadio(1)">
.&nbsp;<input type="text" size="3" maxlength="3" name="a2" id="i1" onKeyPress="selectRadio(1)">
.&nbsp;<input type="text" size="3" maxlength="3" name="a3" id="i1" onKeyPress="selectRadio(1)">
.&nbsp;<input type="text" size="3" maxlength="3" name="a4" id="i1" onKeyPress="selectRadio(1)">
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;</td>
<td></td>
<td><label for="i2">IP address:</label> <input type="text" name="b1" size="3" maxlength="3" id="i2" onKeyPress="selectRadio(1)">
.&nbsp;<input type="text" size="3" maxlength="3" name="b2" id="i2" onKeyPress="selectRadio(1)">
.&nbsp;<input type="text" size="3" maxlength="3" name="b3" id="i2" onKeyPress="selectRadio(1)">
.&nbsp;<input type="text" size="3" maxlength="3" name="b4" id="i2" onKeyPress="selectRadio(1)">
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;</td>
<td></td>
<td><label for="i3">IP address:</label> <input type="text" name="c1" size="3" maxlength="3" id="i3" onKeyPress="selectRadio(1)">
.&nbsp;<input type="text" size="3" maxlength="3" name="c2" id="i3" onKeyPress="selectRadio(1)">
.&nbsp;<input type="text" size="3" maxlength="3" name="c3" id="i3" onKeyPress="selectRadio(1)">
.&nbsp;<input type="text" size="3" maxlength="3" name="c4" id="i3" onKeyPress="selectRadio(1)">
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;</td>
<td><input type="radio" name="rad" value="nouse" id="nope"></td>
<td><label for="nope">Do not use a name server</label></td>
</tr>
</table>
<br>
<br>
<center>
<input type="button" value="&lt;&lt; Back" onClick="onBack()">
<input type="button" value="Next &gt;&gt;" onClick="onNext()">
</center>
</form>
</body>
</html>