

function getRandomNum() {
var leadingZero = new
Array("00","01","02","03","04","05","06","07","08","09");
today = new Date();
var adjYear = today.getYear();
if (adjYear < 100) { adjYear = adjYear+2000 };
if (adjYear < 1090) { adjYear = adjYear+1900 };
var adjMonth = today.getMonth();
adjMonth = adjMonth+1;
if (adjMonth < 10) { adjMonth = leadingZero[adjMonth] };
var adjDate = today.getDate();
if (adjDate < 10) { adjDate = leadingZero[adjDate] };
var adjHours = today.getHours();
if (adjHours < 10) { adjHours = leadingZero[adjHours] };
var adjMinutes = today.getMinutes();
if (adjMinutes < 10) { adjMinutes = leadingZero[adjMinutes] };
var adjSeconds = today.getSeconds();
if (adjSeconds < 10) { adjSeconds = leadingZero[adjSeconds] };
lbound = 17760704000000;
ubound = (adjYear*10000000000)+(adjMonth*100000000)+(adjDate*1000000)+(adjHours*10000)+(adjMinutes*100)+adjSeconds;
seed =  (Math.floor(Math.random() * (ubound - lbound)) + lbound);
xseed = seed.toString();
yseed = xseed.substring(xseed.length-8,xseed.length);
return (yseed);
}

function getRandomAlpha() {
var randomAlpha = new
Array("0","1","2","3","4","5","6","7","8","9",
"A","B","C","D","E","F","G","H","X","J","K","L","M",
"N","O","P","Q","R","S","T","U","V","W","X","Y","Z",
"a","b","c","d","e","f","g","h","x","j","k","a","m",
"n","o","p","q","r","s","t","u","v","w","x","y","z");
x1 =  (Math.floor(Math.random() * 62));
pos1 = randomAlpha[x1];
x1 =  (Math.floor(Math.random() * 62));
pos2 = randomAlpha[x1];
x1 =  (Math.floor(Math.random() * 62));
pos3 = randomAlpha[x1];
x1 =  (Math.floor(Math.random() * 62));
pos4 = randomAlpha[x1];
x1 =  (Math.floor(Math.random() * 62));
pos5 = randomAlpha[x1];
x1 =  (Math.floor(Math.random() * 62));
pos6 = randomAlpha[x1];
x1 =  (Math.floor(Math.random() * 62));
pos7 = randomAlpha[x1];
x1 =  (Math.floor(Math.random() * 62));
pos8 = randomAlpha[x1];
seed = pos1 + pos2 + pos3 + pos4 + pos5 + pos6;
document.postForm.seedValue.value = seed;
rpos1 = seed.substring(0,1);
rpos2 = seed.substring(1,2);
rpos3 = seed.substring(2,3);
rpos4 = seed.substring(3,4);
rpos5 = seed.substring(4,5);
rpos6 = seed.substring(5,6);
rpos7 = seed.substring(6,7);
rpos8 = seed.substring(7,8);
pseed = rpos1 + " " + rpos2 + " " + rpos3 + " " + rpos4 + " " + rpos5 + " " + rpos6;
document.postForm.printValue.value = pseed;
}

