function validate_form(thisform)
{
	var col1 = '#D0D0D0';		//error background color
	var col3 = '#989898';		//error border color
	var col2 = '#FFFFFF';		//normal background color
	var col4 = '#D0D0D0';		//normal border color
	var result = true;
	
	with (thisform)
	{
		if (thisform.comment.value=="")
		{
			thisform.comment.focus();
			thisform.comment.style.backgroundColor=col1;
			thisform.comment.style.borderColor=col3;
			result = false;
		}
		else
		{
			thisform.comment.style.backgroundColor=col2;
			thisform.comment.style.borderColor=col1;
		}

		if (thisform.random.value=="")
		{
			thisform.random.focus();
			thisform.random.style.backgroundColor=col1;
			thisform.random.style.borderColor=col3;
			result = false;
		}
		else
		{
			thisform.random.style.backgroundColor=col2;
			thisform.random.style.borderColor=col1;
		}

		if (thisform.email.value=="")
		{
			thisform.email.focus();
			thisform.email.style.backgroundColor=col1;
			thisform.email.style.borderColor=col3;
			result = false;
		}
		else
		{
			thisform.email.style.backgroundColor=col2;
			thisform.email.style.borderColor=col1;
		}

		if (thisform.name.value=="")
		{
			thisform.name.focus();
			thisform.name.style.backgroundColor=col1;
			thisform.name.style.borderColor=col3;
			result = false;
		}
		else
		{
			thisform.name.style.backgroundColor=col2;
			thisform.name.style.borderColor=col1;
		}

	}
	return result;
}
