Hi,

I have a form on a page with a javascript validation function that loops through each field to test for a value before allowing the form to be submitted:
http://www.anyware.co.nz/jobadmintest.php

It works fine in Firefox and Chrome, but in IE the form does not show. I think because there's a problem with the JS validation function "checkAll" just before the form on line 113:

function checkAll(formObj)
{
var obj = document.forms[formObj];
//alert(obj.name + " " + obj.length);
for (i=0; i<obj.length; i++)
{
if ((obj[i].value == "") & (obj[i].type != "hidden"))
{
obj[i].focus();
//alert("Name: " + obj[i].name + ", Type: " + obj[i].type);
alert("Please enter a value for all fields.");
return false;
}
}
document.forms[formObj].submit();
}

Can any one suggest why this does not work in IE?

(I'm using a loop because I have several forms with many fields and I want to test them all.)

Thanks,
Phil