/* Functions that swap images. */ function swap(image_num,roll_num){ for (j = 1; j < document.images.length + 1; j++) { var image_pass='l_menu' + j; if (image_num !== j) { di21(image_pass,'images/'+ image_pass + '.gif'); } else if (image_num == j) { di21(image_pass,'images/'+ image_pass +'_f'+ roll_num +'.gif'); } } } var theWord = "private"; function di20(id, newSrc) { var theImage = FWFindImage(document, id, 0); if (theImage) { theImage.src = newSrc; } } function di21(id, newSrc) { var theImage = FWFindImage(document, id, 0); if (theImage) { theImage.src = newSrc; } } /* Functions that track and set toggle group button states. */ function FWFindImage(doc, name, j) { var theImage = false; if (doc.images) { theImage = doc.images[name]; } if (theImage) { return theImage; } if (doc.layers) { for (j = 0; j < doc.layers.length; j++) { theImage = FWFindImage(doc.layers[j].document, name, 0); if (theImage) { return (theImage); } } } return (false); } function passwd(link){ if (passwd_count == 3){ alert("Sorry, no more tries"); return; } pswd = prompt("Please Enter Password", ""); if (pswd == theWord) top.location=link; else alert("Sorry, that is incorrect"); passwd_count=passwd_count + 1; return; }