OK, I am trying to check for blank fields in all of the input tags, also if the tag has the word 'other' in it, I am disregarding the check. THe issue is that it gets to 0 in the for loop and bombs. below:

Code:
var inputFields = document.all.tags("INPUT") //grabs all input tags
for(i=0; i < inputFields.length; i++)
{
	if (inputFields[i].value == '')
	{
		alert("Checking " + inputFields[i].name.substr(3,5));
		if(inputFields[i].name.substr(3, 5) != 'other')
		{
		alert('Please fill out '+ inputFields[i].name);
		inputFields[i].name.focus
		return false;
		break;
		}
	return true;
	}
return true;
}