function checkValues()
	{
	var thisForm = document.forms[0];
	var bError = false;
	var x;

	for (x = 0;x < thisForm.length - 1;x++)
		{
		if (thisForm.elements[x].value == '')
			{
			bError = true;
			}
		}

	if (bError == true)
		{
		alert ('Please complete all fields');
		}
	else
		{
		thisForm.submit();
		}
	}