function showLoginError(msg)
{
	document.getElementById("loginMsg").innerHTML = msg;
	return false;
}

function checkLogin()
{
	if (document.loginfrm.userid.value == "" || document.loginfrm.userid.value == "User Name")
		return showLoginError("Please enter your user name");
	if (document.loginfrm.passwd.value == "" || document.loginfrm.passwd.value == "********")
		return showLoginError("Please enter your password");
	return true;
}

function checkLinkForm()
{
	msg = 
"Errors have occured during the process of your form.\r\n\
Please make the following corrections:\r\n\
\r\n\
* Link title must contain a minimum of 2 characters.\r\n\
* URL must contain a minimum of 10 characters.\r\n\
* Description must contain a minimum of 10 characters.\r\n\
* Your Full Name must contain a minimum of 2 characters.\r\n\
* Your E-Mail Address must contain a minimum of 6 characters.\r\n\
* Reciprocal page must contain a minimum of 10 characters.\r\n\
";
	l = document.linkfrm.link;
	t = document.linkfrm.title;
	d = document.linkfrm.description;
	f = document.linkfrm.fullname;
	e = document.linkfrm.email;
	r = document.linkfrm.reciproc;
	
	if (l.value == "" || l.value.length < 10 || t.value == "" || t.value.length < 2 || d.value == "" || d.value.length < 10 ||
		f.value == "" || f.value.length < 2 || e.value == "" || e.value.length < 6 || r.value == "" || r.length < 10)
	{
		alert(msg);
		return false;
	}
	return true;
}