// ----------------------------------------------------------------------------------------------------------- // Returns pressed key from event function TGGetKey(event){ return event.keyCode ? event.keyCode : event.charCode; } if(window["GetKey"]==null) window["GetKey"] = TGGetKey; // ----------------------------------------------------------------------------------------------------------- // Copies given object - deep copy // ----------------------------------------------------------------------------------------------------------- // Compares strings according to type, returns -1 for s1s2 // type &2 = compares according to localization, type&4 = case insensitive, type&8 = ignores white spaces // ----------------------------------------------------------------------------------------------------------- // Compares strings and returns position of character where the strings differ // ----------------------------------------------------------------------------------------------------------- // Looks for string s2 in string s1, return position of the first occurence or -1 // type &2 = compares according to localization, type&4 = case sensitive, type&8 = ignores white spaces // ----------------------------------------------------------------------------------------------------------- function NoModule(mod,comp){ if(Grids["NoModule"+mod]) return; Grids["NoModule"+mod] = 1; alert("TreeGrid module \""+mod+"\" is not available !"+(comp?"\nIt is included only in "+comp+" component":"")); } // ----------------------------------------------------------------------------------------------------------- if(!Array.prototype.shift){ Array.prototype.shift = function(){ var A = this[0]; for(var i=0;i=0;i--) this[i+len] = this[i]; for(var i=0;i