/* checks that all values in the Whoswho form are filled in */

function FormCheck()
{
if ((window.document.adduser[0].value == false)||(window.document.adduser[1].value == false)||(window.document.adduser[2].value == false)||(window.document.adduser[3].value == false)||(window.document.adduser[4].value == false)||(window.document.adduser[5].value == false)||(window.document.adduser[6].value == false))
	{
	alert("You need to fill in all fields in the form.");
	}
else if ((window.document.adduser[3].value.indexOf("@")) == -1)
		{
		alert("Your e-mail address should look like this: name@address.");
		}
	else
		{
		adduser.submit();
		}
}

/* mouseout setup
entry is the index element id */

function ColourOut(entry)
{
/* this if handles the index entry (which stays highlighted) for the current page */
if (entry != ligl)
	{
	if (document.getElementById)
		{
		var presed = document.getElementById(entry);
		presed.style.color = "#0033AA";
		}
	else
		{
		document.entry.style.color = "#0033AA";
		}
	}
}

/* mouseover setup*/
function ColourOver(entry)
{

if (document.getElementById)
		{
		var presed = document.getElementById(entry);
		presed.style.color = "#0055ff";
		}
else
		{
		document.entry.style.color = "#0055ff";
		}
}

/* this function highlights the index entry for the current page */
function Catchit(ligl)
{
//this if to avoid an error message
if (!ligl)
	{
	ligl = "home";
	}

if (document.getElementById)
	{
	var zap = document.getElementById(ligl);
	zap.style.color = "#0099AA";
	zap.style.fontSize = "12px";
	}
else
	{
	zap.style.color = "#0099AA";
	zap.style.fontSize = "12px";
	}
}

/* this one to hide e-mail addresses */
function NoYouDont(adresee, place, final) {
  document.write("<a href=" + "mail" + "to:" + adresee + "&#64;" + place + "." + final + ">" + adresee + "&#64;" + place + "." + final + "</a>");
}