// Rediware Software 2002
var ArIndex = 10;  // change this number when changing the number of available items!
// declare textboxes on form for Netscape - doesn't work without it!
BoxPassword=document.frmMain.txtPassword;
BoxSoftware=document.frmMain.txtSoftware;
 
ArSoft = new Array(ArIndex); 
ArSoft[0] = "malwarebytes.exr";
ArSoft[1] = "KillingLincoln.rar";
ArSoft[2] = "";
ArSoft[3] = "";
ArSoft[4] = "";
ArSoft[5] = "";
ArSoft[6] = "";
ArSoft[7] = "";
ArSoft[8] = "";
ArSoft[9] = "";

ArPass = new Array(ArIndex);
ArPass[0] = "malwarebytes";
ArPass[1] = "kl";
ArPass[2] = "";
ArPass[3] = "";
ArPass[4] = "";
ArPass[5] = "";
ArPass[6] = "";
ArPass[7] = "";
ArPass[8] = "";
ArPass[9] = "";

function GetSoftware() {


var dlfoundflag=0;
 for (var x=0; x<ArIndex + 1; x++) {
//   alert(BoxSoftware.value == ArSoft[x]); 
// alert(BoxSoftware.value + " " + ArSoft[x]);
   
	if ((BoxSoftware.value != "" ) && (BoxPassword.value !="")) { 
	  if ((BoxSoftware.value == ArSoft[x]) && (BoxPassword.value == ArPass[x])) {
  	    dlfoundflag=1;
		document.write('<body bgcolor="#CCFFFF"><p align="center"><font color="#408080"size="+4"><b><font size="5"><u>Rediware Special Software Pickup Station</u></font></b></font></p>click this disk to download -->  <a href=' + ArSoft[x] + '><img src="getsoft.gif" ></a> <br><br><br><center><input type="button" name="closebutton" value="close this window" onClick="window.close()"></center>');
       }
 	}  	

  }
	if (dlfoundflag==0) {
	alert("Either the software is not found \nor your password is incorrect");
		}
}

// *******************************************************************

// start the script

document.frmMain.txtSoftware.focus();




