#include "y_JSExtensions.jsx"; /* if (Array.prototype.getOne==null) Array.prototype.getOne=function(item){ //Extends the Array class with the getOne functions wich var val = -1; for(i=0;i<=this.length;i++){ if(this[i]==item){ var val = i; } } return val; } */ function sortNumber(a,b) { return a - b; } function pad(n,i){ //pad n with ceroes up to i places. if (String(n).length>=i){ return String(n) }else{ dif = i- (String(n)).length; padding = ""; for (p=0;p1){ for(L=0;L<_lines.length;L++){ alert(_lines[L]); if(L==_lines.length-1||_lines[L]==''){ dash = ''; }else{ dash = '.'; } if(_lines[L]!=''){ newStr = newStr+_lines[L]+dash; }else{ newStr = newStr; } } }else{ newStr = _str; } return newStr; }