function gocheckform()
{
var problemstring = "";

	if(document.getElementById("typeofservice").value == "")
	{
	problemstring += "Type of service\r\n";
	}

	var email = document.getElementById("email").value;

	if(email.indexOf("@") == -1 || email.indexOf(".") == -1)
	{
	problemstring += "Email address\r\n";
	}

	if(document.getElementById("onehundredwords").value == "")
	{
	problemstring += "100-word description\r\n";
	}

	if(document.getElementById("maincountyserved").value == "")
	{
	problemstring += "Main county served\r\n";
	}

	if(problemstring == "")
	{
	return true;
	}
	else
	{
	alert("Please check the following fields:\r\n\r\n" + problemstring);
	return false;
	}
}


function gocheckwesearchform()
{
var problemstring = "";

	var email = document.getElementById("email").value;

	if(email.indexOf("@") == -1 || email.indexOf(".") == -1)
	{
	problemstring += "Email address\r\n";
	}

	if(document.getElementById("agreetosendcontactdetails").checked != true)
	{
	problemstring += "You must agree to us sending your contact details and request to relevant venues and suppliers.\r\n";
	}

	if(problemstring == "")
	{
	return true;
	}
	else
	{
	alert("Please check the following fields:\r\n\r\n" + problemstring);
	return false;
	}
}


