function checkform()
{
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
	var result=true;
	
	if(document.getElementById("contact").name.value=="")
	{	
		result=false;
		document.getElementById("contact").name.style.backgroundColor='#FFDDDD';
	}
	else
	{
		document.getElementById("contact").name.style.backgroundColor='#FFFFFF';
	}
	
	if(document.getElementById("contact").address.value=="")
	{	
		result=false;
		document.getElementById("contact").address.style.backgroundColor='#FFDDDD';
	}
	else
	{
		document.getElementById("contact").address.style.backgroundColor='#FFFFFF';
	}
	
	if(document.getElementById("contact").phone.value=="")
	{
		document.getElementById("contact").phone.style.backgroundColor='#FFDDDD';
		result= false;
	}
	else
	{
		document.getElementById("contact").phone.style.backgroundColor='#FFFFFF';
	}

	if(!filter.test(document.getElementById("contact").email.value))
	{
		document.getElementById("contact").email.style.backgroundColor='#FFDDDD';
		result= false;
	}
	else
	{
		document.getElementById("contact").email.style.backgroundColor='#FFFFFF';
	}
	
	if(result==false)
	{
		alert("The highlighted fields are mandatory and have not been completed correctly.  Please check and try again.");
	}
	
	return result;
}

function checkpass()
{
	alert("The username and password you have entered are incorrect.  Please check and try again.");
	return false;
}