function validateForm(form)
{
	var errors = 0;
	var ignoreValidation = -1;
	if(arguments[1]!=null)
		ignoreValidation = arguments[1];
	
	for(var i = 0; i < form.elements.length; i++)
	{
		if(i != ignoreValidation)
		{
			var elem = document.getElementById('FieldData'+i);
			if(elem != null)
				if(elem.value == '')
					errors++;
		}
	}
	
	if(errors > 0)
		alert('Please complete all required fields');
	
	return (errors == 0);
}