Ext.tsinnet={};
Ext.tsinnet.clientHeight=function(){
  return (document.documentElement.clientHeight==0)?document.body.clientHeight:document.documentElement.clientHeight;
};
Ext.getInputFileName = function getPath(obj) {
  if(obj) {
    if (Ext.isIE) {
      obj.select();
      return document.selection.createRange().text;  
    }
    else if(Ext.isSafari) {//window.navigator.userAgent.indexOf("Firefox")>=1) {
      if(obj.files) {
        return obj.files.item(0).getAsDataURL();  
      }
      return obj.value;  
    }  
    return obj.value;  
  }  
};
String.prototype.lengthB = function() {
  return this?this.replace(/[^\x00-\xff]/g, "^^").length:0;
};
