/******************************
     * 取字符串长度
     ******************************/
   public int getStringLength(String s) {
        int p = 0;
        try {
          int iLength = 0;
          int irealLength = 0;
          int j = 0;
          p = s.getBytes("GBK").length;
        } catch(java.io.UnsupportedEncodingException e) {}
        return p;
    }