Map = function(){ this.map = new Object(); }; Map.prototype = { put : function(key, value){ this.map[key] = value; }, get : function(key){ return this.map[key]; }, containsKey : function(key){ return key in this.map; }, containsValue : function(value){ for(var prop in this.map){ if(this.map[prop] == value) return true; } return false; }, isEmpty : function(key){ return (this.size() == 0); }, clear : function(){ for(var prop in this.map){ delete this.map[prop]; } }, remove : function(key){ delete this.map[key]; }, keys : function(){ var keys = new Array(); for(var prop in this.map){ keys.push(prop); } return keys; }, values : function(){ var values = new Array(); for(var prop in this.map){ values.push(this.map[prop]); } return values; }, size : function(){ var count = 0; for (var prop in this.map) { count++; } return count; } }; var gCodeMap = new Map(); function fInit(){ if(isPopup()){ submit("TRMMR09100"); } } function fInputCharacter(){ var row = grd_codelist.row; var col = grd_codelist.col; var sCode; var sInputStr = model.getValue("/root/main/str"); if(isDataCell()){ sCode = grd_codelist.valuematrix(row, col); model.setValue("/root/main/str", sInputStr + sCode + ' '); ipt_str.refresh(); } } function fInputZoomInCharacter(){ var sCode = model.getValue("/root/main/char"); var sInputStr = model.getValue("/root/main/str"); model.setValue("/root/main/str", sInputStr + sCode + ' '); ipt_str.refresh(); } function fZoomInCharacter(){ var row = grd_codelist.row; var col = grd_codelist.col; var sCode; if(isDataCell()){ sCode = grd_codelist.valuematrix(row, col); model.setValue("/root/main/char", sCode); ipt_str.refresh(); } cap_zoom.refresh(); }