function disableTag(tag, disable) { if (tag.type) // Check to see if this is an input tag tag.disabled = disable; var i; for (i=0; i