rem: for (var i=0; i < 4; i++) { 
add: var i; for (i=0; i < 4; i++) { 
context: BitMap.Edit.prototype.editMap = function(){	  var form = $('edit-map-form');	form.reset();	BitMap.show('edit-map-table');  form.gmap_id.value = this.Map.id? this.Map.id:"";  form.title.value = this.Map.title?this.Map.title:"";  form.map_desc.value = this.Map.description?this.Map.description:"";  form.map_w.value = this.Map.width;  form.map_h.value = this.Map.height;  form['geo[lat]'].value = this.Map.center.lat;  form['geo[lng]'].value = this.Map.center.lng;  form.map_z.value = this.Map.zoom;	form.edit.value = this.Map.data?this.Map.data:"";  for (var i=0; i < 4; i++) {    if (form.map_showcont.options[i].value == this.Map.controls.zoom_control){      form.map_showcont.options[i].selected=true;    }  }  for (var i=0; i < 2; i++) {    if (form.map_showscale.options[i].value == this.Map.controls.scale){      form.map_showscale.options[i].selected=true;    }  }					  for (var i=0; i < 2; i++) {    if (form.map_showtypecont.options[i].value == this.Map.controls.type_control){       form.map_showtypecont.options[i].selected=true;    }  }					  var mapTypeRoot = form.maptype;	var mapTypeCount = 3;	if (this.Map.maptypes > 0){		mapTypeCount += this.Map.maptypes.length;		var newMaptype = mapTypeRoot.options[0].cloneNode(false);		for (i=0; i<this.Map.maptypes.length; i++){      mapTypeRoot.appendChild(newMaptype);      mapTypeRoot.options[i+3].value = this.Map.maptypes[i].maptype_id;      mapTypeRoot.options[i+3].text = this.Map.maptypes[i].name;		}	}						  for (var i=0; i<mapTypeCount; i++) {    if (form.maptype.options[i].value == this.Map.maptype){      form.maptype.options[i].selected=true;    }  }									  /*@todo create value for comments	  form.map_comm.value = ?; for type="checkbox	*/};
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/020814dce5117fa066a1526846970bb3d7c0f335/Edit.js/buggy/templates/Edit.js