//created by Richard Wise 4/06/04


var accesscode = new Array();
// update accesscode with new variables for the retirement launch pages.  each element of the array has a 3 element array.  the first item is the accesscode, and the second 2 are the associated pages.  At time of creation, we dont' have any ida pages, so we will only be using elements 0 and 1 of each array.
accesscode[0] = new Array("0801", "/home/trustinvest/retirelogin/hutchinson", "");
accesscode[1] = new Array("0701", "/home/trustinvest/retirelogin/gilliland", "");
accesscode[2] = new Array("2302", "/home/trustinvest/retirelogin/wesley", "");
//accesscode[2] = new Array("1601", "/home/trustinvest/retirelogin/pinnacle", "");
//accesscode[3] = new Array("0201", "/home/trustinvest/retirelogin/bremyer", "");
accesscode[3] = new Array("0301", "/home/trustinvest/retirelogin/centralbnt", "");
accesscode[4] = new Array("1301", "/home/trustinvest/retirelogin/mennonite", "");
accesscode[5] = new Array("2301", "/home/trustinvest/retirelogin/woodwork", "");
accesscode[6] = new Array("0101", "/home/trustinvest/retirelogin/anesthesia", "");
accesscode[7] = new Array("0702", "/home/trustinvest/retirelogin/garber", "");
accesscode[8] = new Array("1901", "/home/trustinvest/retirelogin/shield", "");
accesscode[9] = new Array("0703", "/home/trustinvest/retirelogin/gregory", "");
// assign to num the length of the array
var num = accesscode.length;


// this takes a form field as a paramenter.  namely document.planchoose.retireID with no value
function loadretireTest (retireID) {
	for (i=0; i<num; i++) {
		if (retireID.value == accesscode[i][0]) {
			var location = accesscode[i][1];
            var check = "yes";
			}
		}	
     if (check) {
        document.location.href = location;
        }
     else {
            alert ("That is an invalid ID number");
			document.getElementById("retireID").retireID.value = "";
            }
          

	}

/*function loadretire (retireID) {
	if (retireID == 0801)
		document.location.href = "hutchinson.asp";
	else
		alert ("That is an invalid ID number");
	}*/
	
	
//currently there are no IRA products to be used with this product.  when the fi decides to add IRA pages, we'll need to create a second array just for the IRA's.
function loadIRA (IRAID) {
	alert ("That is an invalid IRA ID number");
	}
	

