function DoFooter(theArea)
{
	document.write('<div align="center" class="myLinks">');
	if (theArea != 'index') {document.write('<a href="index.html" class="links">&#149; HOME &#149;</a>  ');}
	if (theArea != 'toys') {document.write('<a href="toys.html" class="links">BIG TOYS &#149;</a>  ');}
	if (theArea != 'offer') {document.write('<a href="offers.html" class="links">SPECIAL OFFERS &#149;</a>  ');}
	if (theArea != 'contact') {document.write(' <a href="contact.html" class="links">CONTACT US &#149;</a>');}
	if (theArea != 'links') {document.write(' <a href="links.html" class="links">OUR FRIEND\'S LINKS &#149;</a>');}
	document.write('</div>');
}

function check(form) 
		{
			var params=new Array(4);
			var alpha="ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHI";
			
			which=form.memlist.selectedIndex;
			choice = form.memlist.options[which].value+"|";
			if (choice=="x|") 
			{
			alert("Please Select Your Name From The List");
			return;
			}
			
			p=0;
			for (i=0;i<3;i++) 
			{
				a=choice.indexOf("|",p);
				params[i]=choice.substring(a,p);
				p=a+1;
			}
			
			h1=makehash(alpha, form.pass.value, 3);
			h2=makehash(alpha, form.pass.value, 10)+" ";

			if (h1!=params[1]) 
			{
				alert("Incorrect Password!"); return; };
				var page="";
				
				for (var i=0;i<8;i++) 
				{
					letter=params[2].substring(i,i+1)
					ul=letter.toUpperCase();
					a=alpha.indexOf(ul,0);
					a-=(h2.substring(i,i+1)*1);
					
					if (a<0) a+=26; page+=alpha.substring(a,a+1); 
				};
				top.location=page.toLowerCase()+".html";
	}
	
function makehash(alpha, pw, mult) 
{
	pass=pw.toUpperCase();
	hash=0;
	
	for (i=0;i<8;i++) 
	{
		letter=pass.substring(i,i+1);
		c=alpha.indexOf(letter,0)+1;
		hash=hash*mult+c;
	}
	return(hash);
}