--- imagefield.js	2008-12-31 10:29:52.000000000 -0500
+++ imagefieldNew.js	2008-12-31 10:24:25.000000000 -0500
@@ -11,7 +11,7 @@ Drupal.imagefieldValidateAutoAttach = fu
      */
  
     if(this.accept.length>1){
-      accept = this.accept.replace(',','|');
+      accept = this.accept.replace(/\,/g,'|');
       v = new RegExp('\\.('+(accept?accept:'')+')$','gi');
       if (!v.test(this.value)) {
         var error = 'The file ' + this.value + " is not supported.\n";
