for (var i=0; i<crmForm.all.length; i++) if (!IsNull(crmForm.all[i]) && crmForm.all[i].Disabled == false) crmForm.all[i].Disabled = true;