function IsVoid(value)
{
	for (i=0; i < value.length; i++)
	{
		if (value.charAt(i) != " ")
			return true
	}
	return false
}

function valid(form)
{
	var value= "";
	
	if (IsVoid(form.txtEmail.value) == false) 
	{
		form.txtEmail.className = 'barritas-alert'; 
		value += "- The E-mail field is NOT optional\n";
	}
	else form.txtEmail.className = 'barritas';
	
	if (IsVoid(form.txtName.value) == false) 
	{
		form.txtName.className = 'barritas-alert'; 
		value += "- The Name field is NOT optional\n";
	}
	else form.txtName.className = 'barritas';
	
	if (IsVoid(form.txtCountry.value) == false) 
	{
		form.txtCountry.className = 'barritas-alert'; 
		value += "- The Country field is NOT optional\n";
	}
	else form.txtCountry.className = 'barritas';
	
	if (IsVoid(form.txtState.value) == false) 
	{
		form.txtState.className = 'barritas-alert'; 
		value += "- The State field is NOT optional\n";
	}
	else form.txtState.className = 'barritas';
	
	if (IsVoid(form.txtPhone.value) == false) 
	{
		form.txtPhone.className = 'barritas-alert'; 
		value += "- The Phone field is NOT optional\n";
	}
	else form.txtPhone.className = 'barritas';
	
	if (IsVoid(form.txtComments.value) == false) 
	{
		form.txtComments.className = 'barritas-alert'; 
		value += "- The Comments field is NOT optional\n";
	}
	else form.txtComments.className = 'barritas';
	
	if (value != "")
	{
		value = "The following errors have occurred:\n\n" + value + '\n\n';
		alert(value);
		return false;
	}
}//valida