129 lines
3.8 KiB
HTML
129 lines
3.8 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta http-equiv="content-type" content="text/html;charset=utf-8">
|
||
|
<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. -->
|
||
|
<title>Customized backup checklist: server name</title>
|
||
|
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
||
|
<script type="text/javascript" language="Javascript">
|
||
|
<!-- //////////
|
||
|
|
||
|
indexOfServerName=53;
|
||
|
|
||
|
var cookieMess = "This interview uses a cookie to function. Ensure you are using a browser that supports cookies and that cookies are enabled.";
|
||
|
var noSelect = "Enter a server name and click Next.";
|
||
|
|
||
|
//START NON-TRANSLATABLE
|
||
|
var noVal = "zzzz";
|
||
|
|
||
|
function getCookieData(label) {
|
||
|
var labelLen = label.length;
|
||
|
var cLen = document.cookie.length;
|
||
|
var i=0;
|
||
|
var cEnd;
|
||
|
while (i < cLen) {
|
||
|
var j = i + labelLen;
|
||
|
if (document.cookie.substring(i,j) == label) {
|
||
|
cEnd = document.cookie.indexOf(";",j);
|
||
|
if (cEnd == -1) {
|
||
|
cEnd = document.cookie.length;
|
||
|
}
|
||
|
return unescape(document.cookie.substring(j+1,cEnd));
|
||
|
}
|
||
|
i++
|
||
|
}
|
||
|
//if they reach this point, no cookie data was found
|
||
|
return(noVal);
|
||
|
}
|
||
|
|
||
|
function storeCookieData(storeValue) {
|
||
|
re = /\s*/;
|
||
|
var newStoreValue = "";
|
||
|
a = getCookieData("gosaveint");
|
||
|
if (a != storeValue) {
|
||
|
s2 = storeValue.split(re);
|
||
|
s2[52] = "x";
|
||
|
for (var i=0; i < s2.length; i++) {
|
||
|
newStoreValue = newStoreValue + s2[i];
|
||
|
}
|
||
|
storeValue = newStoreValue;
|
||
|
}
|
||
|
var exp = new Date();
|
||
|
var oneYearFromNow = exp.getTime() + (365 * 24 * 60 * 60 * 1000);
|
||
|
exp.setTime(oneYearFromNow);
|
||
|
document.cookie = "gosaveint=" + storeValue + ";expires=" + exp.toGMTString();
|
||
|
}
|
||
|
|
||
|
function loadValue() {
|
||
|
re = /\s*/;
|
||
|
a = getCookieData("gosaveint");
|
||
|
if (a == noVal) { //no data in cookie or cookie DNE
|
||
|
window.location = "rzaiubackup_welcome.htm";
|
||
|
} else {
|
||
|
namelength = a.substr(indexOfServerName,2);
|
||
|
if (namelength != "xx") {
|
||
|
namelength=parseInt(namelength,10);
|
||
|
document.forma.server_name.value = a.substr(indexOfServerName+2,namelength);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function onBack() {
|
||
|
window.location="rzaiubackup_welcome.htm";
|
||
|
}
|
||
|
|
||
|
function onNext() {
|
||
|
var nextPage = "rzaiuattended.htm";
|
||
|
re = /\s*/;
|
||
|
a = getCookieData("gosaveint");
|
||
|
if (a == noVal) {
|
||
|
alert(cookieMess);
|
||
|
return;
|
||
|
}
|
||
|
if (document.forma.server_name.value != "") {
|
||
|
var tempA = "";
|
||
|
tempA = tempA.concat(document.forma.server_name.value);
|
||
|
b = tempA.length;
|
||
|
if (b <=indexOfServerName) {
|
||
|
b = "0" + b;
|
||
|
}
|
||
|
a = a.substr(0,indexOfServerName);
|
||
|
a = a + b + document.forma.server_name.value;
|
||
|
} else {
|
||
|
alert(noSelect);
|
||
|
return;
|
||
|
}
|
||
|
storeCookieData(a);
|
||
|
window.location = nextPage;
|
||
|
|
||
|
}
|
||
|
|
||
|
//END NON-TRANSLATABLE
|
||
|
//////////-->
|
||
|
</script>
|
||
|
|
||
|
</head>
|
||
|
|
||
|
<BODY onload="loadValue()">
|
||
|
|
||
|
<H2>Customize your GO SAVE backup instructions</H2>
|
||
|
<noscript><p>This online interview uses JavaScript<SUP>(TM)</SUP> to function. Ensure you are using a browser that supports
|
||
|
JavaScript and that JavaScript is enabled.</p></noscript>
|
||
|
|
||
|
<form name="forma">
|
||
|
<p>What is the name of the iSeries server you want to back up?</p>
|
||
|
<p>This name will be listed in the title of your checklist.</p>
|
||
|
<p><label for="sname">Server name:</label> <INPUT TYPE="text" NAME="server_name" SIZE="30" maxlength="8" id="sname"><br></p>
|
||
|
<p> </p>
|
||
|
<CENTER>
|
||
|
<input name="Back" type="button" value=" << Back " onClick="onBack()">
|
||
|
<input name="Next" type="button" value=" Next >> " onClick="onNext()">
|
||
|
</CENTER>
|
||
|
</form>
|
||
|
</BODY>
|
||
|
</html>
|