function showIndex()
	{
	indexCon = "<img src='buttons/links.gif' border=0><p><a href='mt.html'><img src='buttons/homegr.gif' border=0><\/a><p><img src='buttons/settingt.gif' border=0><br><a href='world.html'><img src='buttons/worldt.gif' border=0><\/a><br><a href='hist.html'><img src='buttons/historyt.gif' border=0><\/a><br><a href='map.html'><img src='buttons/mapst.gif' border=0><\/a><p><img src='buttons/characterst.gif' border=0><br><a href='charcreate.html'><img src='buttons/pcct.gif' border=0><\/a><br><a href='pc.html'><img src='buttons/pct.gif' border=0><\/a><br><a href='npc.html'><img src='buttons/npct.gif' border=0><\/a><br><a href='gl.html'><img src='buttons/glt.gif' border=0><\/a><p><center><a href='pconly.html'><img src='buttons/pco.gif' border=0><\/a><br><table background='images/wizard4.gif' border=0><tr><td height=150 width=125 align=center valign=middle><a href='contact.html'><img src='buttons/dm.gif' border=0><\/a><p><\/td><\/tr><\/table><\/center>"
	}

function newWindow(tosite)
	{
	outsideWin = window.open(tosite, "outside", "width=500,height=350,resizable=no,scrollbars=no");
	outsideWin.focus()
	}

function closeWindow()
	{
	this.close()
	}

expireDate = new Date
expireDate.setDate(expireDate.getDate()+1)
userName = ""
if (document.cookie.split("=")[2] != "")
	{
	playerName = document.cookie.split("=")[3]
	}

function setCookie()
	{
	playerName = loginBox.name.value
	document.cookie.split("=")[2] = "playerName="+playerName+";expires=" + expireDate.toGMTString()
	}

function verify(num1, num2)
	{
	if (num1 == "")
		{
		alert('Enter Username')
		}
	else
		{
		if (num2 == "")
			{
			alert ('Enter Password')
			}
		else
			{
			if (num1 != "Drew")
				{
				if (num1 != "V'tar")
					{
					if (num1 != "pc2")
						{
						if (num1 != "pc3")
							{
							alert ('Unknown User');
							alert ('Welcome! You have been given limited access as an unregistered user. Contact the DM to gain Player Access!');
							setCookie();
							closeWindow()
							}
						}
					}
				}
			if  (num1 == "Drew")
				{
				if (num2 == "the1ring")
					{
					alert('Welcome Drew, Access Granted Up to Highest Security Level')
					setCookie()
					closeWindow()
					}
				else
					{
					alert ('Incorrect Password')
					}
				}
			if (num1 == "V'tar")
				{
				if (num2 == "goblue")
					{
					alert('Access to Player Files Granted');
					setCookie()
					closeWindow()
					}
				else
					{
					alert ('Incorrect Password')
					}
				}
			if (num1 == "pc2")
				{
				if (num2 == "pc2")
					{
					alert('Access to Player Files Granted');
					setCookie()
					closeWindow()
					}
				else
					{
					alert ('Incorrect Password')
					}
				}
			if (num1 == "pc3")
				{
				if (num2 == "pc3")
					{
					alert('Access to Player Files Granted');
					setCookie()
					closeWindow()
					}
				else
					{
					alert ('Incorrect Password')
					}
				}
			}
		}
	}

