var usr;
var pw;
var sv;

function getme()
{
usr = document.loginform.login;
pw = document.loginform.password;
sv = document.loginform.save;

	if (GetCookie('username') != null)
	{
		usr.value = GetCookie('username')
		pw.value = GetCookie('password')
		if (GetCookie('save') == 'true')
		{
			//sv[0].checked = true;
			sv.checked = true;
		}
	}
}

function saveme()
{
	if (usr.value.length != 0 && pw.value.length != 0)
	{
		//if (sv[0].checked)
		if (sv.checked)
		{
			expdate = new Date();
			expdate.setTime(expdate.getTime()+(365 * 24 * 60 * 60 * 1000));
			SetCookie('username', usr.value, expdate);
			SetCookie('password', pw.value, expdate);
			SetCookie('save', 'true', expdate);
		}
		//if (sv[1].checked)
		if (!sv.checked)
		{
			DeleteCookie('username');
			DeleteCookie('password');
			DeleteCookie('save');
		}
	}
		else
	{
		alert('You must enter a username/password.');
		return false;
	}
}