Index: modules/img_assist/properties.js
===================================================================
RCS file: /cvs/drupal/contributions/modules/img_assist/properties.js,v
retrieving revision 1.13
diff -u -r1.13 properties.js
--- modules/img_assist/properties.js	12 Jul 2005 20:07:50 -0000	1.13
+++ modules/img_assist/properties.js	7 Dec 2005 16:55:09 -0000
@@ -29,14 +29,13 @@
  * Build the HTML image tag.
  */
 function generate_image_tag(form) {
-  for (i=0, n=form['formatType'].length; i<n; i++) {
-    if (form['formatType'][i].checked) {
+  for (i=0, n=form['edit[formatType]'].length; i<n; i++) {
+    if (form['edit[formatType]'][i].checked) {
       //type will be html or filter
-      var type = form['formatType'][i].value;
+      var type = form['edit[formatType]'][i].value;
       break;
     }
   }
-
   var hasInputFormat = parent.hasInputFormat;
   var attr = new Array();
   if (form['edit[filepath]'].value != '') {
