function getStringLength(str){ var slength=0; for(i=0;i<str.length;i++){ if ((str.charCodeAt(i)>=0) && (str.charCodeAt(i)<=255)) slength=slength+1; else slength=slength+2; } return slength; };
function getStringLength(str){ var slength=0; for(i=0;i<str.length;i++){ if ((str.charCodeAt(i)>=0) && (str.charCodeAt(i)<=255)) slength=slength+1; else slength=slength+2; } return slength; };