IsIE = (document.all) ? 1: 0;function $wb(name){return document.getElementById(name);}function $wbs(name){return document.getElementsByName(name);}document.getElementsByType = function(sTypeValue){this.d=document;var children = this.d.getElementsByTagName('*') || document.all;var elements = new Array();for (var i = 0; i < children.length; i++){if (children[i].type == sTypeValue) {elements.push(children[i]);}}return elements;}
String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g, "");}
String.prototype.trimAll=function(){return this.split(' ').join('');}
String.prototype.getLength=function(){return this.replace(/[^\x00-\xff]/g,"**").length;}
String.prototype.htmlToAsc=function(){str = this.split("&nbsp;").join(" ");str = str.replace(/<br\s*\/?>/g, "\n");str = str.split("&lt;").join("<");str = str.split("&gt;").join(">");str=str.split("<br/>").join("\t");return str;}