window.onload = function()
{
//	add focus field here
	if (document.form1)
		{
		if (document.form1.txtClubName)
			{
			document.form1.txtClubName.focus();
			}
		}
//	and any other onload stuff
}

function Validate()
{
//alert("Validate start");
var strErrors="";
// trim all fields, redisplay, and validate
var strClubName=trim(document.form1.txtClubName.value);
document.form1.txtClubName.value=strClubName;
var strDetails=trim(document.form1.txtDetails.value);
document.form1.txtDetails.value=strDetails;

if	(strClubName.length<3)
	{
		if (strErrors=="") { document.form1.txtClubName.focus(); }
		strErrors = strErrors + "* Please enter a club name, or general subject\n";
	}

if	(strDetails.length<3)
	{
		if (strErrors=="") { document.form1.txtDetails.focus(); }
		strErrors = strErrors + "* Please enter details of your feedback\n";
	}

if (strErrors!="")
{
	alert ("Please correct the following errors:\n" + strErrors);
	return false;
}
//alert("Validate end");

return true;
}

