/*@author:zhangbo @email:freeeob@gmail.com GPL2.1*/ArithmeticException.prototype=new Error();ArithmeticException.prototype.constructor=ArithmeticException;ArithmeticException.ERROR=0;function ArithmeticException(code,message){this.jsjava_class="jsjava.lang.ArithmeticException";this.code=code;this.message=message;this.name="jsjava.lang.ArithmeticException";}ArrayIndexOutOfBoundsException.prototype=new Error();ArrayIndexOutOfBoundsException.prototype.constructor=ArrayIndexOutOfBoundsException;ArrayIndexOutOfBoundsException.ERROR=0;function ArrayIndexOutOfBoundsException(code,message){this.jsjava_class="jsjava.lang.ArrayIndexOutOfBoundsException";this.code=code;this.message=message;this.name="jsjava.lang.ArrayIndexOutOfBoundsException";}function Byte(value){this.jsjava_class="jsjava.lang.Byte";this.value=value;}Byte.MIN=-Math.pow(2,7);Byte.MAX=Math.pow(2,7)-1;Byte.MIN_VALUE=-Math.pow(2,7);Byte.MAX_VALUE=Math.pow(2,7)-1;Byte.checkValid=function(b){if(isNaN(b)){return false;}if(typeof(b)=="number"){if(Math.floor(b)!=b){return false;}}else{if(b.indexOf(".")!=-1){return false;}}b=parseInt(b);if(b<=Byte.MAX&&b>=Byte.MIN){return true;}return false;};Byte.parseByte=function(str){if(isNaN(str)){throw new NumberFormatException(NumberFormatException.NOT_NUMBER,"Not a number Exception!");}var b=parseInt(str);if(!Byte.checkValid(b)){return;}return b;};Byte.prototype.compareTo=function(b){if(b==undefined){return -1;}if(this.value>b.value){return 1;}else if(this.value==b.value){return 0;}else{return -1;}};Byte.prototype.byteValue=function(){return this.value;};Byte.prototype.toString=function(){return this.value;};Byte.prototype.equals=function(o){if(o==undefined){return false;}if(o.jsjava_class&&o.jsjava_class=="jsjava.lang.Byte"){return this.value==o.value;}return false;};function Character(value){this.jsjava_class="jsjava.lang.Character";if(value==undefined||value.length>1){return;}else{this.value=value;}}Character.checkValid=function(c){var regx=/^[\u0000-\uffff]$/gi;return regx.test(c);};Character.prototype.charValue=function(){return this.value;};Character.prototype.compareTo=function(c){if(b==undefined){return -1;}if(this.value==b.value){return 1;}else{return -1;}};Character.prototype.toString=function(){return this.value;};Character.prototype.equals=function(o){if(o==undefined){return false;}if(o.jsjava_class&&o.jsjava_class=="jsjava.lang.Character"){return this.value==o.value;}return false;};Character.isDigit=function(c){return !isNaN(c);};Character.toLowerCase=function(c){if(Character.checkValid(c)){return c.toLowerCase();}};function Class(className){this.jsjava_class="jsjava.lang.Class";this.className=className;var flag=true;if(className==undefined){flag=false;}var c=null;try{c=eval("new "+className+"()");if(!c.jsjava_class){flag=false;}}catch(e){flag=false;}if(!flag){throw new ClassNotFoundException(ClassNotFoundException.ERROR,"Class "+className+" is not found!");}this.instance=c;}Class.forName=function(className){return new Class(className);};Class.prototype.getConstructor=function(parameterTypes){return new Constructor(this.className,parameterTypes);};Class.prototype.newInstance=function(){return this.instance;};Class.prototype.getName=function(){return this.className;};Class.prototype.toString=function(){return this.className;};ClassNotFoundException.prototype=new Error();ClassNotFoundException.prototype.constructor=ClassNotFoundException;ClassNotFoundException.ERROR=0;function ClassNotFoundException(code,message){this.jsjava_class="jsjava.lang.ClassNotFoundException";this.code=code;this.message=message;this.name="jsjava.lang.ClassNotFoundException";}CloneNotSupportedException.prototype=new Error();CloneNotSupportedException.prototype.constructor=CloneNotSupportedException;CloneNotSupportedException.ERROR=0;function CloneNotSupportedException(code,message){this.jsjava_class="jsjava.lang.CloneNotSupportedException";this.code=code;this.message=message;this.name="jsjava.lang.CloneNotSupportedException";}function Constructor(className,parameterTypes){this.jsjava_class="jsjava.lang.reflect.Constructor";this.className=className;this.parameterTypes=parameterTypes;if(parameterTypes==undefined||!(parameterTypes instanceof Array)){this.parameterTypes=[];}}Constructor.prototype.newInstance=function(initargs){this.initargs=initargs;if(initargs==undefined||!(initargs instanceof Array)){this.initargs=[];}var l1=this.initargs.length;var l2=this.parameterTypes.length;if(l1<l2){for(var i=l1;i<l2;i++){this.initargs[i]=undefined;}}var instanceStr="new "+this.className+"(";for(var i=0;i<l2;i++){instanceStr+="this.initargs["+i+"],";}if(instanceStr.lastIndexOf(",")==instanceStr.length-1){instanceStr=instanceStr.substring(0,instanceStr.length-1);}instanceStr+=")";var instance=eval(instanceStr);return instance;};Constructor.prototype.getName=function(){return this.className;};Constructor.prototype.getParameterTypes=function(){return this.parameterTypes;};Constructor.prototype.getDeclaringClass=function(){return this.className;};function Double(value){this.jsjava_class="jsjava.lang.Double";this.value=value;}Double.MIN=Math.pow(2,-1074);Double.MAX=(2-Math.pow(2,-52))*Math.pow(2,1023);Double.MIN_VALUE=Math.pow(2,-1074);Double.MAX_VALUE=(2-Math.pow(2,-52))*Math.pow(2,1023);Double.POSITIVE_INFINITY=1.0/0.0;Double.NEGATIVE_INFINITY=-1.0/0.0;Double.NaN=0.0/0.0;Double.checkValid=function(d){if(isNaN(d)){return false;}d=parseFloat(d);if(d<Double.POSITIVE_INFINITY&&d>Double.NEGATIVE_INFINITY){return true;}return false;};Double.isInfinite=function(d){return (d==Double.POSITIVE_INFINITY||d==Double.NEGATIVE_INFINITY);};Double.parseDouble=function(str){if(isNaN(str)){throw new NumberFormatException(NumberFormatException.NOT_NUMBER,"Not a number Exception!");}return parseFloat(str);};Double.prototype.compareTo=function(b){if(b==undefined){return -1;}if(this.value>b.value){return 1;}else if(this.value==b.value){return 0;}else{return -1;}};Double.prototype.isInfinite=function(){return (this.value==Double.POSITIVE_INFINITY||this.value==Double.NEGATIVE_INFINITY);};Double.prototype.DoubleValue=function(){return this.value;};Double.prototype.toString=function(){return this.value;};Double.prototype.equals=function(o){if(o==undefined){return false;}if(o.jsjava_class&&o.jsjava_class=="jsjava.lang.Double"){return this.value==o.value;}return false;};Double.isNaN=function(v) {return (v!= v);};EmptyStackException.prototype=new Error();EmptyStackException.prototype.constructor=EmptyStackException;EmptyStackException.ERROR=0;function EmptyStackException(code,message){this.jsjava_class="jsjava.lang.EmptyStackException";this.code=code;this.message=message;this.name="jsjava.lang.EmptyStackException";}Exception.prototype=new Error();Exception.prototype.constructor=Exception;function Exception(code,message){this.jsjava_class="jsjava.lang.Exception";this.code=code;this.message=message;this.name="jsjava.lang.Exception";}function Float(value){this.jsjava_class="jsjava.lang.Float";this.value=value;}Float.MIN=Math.pow(2,-149);Float.MAX=(2-Math.pow(2,-23))*Math.pow(2,127);Float.MIN_VALUE=Math.pow(2,-149);Float.MAX_VALUE=(2-Math.pow(2,-23))*Math.pow(2,127);Float.POSITIVE_INFINITY=1.0/0.0;Float.NEGATIVE_INFINITY=-1.0/0.0;Float.checkValid=function(f){if(isNaN(f)){return false;}f=parseFloat(f);if(f<Float.POSITIVE_INFINITY&&f>Float.NEGATIVE_INFINITY){return true;}return false;};Float.isInfinite=function(f){return (f==Float.POSITIVE_INFINITY||f==Float.NEGATIVE_INFINITY);};Float.parseFloat=function(str){if(isNaN(str)){throw new NumberFormatException(NumberFormatException.NOT_NUMBER,"Not a number Exception!");}return parseFloat(str);};Float.prototype.compareTo=function(b){if(b==undefined){return -1;}if(this.value>b.value){return 1;}else if(this.value==b.value){return 0;}else{return -1;}};Float.prototype.floatValue=function(){return this.value;};Float.prototype.isInfinite=function(){return (this.value==Float.POSITIVE_INFINITY||this.value==Float.NEGATIVE_INFINITY);};Float.prototype.toString=function(){return this.value;};Float.prototype.equals=function(o){if(o==undefined){return false;}if(o.jsjava_class&&o.jsjava_class=="jsjava.lang.Float"){return this.value==o.value;}return false;};IllegalArgumentException.prototype=new Error();IllegalArgumentException.prototype.constructor=IllegalArgumentException;IllegalArgumentException.ERROR=0;function IllegalArgumentException(code,message){this.jsjava_class="jsjava.lang.IllegalArgumentException";this.code=code;this.message=message;this.name="jsjava.lang.IllegalArgumentException";}IllegalStateException.prototype=new Error();IllegalStateException.prototype.constructor=IllegalStateException;IllegalStateException.ERROR=0;function IllegalStateException(code,message){this.jsjava_class="jsjava.lang.IllegalStateException";this.code=code;this.message=message;this.name="jsjava.lang.IllegalStateException";}function Integer(value){this.jsjava_class="jsjava.lang.Integer";this.value=value;}Integer.MIN=-Math.pow(2,31);Integer.MAX=Math.pow(2,31)-1;Integer.MIN_VALUE=-Math.pow(2,31);Integer.MAX_VALUE=Math.pow(2,31)-1;Integer.digits = ['0' , '1' , '2' , '3' , '4' , '5' ,'6' , '7' , '8' , '9' , 'a' , 'b' ,'c' , 'd' , 'e' , 'f' , 'g' , 'h' ,'i' , 'j' , 'k' , 'l' , 'm' , 'n' ,'o' , 'p' , 'q' , 'r' , 's' , 't' ,'u' , 'v' , 'w' , 'x' , 'y' , 'z'];Integer.checkValid=function(i){if(isNaN(i)){return false;}if(typeof(i)=="number"){if(Math.floor(i)!=i){return false;}}else{if(i.indexOf(".")!=-1){return false;}}i=parseInt(i);if(i<=Integer.MAX&&i>=Integer.MIN){return true;}return false;};Integer.parseInt=function(str){if(isNaN(str)){throw new NumberFormatException(NumberFormatException.NOT_NUMBER,"Not a number Exception!");}var i=parseInt(str);if(!Integer.checkValid(i)){return;}return i;};Integer.prototype.compareTo=function(b){if(b==undefined){return -1;}if(this.value>b.value){return 1;}else if(this.value==b.value){return 0;}else{return -1;}};Integer.prototype.intValue=function(){return this.value;};Integer.prototype.toString=function(){return this.value;};Integer.prototype.equals=function(o){if(o==undefined){return false;}if(o.jsjava_class&&o.jsjava_class=="jsjava.lang.Integer"){return this.value==o.value;}return false;};Integer.toHexString=function(i){return Integer.toUnsignedString(i, 4);};Integer.toOctalString=function(i){return Integer.toUnsignedString(i, 3);};Integer.toBinaryString=function(i){return Integer.toUnsignedString(i, 1);};Integer.toUnsignedString=function(i,shift){var buf = new Array(32);var charPos = 32;var radix = 1 << shift;var mask = radix - 1;do {buf[--charPos] = Integer.digits[i & mask];i >>>= shift;} while (i != 0);var count=32 - charPos;var carray=new Array(count);for(var j=0;j<count;j++){carray[j]=buf[j+charPos];}return carray.join("");};function Long(value){this.jsjava_class="jsjava.lang.Long";this.value=value;}Long.MIN=-Math.pow(2,63);Long.MAX=Math.pow(2,63)-1;Long.MIN_VALUE=-Math.pow(2,63);Long.MAX_VALUE=Math.pow(2,63)-1;Long.checkValid=function(l){if(isNaN(l)){return false;}if(typeof(l)=="number"){if(Math.floor(l)!=l){return false;}}else{if(l.indexOf(".")!=-1){return false;}}l=parseInt(l);if(l<=Long.MAX&&l>=Long.MIN){return true;}return false;};Long.parseLong=function(str){if(isNaN(str)){throw new NumberFormatException(NumberFormatException.NOT_NUMBER,"Not a number Exception!");}var l=parseInt(str);if(!Long.checkValid(l)){return;}return l;};Long.prototype.compareTo=function(b){if(b==undefined){return -1;}if(this.value>b.value){return 1;}else if(this.value==b.value){return 0;}else{return -1;}};Long.prototype.longValue=function(){return this.value;};Long.prototype.toString=function(){return this.value;};Long.prototype.equals=function(o){if(o==undefined){return false;}if(o.jsjava_class&&o.jsjava_class=="jsjava.lang.Long"){return this.value==o.value;}return false;};NoSuchMethodException.prototype=new Error();NoSuchMethodException.prototype.constructor=NoSuchMethodException;NoSuchMethodException.ERROR=0;function NoSuchMethodException(code,message){this.jsjava_class="jsjava.lang.NoSuchMethodException";this.code=code;this.message=message;this.name="jsjava.lang.NoSuchMethodException";}NullPointerException.prototype=new Error();NullPointerException.prototype.constructor=NullPointerException;NullPointerException.ERROR=0;function NullPointerException(code,message){this.jsjava_class="jsjava.lang.NullPointerException";this.code=code;this.message=message;this.name="jsjava.lang.NullPointerException";}NumberFormatException.prototype=new Error();NumberFormatException.prototype.constructor=NumberFormatException;NumberFormatException.NOT_NUMBER=1;function NumberFormatException(code,message){this.jsjava_class="jsjava.lang.NumberFormatException";this.code=code;this.message=message;this.name="jsjava.lang.NumberFormatException";}SecurityException.prototype=new Error();SecurityException.prototype.constructor=SecurityException;SecurityException.ERROR=0;function SecurityException(code,message){this.jsjava_class="jsjava.lang.SecurityException";this.code=code;this.message=message;this.name="jsjava.lang.SecurityException";}function Short(value){this.jsjava_class="jsjava.lang.Short";this.value=value;}Short.MIN=-Math.pow(2,15);Short.MAX=Math.pow(2,15)-1;Short.MIN_VALUE=-Math.pow(2,15);Short.MAX_VALUE=Math.pow(2,15)-1;Short.checkValid=function(s){if(isNaN(s)){return false;}if(typeof(s)=="number"){if(Math.floor(s)!=s){return false;}}else{if(s.indexOf(".")!=-1){return false;}}s=parseInt(s);if(s<=Short.MAX&&s>=Short.MIN){return true;}return false;};Short.parseShort=function(str){if(isNaN(str)){throw new NumberFormatException(NumberFormatException.NOT_NUMBER,"Not a number Exception!");}var s=parseInt(str);if(!Short.checkValid(s)){return;}return s;};Short.prototype.compareTo=function(b){if(b==undefined){return -1;}if(this.value>b.value){return 1;}else if(this.value==b.value){return 0;}else{return -1;}};Short.prototype.shortValue=function(){return this.value;};Short.prototype.toString=function(){return this.value;};Short.prototype.equals=function(o){if(o==undefined){return false;}if(o.jsjava_class&&o.jsjava_class=="jsjava.lang.Short"){return this.value==o.value;}return false;};function StringBuffer(str){this.jsjava_class="jsjava.lang.StringBuffer";if(str==undefined||str==null){str="";}this.orig=str;this.nStr=str;}StringBuffer.prototype.append=function (pvalue){this.nStr+=pvalue;};StringBuffer.prototype.getLength=function (){return this.nStr.length;};StringBuffer.prototype.charAt=function (index){return this.nStr.charAt(index);};StringBuffer.prototype.deleteBetween=function (index1,index2){if(index1<index2){var str=this.nStr.substring(0,index1)+this.nStr.substring(index2);this.nStr=str;}else if(index1==index2){var str=this.nStr.substring(0,index1)+this.nStr.substring(index1+1);this.nStr=str;}};StringBuffer.prototype.getValue=function (){return this.nStr;};StringBuffer.prototype.toString=function (){return this.nStr;};StringBuffer.prototype.deleteCharAt=function (index){this.deleteBetween(index,index);};StringBuffer.prototype.getChars=function (){var chars=new Array(this.getLength());for(var i=0;i<chars.length;i++){chars[i]=this.nStr.charAt(i);}return chars;};StringBuffer.prototype.indexOf=function (str){return this.nStr.indexOf(str);};StringBuffer.prototype.insert=function (index,str){var s= this.nStr.substring(0,index)+str+this.nStr.substring(index);this.nStr=s;};StringBuffer.prototype.lastIndexOf=function (str){return this.nStr.lastIndexOf(str);};StringBuffer.prototype.substring=function (index){return this.nStr.substring(index);};StringBuffer.prototype.substringBetween=function (index1,index2){return this.nStr.substring(index1,index2);};StringBuffer.prototype.reverse=function (){var str="";for(var i=this.getLength()-1;i>=0;i--){str+=this.charAt(i);}this.nStr=str;};function System(){this.jsjava_class="jsjava.lang.System";}System.out=null;System.err=null;System.console=null;System.currentTimeMillis=function(){return new Date().getTime();};System.exit=function(status){if(System.console){System.console.close();}};UnsupportedOperationException.prototype=new Error();UnsupportedOperationException.prototype.constructor=UnsupportedOperationException;UnsupportedOperationException.ERROR=0;function UnsupportedOperationException(code,message){this.jsjava_class="jsjava.lang.UnsupportedOperationException";this.code=code;this.message=message;this.name="jsjava.lang.UnsupportedOperationException";}function Collection(){this.jsjava_class="jsjava.util.Collection";}Collection.CONSTANT_ILLEGAL_INVOCATION="This is an interface method and you should use the concrete method";Collection.prototype.recapacity=function (){throw new IllegalStateException(IllegalStateException.ERROR,Collection.CONSTANT_ILLEGAL_INVOCATION);};Collection.prototype.add=function (pvalue){throw new IllegalStateException(IllegalStateException.ERROR,Collection.CONSTANT_ILLEGAL_INVOCATION);};Collection.prototype.addAll=function (c){throw new IllegalStateException(IllegalStateException.ERROR,Collection.CONSTANT_ILLEGAL_INVOCATION);};Collection.prototype.clear=function (){throw new IllegalStateException(IllegalStateException.ERROR,Collection.CONSTANT_ILLEGAL_INVOCATION);};Collection.prototype.contains=function (pvalue){throw new IllegalStateException(IllegalStateException.ERROR,Collection.CONSTANT_ILLEGAL_INVOCATION);};Collection.prototype.containsAll=function (c){throw new IllegalStateException(IllegalStateException.ERROR,Collection.CONSTANT_ILLEGAL_INVOCATION);};Collection.prototype.get=function (index){throw new IllegalStateException(IllegalStateException.ERROR,Collection.CONSTANT_ILLEGAL_INVOCATION);};Collection.prototype.isEmpty=function (){throw new IllegalStateException(IllegalStateException.ERROR,Collection.CONSTANT_ILLEGAL_INVOCATION);};Collection.prototype.iterator=function (){throw new IllegalStateException(IllegalStateException.ERROR,Collection.CONSTANT_ILLEGAL_INVOCATION);};Collection.prototype.remove=function (pvalue){throw new IllegalStateException(IllegalStateException.ERROR,Collection.CONSTANT_ILLEGAL_INVOCATION);};Collection.prototype.removeAll=function (c){throw new IllegalStateException(IllegalStateException.ERROR,Collection.CONSTANT_ILLEGAL_INVOCATION);};Collection.prototype.retainAll=function (c){throw new IllegalStateException(IllegalStateException.ERROR,Collection.CONSTANT_ILLEGAL_INVOCATION);};Collection.prototype.getSize=function (){throw new IllegalStateException(IllegalStateException.ERROR,Collection.CONSTANT_ILLEGAL_INVOCATION);};Collection.prototype.size=function (){throw new IllegalStateException(IllegalStateException.ERROR,Collection.CONSTANT_ILLEGAL_INVOCATION);};Collection.prototype.toArray=function (){throw new IllegalStateException(IllegalStateException.ERROR,Collection.CONSTANT_ILLEGAL_INVOCATION);};function List(){this.jsjava_class="jsjava.util.List";}List.prototype=new Collection();List.prototype.constructor=List;List.CONSTANT_ILLEGAL_INVOCATION="This is an interface method and you should use the concrete method";List.prototype.recapacity=function (){throw new IllegalStateException(IllegalStateException.ERROR,List.CONSTANT_ILLEGAL_INVOCATION);};List.prototype.add=function (pvalue){throw new IllegalStateException(IllegalStateException.ERROR,List.CONSTANT_ILLEGAL_INVOCATION);};List.prototype.addIndexOf=function (index,pvalue){throw new IllegalStateException(IllegalStateException.ERROR,List.CONSTANT_ILLEGAL_INVOCATION);};List.prototype.addAll=function (c){throw new IllegalStateException(IllegalStateException.ERROR,List.CONSTANT_ILLEGAL_INVOCATION);};List.prototype.addAllIndexOf=function (index,c){throw new IllegalStateException(IllegalStateException.ERROR,List.CONSTANT_ILLEGAL_INVOCATION);};List.prototype.clear=function (){throw new IllegalStateException(IllegalStateException.ERROR,List.CONSTANT_ILLEGAL_INVOCATION);};List.prototype.contains=function (pvalue){throw new IllegalStateException(IllegalStateException.ERROR,List.CONSTANT_ILLEGAL_INVOCATION);};List.prototype.containsAll=function (c){throw new IllegalStateException(IllegalStateException.ERROR,List.CONSTANT_ILLEGAL_INVOCATION);};List.prototype.get=function (index){throw new IllegalStateException(IllegalStateException.ERROR,List.CONSTANT_ILLEGAL_INVOCATION);};List.prototype.indexOf=function (pvalue){throw new IllegalStateException(IllegalStateException.ERROR,List.CONSTANT_ILLEGAL_INVOCATION);};List.prototype.isEmpty=function (){throw new IllegalStateException(IllegalStateException.ERROR,List.CONSTANT_ILLEGAL_INVOCATION);};List.prototype.iterator=function (){throw new IllegalStateException(IllegalStateException.ERROR,List.CONSTANT_ILLEGAL_INVOCATION);};List.prototype.lastIndexOf=function (pvalue){throw new IllegalStateException(IllegalStateException.ERROR,List.CONSTANT_ILLEGAL_INVOCATION);};List.prototype.listIterator=function (index){throw new IllegalStateException(IllegalStateException.ERROR,List.CONSTANT_ILLEGAL_INVOCATION);};List.prototype.removeIndexOf=function (index){throw new IllegalStateException(IllegalStateException.ERROR,List.CONSTANT_ILLEGAL_INVOCATION);};List.prototype.remove=function (pvalue){throw new IllegalStateException(IllegalStateException.ERROR,List.CONSTANT_ILLEGAL_INVOCATION);};List.prototype.removeAll=function (c){throw new IllegalStateException(IllegalStateException.ERROR,Collection.CONSTANT_ILLEGAL_INVOCATION);};List.prototype.retainAll=function (c){throw new IllegalStateException(IllegalStateException.ERROR,Collection.CONSTANT_ILLEGAL_INVOCATION);};List.prototype.set=function (index,pvalue){throw new IllegalStateException(IllegalStateException.ERROR,List.CONSTANT_ILLEGAL_INVOCATION);};List.prototype.subList=function (index1,index2){throw new IllegalStateException(IllegalStateException.ERROR,List.CONSTANT_ILLEGAL_INVOCATION);};List.prototype.getSize=function (){throw new IllegalStateException(IllegalStateException.ERROR,List.CONSTANT_ILLEGAL_INVOCATION);};List.prototype.size=function (){throw new IllegalStateException(IllegalStateException.ERROR,List.CONSTANT_ILLEGAL_INVOCATION);};List.prototype.toArray=function (){throw new IllegalStateException(IllegalStateException.ERROR,List.CONSTANT_ILLEGAL_INVOCATION);};function AbstractList(){this.jsjava_class="jsjava.util.AbstractList";}AbstractList.prototype=new List();AbstractList.prototype.constructor=AbstractList;AbstractList.CONSTANT_ILLEGAL_INVOCATION="This is an abstract method and you should use the concrete method";AbstractList.prototype.recapacity=function (){if(this.capacity-this._size<10){this.capacity+=this.span;var oldElements=this._elements;this._elements=new Array(this.capacity);for(var i=0;i<this._size;i++){this._elements[i]=oldElements[i];}}};AbstractList.prototype.add=function (pvalue){this.recapacity();this._elements[this._size++]=pvalue;};AbstractList.prototype.addIndexOf=function (index,pvalue){this.recapacity();if(index>=this._size){this._elements[this._size++]=pvalue;return;}this._size++;for(var i=this._size-1;i>index;i--){this._elements[i]=this._elements[i-1];}this._elements[index]=pvalue;};AbstractList.prototype.addAll=function (c){if(!(c instanceof Collection)){return;}var size=c.size();for(var i=0;i<size;i++){this.add(c.get(i));}};AbstractList.prototype.addAllIndexOf=function (index,c){if(!(c instanceof Collection)){return;}var size=c.size();for(var i=0;i<size;i++){this.addIndexOf(index++,c.get(i));}};AbstractList.prototype.clear=function (){this._elements=new Array(this.capacity);};AbstractList.prototype.contains=function (pvalue){for(var i=0;i<this._size;i++){var elem=this._elements[i];if(elem.equals(pvalue)){return true;}}return false;};AbstractList.prototype.containsAll=function (c){if(!(c instanceof Collection)){return false;}var size=c.size();for(var i=0;i<size;i++){var elem=c.get(i);if(!this.contains(elem)){return false;}}return true;};AbstractList.prototype.get=function (index){return this._elements[index];};AbstractList.prototype.indexOf=function (pvalue){for(var i=0;i<this._size;i++){var elem=this._elements[i];if(elem.equals(pvalue)){return i;}}return -1;};AbstractList.prototype.isEmpty=function (){return this._size==0;};AbstractList.prototype.iterator=function (){function Iterator(list){this.list=list;this.nextIndex=0;this.size=list.getSize();}Iterator.prototype.hasNext=function(){return this.nextIndex<this.size;};Iterator.prototype.next=function(){var nextObj;if(this.nextIndex<this.size){nextObj=this.list.get(this.nextIndex);this.nextIndex++;return nextObj;}return null;};Iterator.prototype.moveTo=function(index){this.nextIndex=index;};return new Iterator(this);};AbstractList.prototype.lastIndexOf=function (pvalue){for(var i=this._size-1;i>=0;i--){var elem=this._elements[i];if(elem.equals(pvalue)){return i;}}return -1;};AbstractList.prototype.listIterator=function (index){function _ListIterator(list){this.list=list;this.size=list.getSize();if(isNaN(index)||index<0){index=0;}else if(index>this.size){index = this.size;}this.nextIndex=index;}_ListIterator.prototype=new ListIterator();_ListIterator.prototype.constructor=_ListIterator;_ListIterator.prototype.add=function(o){this.list.add(this.nextIndex++)=o;};_ListIterator.prototype.hasNext=function(){return this.nextIndex<this.size;};_ListIterator.prototype.hasPrevious=function(){return this.nextIndex>0;};_ListIterator.prototype.next=function(){var nextObj;if(this.nextIndex<this.size){nextObj=this.list.get(this.nextIndex);this.nextIndex++;return nextObj;}return null;};_ListIterator.prototype.nextIndex=function(){return this.nextIndex;};_ListIterator.prototype.previous=function(){var preObj;if(this.nextIndex>0){preObj=this.list.get(--this.nextIndex);return preObj;}return null;};_ListIterator.prototype.previousIndex=function(){return this.nextIndex;};_ListIterator.prototype.remove=function(){return;};_ListIterator.prototype.set=function(o){return;};return new _ListIterator(this);};AbstractList.prototype.removeIndexOf=function (index){if(index>-1&&index<this._size){var oldElems=this._elements;this._elements=new Array(this.capacity);this._size--;for(var i=0;i<this._size;i++){if(i<index){this._elements[i]=oldElems[i];}else{this._elements[i]=oldElems[i+1];}}}};AbstractList.prototype.remove=function (pvalue){this.removeIndexOf(this.indexOf(pvalue));};AbstractList.prototype.removeAll=function (c){if(!(c instanceof Collection)){return;}var size=c.size();for(var i=0;i<size;i++){var elem=c.get(i);this.remove(elem);}};AbstractList.prototype.retainAll=function (c){if(!(c instanceof Collection)){return;}for(var i=0;i<this._size;i++){var elem=this.get(i);if(!c.contains(elem)){this.remove(elem);}}};AbstractList.prototype.set=function (index,pvalue){this._elements[index]=pvalue;};AbstractList.prototype.subList=function (index1,index2){var l=new AbstractList();for(var i=index1;i<index2;i++){l.add(this._elements[i]);}return l;};AbstractList.prototype.getSize=function (){return this._size;};AbstractList.prototype.size=function (){return this._size;};AbstractList.prototype.toArray=function (){var arr=new Array(this._size);for(var i=0;i<this._size;i++){arr[i]=this._elements[i];}return arr;};AbstractList.prototype.toString=function (){return this.toArray().toString();};function ArrayList(){this.jsjava_class="jsjava.util.ArrayList";this.capacity=16;this._size=0;this.span=10;this._elements=new Array(this.capacity);}ArrayList.prototype=new AbstractList();ArrayList.prototype.constructor=ArrayList;function Vector(){this.jsjava_class="jsjava.util.Vector";this.capacity=16;this._size=0;this.span=10;this._elements=new Array(this.capacity);}Vector.prototype=new AbstractList();Vector.prototype.constructor=Vector;Vector.prototype.addElement=function (pvalue){this.recapacity();this._elements[this._size++]=pvalue;};Vector.prototype.elementAt=function (index){return this._elements[index];};Vector.prototype.elements=function (){function _Enumeration(list){if(list==undefined){list=new Vector();}this.list=list;this.nextIndex=0;this.size=list.getSize();}_Enumeration.prototype=new Enumeration();_Enumeration.prototype.constructor=_Enumeration;_Enumeration.prototype.hasMoreElements=function(){return this.nextIndex<this.size;};_Enumeration.prototype.nextElement=function(){var nextObj;if(this.nextIndex<this.size){nextObj=this.list.get(this.nextIndex);this.nextIndex++;return nextObj;}throw new NoSuchElementException(NoSuchElementException,"Vector Enumeration");};return new _Enumeration(this);};Vector.prototype.insertElementAt=function (pvalue,index){this.addIndexOf(index,pvalue);};Vector.prototype.lastElement=function (){return this.get(this._size-1);};Vector.prototype.removeElementAt=function (index){return this.removeIndexOf(index);};Vector.prototype.removeElement=function (pvalue){this.remove(pvalue);};Vector.prototype.removeAllElements=function (){this.capacity=16;this._size=0;this.span=10;this._elements=new Array(this.capacity);};Vector.prototype.setElementAt=function (pvalue,index){this.set(index,pvalue);};function Stack(){this.jsjava_class="jsjava.util.Stack";this.capacity=16;this.size=0;this.span=10;this.elements=new Array(this.capacity);}Stack.prototype=new Vector();Stack.prototype.constructor=Stack;Stack.MESSAGE_NOTFOUND=-1;Stack.prototype.recapacity=function (){if(this.capacity-this.size<10){this.capacity+=this.span;var oldElements=this.elements;this.elements=new Array(this.capacity);for(var i=0;i<this.size;i++){this.elements[i]=oldElements[i];}}};Stack.prototype.push=function(obj){this.recapacity();this.elements[this.size++]=obj;};Stack.prototype.pop=function(){if(this.empty()){throw new EmptyStackException(EmptyStackException.ERROR,"Stack has been empty!");}var oldElems=this.elements;this.elements=new Array(this.capacity);for(var i=0;i<this.size-1;i++){this.elements[i]=oldElems[i];}this.size--;return oldElems[this.size];};Stack.prototype.peek=function(){return this.elements[this.size-1];};Stack.prototype.empty=function(){return this.size==0;};Stack.prototype.search=function(obj){for(var i=0;i<this.size;i++){if(this.elements[i].equals(obj)){return i+1;}}return Stack.MESSAGE_NOTFOUND;};function Set(){this.jsjava_class="jsjava.util.Set";}Set.prototype=new Collection();Set.prototype.constructor=Set;Set.CONSTANT_ILLEGAL_INVOCATION="This is an interface method and you should use the concrete method";Set.prototype.recapacity=function (){throw new IllegalStateException(IllegalStateException.ERROR,Set.CONSTANT_ILLEGAL_INVOCATION);};Set.prototype.add=function (pvalue){throw new IllegalStateException(IllegalStateException.ERROR,Set.CONSTANT_ILLEGAL_INVOCATION);};Set.prototype.addAll=function (c){throw new IllegalStateException(IllegalStateException.ERROR,Set.CONSTANT_ILLEGAL_INVOCATION);};Set.prototype.clear=function (){throw new IllegalStateException(IllegalStateException.ERROR,Set.CONSTANT_ILLEGAL_INVOCATION);};Set.prototype.contains=function (pvalue){throw new IllegalStateException(IllegalStateException.ERROR,Set.CONSTANT_ILLEGAL_INVOCATION);};Set.prototype.containsAll=function (c){throw new IllegalStateException(IllegalStateException.ERROR,Set.CONSTANT_ILLEGAL_INVOCATION);};Set.prototype.isEmpty=function (){throw new IllegalStateException(IllegalStateException.ERROR,Set.CONSTANT_ILLEGAL_INVOCATION);};Set.prototype.iterator=function (){throw new IllegalStateException(IllegalStateException.ERROR,Set.CONSTANT_ILLEGAL_INVOCATION);};Set.prototype.remove=function (pvalue){throw new IllegalStateException(IllegalStateException.ERROR,Set.CONSTANT_ILLEGAL_INVOCATION);};Set.prototype.removeAll=function (c){throw new IllegalStateException(IllegalStateException.ERROR,Set.CONSTANT_ILLEGAL_INVOCATION);};Set.prototype.retainAll=function (c){throw new IllegalStateException(IllegalStateException.ERROR,Set.CONSTANT_ILLEGAL_INVOCATION);};Set.prototype.getSize=function (){throw new IllegalStateException(IllegalStateException.ERROR,Set.CONSTANT_ILLEGAL_INVOCATION);};Set.prototype.size=function (){throw new IllegalStateException(IllegalStateException.ERROR,Set.CONSTANT_ILLEGAL_INVOCATION);};Set.prototype.toArray=function (){throw new IllegalStateException(IllegalStateException.ERROR,Set.CONSTANT_ILLEGAL_INVOCATION);};Set.prototype.toString=function (){throw new IllegalStateException(IllegalStateException.ERROR,Set.CONSTANT_ILLEGAL_INVOCATION);};function AbstractSet(){this.jsjava_class="jsjava.util.AbstractSet";}AbstractSet.prototype=new Set();AbstractSet.prototype.constructor=AbstractSet;AbstractSet.prototype.recapacity=function (){if(this.capacity-this._size<10){this.capacity+=this.span;var oldElements=this.elements;this.elements=new Array(this.capacity);for(var i=0;i<this._size;i++){this.elements[i]=oldElements[i];}}};AbstractSet.prototype.add=function (pvalue){if(this.contains(pvalue)){return;}this.recapacity();this.elements[this._size++]=pvalue;};AbstractSet.prototype.addAll=function (c){if(!(c instanceof Collection)){return;}var size=c.size();for(var i=0;i<size;i++){this.add(c.get(i));}};AbstractSet.prototype.clear=function (){this.elements=new Array(this.capacity);};AbstractSet.prototype.contains=function (pvalue){for(var i=0;i<this._size;i++){var elem=this.elements[i];if(elem.equals(pvalue)){return true;}}return false;};AbstractSet.prototype.containsAll=function (c){if(!(c instanceof Collection)){return false;}var size=c.size();for(var i=0;i<size;i++){var elem=c.get(i);if(!this.contains(elem)){return false;}}return true;};AbstractSet.prototype.get=function (index){return this.elements[index];};AbstractSet.prototype.isEmpty=function (){return this._size==0;};AbstractSet.prototype.iterator=function (){function Iterator(list){this.list=list;this.nextIndex=0;this.size=list.getSize();}Iterator.prototype.hasNext=function(){return this.nextIndex<this.size;};Iterator.prototype.next=function(){var nextObj;if(this.nextIndex<this.size){nextObj=this.list.get(this.nextIndex);this.nextIndex++;return nextObj;}return null;};Iterator.prototype.moveTo=function(index){this.nextIndex=index;};return new Iterator(this);};AbstractSet.prototype.remove=function (pvalue){var arr=new Array();for(var i=0;i<this._size;i++){var elem=this.get(i);if(!elem.equals(pavalue)){arr[arr.length]=elem;}}this.clear();for(var i=0;i<arr.length;i++){this.add(arr[i]);}};AbstractSet.prototype.removeAll=function (c){if(!(c instanceof Collection)){return;}var size=c.size();for(var i=0;i<size;i++){var elem=c.get(i);this.remove(elem);}};AbstractSet.prototype.retainAll=function (c){if(!(c instanceof Collection)){return;}for(var i=0;i<this._size;i++){var elem=this.get(i);if(!c.contains(elem)){this.remove(elem);}}};AbstractSet.prototype.getSize=function (){return this._size;};AbstractSet.prototype.size=function (){return this._size;};AbstractSet.prototype.toArray=function (){var arr=new Array(this._size);for(var i=0;i<this._size;i++){arr[i]=this.elements[i];}return arr;};AbstractSet.prototype.toString=function (){return this.toArray().toString();};function HashSet(){this.jsjava_class="jsjava.util.HashSet";this.capacity=16;this._size=0;this.span=10;this.elements=new Array(this.capacity);}HashSet.prototype=new AbstractSet();HashSet.prototype.constructor=HashSet;function SortedSet(){this.jsjava_class="jsjava.util.SortedSet";}SortedSet.prototype=new Set();SortedSet.prototype.constructor=SortedSet;SortedSet.CONSTANT_ILLEGAL_INVOCATION="This is an interface method and you should use the concrete method";SortedSet.prototype.comparator=function (){throw new IllegalStateException(IllegalStateException.ERROR,SortedSet.CONSTANT_ILLEGAL_INVOCATION);};SortedSet.prototype.first=function (pvalue){throw new IllegalStateException(IllegalStateException.ERROR,SortedSet.CONSTANT_ILLEGAL_INVOCATION);};SortedSet.prototype.headSet=function (toElement){throw new IllegalStateException(IllegalStateException.ERROR,SortedSet.CONSTANT_ILLEGAL_INVOCATION);};SortedSet.prototype.last=function (){throw new IllegalStateException(IllegalStateException.ERROR,SortedSet.CONSTANT_ILLEGAL_INVOCATION);};SortedSet.prototype.subSet=function (fromElement,toElement){throw new IllegalStateException(IllegalStateException.ERROR,SortedSet.CONSTANT_ILLEGAL_INVOCATION);};SortedSet.prototype.tailSet=function (fromElement){throw new IllegalStateException(IllegalStateException.ERROR,SortedSet.CONSTANT_ILLEGAL_INVOCATION);};function TreeSet(comparator){this.jsjava_class="jsjava.util.TreeSet";this.capacity=16;this._size=0;this.span=10;this._elements=new Array(this.capacity);this.comparator=comparator;}TreeSet.prototype=new SortedSet();TreeSet.prototype.constructor=TreeSet;TreeSet.prototype.recapacity=function (){if(this.capacity-this._size<10){this.capacity+=this.span;var oldElements=this._elements;this._elements=new Array(this.capacity);for(var i=0;i<this._size;i++){this._elements[i]=oldElements[i];}}};TreeSet.prototype.sort=function(){function _sort(o1,o2){return c.compare(o1,o2);}var c=this.comparator;if(c==null){this._elements.sort();return;}this._elements.sort(_sort);};TreeSet.prototype.add=function (pvalue){if(this.contains(pvalue)){return;}this.recapacity();this._elements[this._size++]=pvalue;this.sort();};TreeSet.prototype.addAll=function (c){if(!(c instanceof Collection)){return;}var size=c.size();for(var i=0;i<size;i++){this.add(c.get(i));}this.sort();};TreeSet.prototype.clear=function (){this._elements=new Array(this.capacity);};TreeSet.prototype.comparator=function (){return this.comparator;};TreeSet.prototype.contains=function (pvalue){for(var i=0;i<this._size;i++){var elem=this._elements[i];if(elem.equals(pvalue)){return true;}}return false;};TreeSet.prototype.containsAll=function (c){if(!(c instanceof Collection)){return false;}var size=c.size();for(var i=0;i<size;i++){var elem=c.get(i);if(!this.contains(elem)){return false;}}return true;};TreeSet.prototype.first=function (pvalue){return this._elements[0];};TreeSet.prototype.headSet=function (toElement){var arr=new HashSet();var toIndex=this.indexOf(toElement);for(var i=0;i<toIndex;i++){var elem=this._elements[i];arr[i]=elem;}return arr;};TreeSet.prototype.get=function (index){return this._elements[index];};TreeSet.prototype.indexOf=function (pvalue){for(var i=0;i<this._size;i++){var elem=this._elements[i];if(elem.equals(pvalue)){return i;}}return -1;};TreeSet.prototype.isEmpty=function (){return this._size==0;};TreeSet.prototype.iterator=function (){function Iterator(list){this.list=list;this.nextIndex=0;this.size=list.getSize();}Iterator.prototype.hasNext=function(){return this.nextIndex<this.size;};Iterator.prototype.next=function(){var nextObj;if(this.nextIndex<this.size){nextObj=this.list.get(this.nextIndex);this.nextIndex++;return nextObj;}return null;};Iterator.prototype.moveTo=function(index){this.nextIndex=index;};return new Iterator(this);};TreeSet.prototype.last=function (){return this._elements[this._size-1];};TreeSet.prototype.remove=function (pvalue){var arr=new Array();for(var i=0;i<this._size;i++){var elem=this.get(i);if(!elem.equals(pavalue)){arr[arr.length]=elem;}}this.clear();for(var i=0;i<arr.length;i++){this.add(arr[i]);}};TreeSet.prototype.removeAll=function (c){if(!(c instanceof Collection)){return;}var size=c.size();for(var i=0;i<size;i++){var elem=c.get(i);this.remove(elem);}};TreeSet.prototype.retainAll=function (c){if(!(c instanceof Collection)){return;}for(var i=0;i<this._size;i++){var elem=this.get(i);if(!c.contains(elem)){this.remove(elem);}}};TreeSet.prototype.getSize=function (){return this._size;};TreeSet.prototype.size=function (){return this._size;};TreeSet.prototype.subSet=function (fromElement,toElement){var set=new TreeSet();var fromIndex=this.indexOf(fromElement);var toIndex=this.indexOf(toElement);if(fromIndex==-1||toIndex==-1||fromIndex>toIndex){return set;}for(var i=fromIndex;i<toIndex;i++){var elem=this._elements[i];set.add(elem);}return set;};TreeSet.prototype.tailSet=function (fromElement){var set=new HashSet();var fromIndex=this.indexOf(fromElement);if(fromIndex===-1){return set;}for(var i=fromIndex;i<this._size;i++){var elem=this._elements[i];set.add(elem);}return set;};TreeSet.prototype.toArray=function (){var arr=new Array(this._size);for(var i=0;i<this._size;i++){arr[i]=this._elements[i];}return arr;};TreeSet.prototype.toString=function (){return this.toArray().toString();};function Map(){this.jsjava_class="jsjava.util.Map";}Map.CONSTANT_ILLEGAL_INVOCATION="This is an interface method and you should use the concrete method";Map.prototype.recapacity=function(){throw new IllegalStateException(IllegalStateException.ERROR,Map.CONSTANT_ILLEGAL_INVOCATION);};Map.prototype.clear=function(){throw new IllegalStateException(IllegalStateException.ERROR,Map.CONSTANT_ILLEGAL_INVOCATION);};Map.prototype.put=function (pname,pvalue){throw new IllegalStateException(IllegalStateException.ERROR,Map.CONSTANT_ILLEGAL_INVOCATION);};Map.prototype.putAll=function (map){throw new IllegalStateException(IllegalStateException.ERROR,Map.CONSTANT_ILLEGAL_INVOCATION);};Map.prototype.get=function (pname){throw new IllegalStateException(IllegalStateException.ERROR,Map.CONSTANT_ILLEGAL_INVOCATION);};Map.prototype.containsKey=function(pname){throw new IllegalStateException(IllegalStateException.ERROR,Map.CONSTANT_ILLEGAL_INVOCATION);};Map.prototype.containsValue=function (pvalue){throw new IllegalStateException(IllegalStateException.ERROR,Map.CONSTANT_ILLEGAL_INVOCATION);};Map.prototype.values=function (){throw new IllegalStateException(IllegalStateException.ERROR,Map.CONSTANT_ILLEGAL_INVOCATION);};Map.prototype.entrySet=function (){throw new IllegalStateException(IllegalStateException.ERROR,Map.CONSTANT_ILLEGAL_INVOCATION);};Map.prototype.isEmpty=function (){throw new IllegalStateException(IllegalStateException.ERROR,Map.CONSTANT_ILLEGAL_INVOCATION);};Map.prototype.keySet=function (){throw new IllegalStateException(IllegalStateException.ERROR,Map.CONSTANT_ILLEGAL_INVOCATION);};Map.prototype.getSize=function (){throw new IllegalStateException(IllegalStateException.ERROR,Map.CONSTANT_ILLEGAL_INVOCATION);};Map.prototype.size=function (){throw new IllegalStateException(IllegalStateException.ERROR,Map.CONSTANT_ILLEGAL_INVOCATION);};Map.prototype.remove=function (key){throw new IllegalStateException(IllegalStateException.ERROR,Map.CONSTANT_ILLEGAL_INVOCATION);};Map.Entry=function(){this.jsjava_class="jsjava.util.Map.Entry";this.equals=function(o){throw new IllegalStateException(IllegalStateException.ERROR,Map.CONSTANT_ILLEGAL_INVOCATION);};this.getKey=function(){throw new IllegalStateException(IllegalStateException.ERROR,Map.CONSTANT_ILLEGAL_INVOCATION);};this.getValue=function(){throw new IllegalStateException(IllegalStateException.ERROR,Map.CONSTANT_ILLEGAL_INVOCATION);};this.setValue=function(value){throw new IllegalStateException(IllegalStateException.ERROR,Map.CONSTANT_ILLEGAL_INVOCATION);};};function AbstractMap(){this.jsjava_class="jsjava.util.AbstractMap";}AbstractMap.prototype=new Map();AbstractMap.prototype.constructor=AbstractMap;AbstractMap.prototype.recapacity=function(){if(this.capacity-this._size<10){this.capacity+=this.span;var oldElements=this._elements;this._elements=new Array(this.capacity);for(var i=0;i<this._size;i++){this._elements[i]=oldElements[i];}}};AbstractMap.prototype.clear=function(){this.capacity=16;this._size=0;this._elements=new Array(this.capacity);};AbstractMap.prototype.put=function (pname,pvalue){this.recapacity();if(this.containsKey(pname)){for(var i=0;i<this._size;i++){var elem=this._elements[i];if(elem[0].equals(pname)){elem[1]=pvalue;return;}}}this._elements[this._size++]=[pname,pvalue];};AbstractMap.prototype.putAll=function (map){if(map==undefined||!(map instanceof Map)){return;}var keyset=map.keySet();var keysize=keyset.size();for(var i=0;i<keysize;i++){var key=keyset.get(i);var value=map.get(key);this.put(key,value);}};AbstractMap.prototype.get=function (pname){for(var i=0;i<this._size;i++){var elem=this._elements[i];if(elem[0]==undefined||elem[0]==null){if(elem[0]==pname){return elem[1];}}else if(elem[0].equals(pname)){return elem[1];}}};AbstractMap.prototype.containsKey=function(pname){if(this.get(pname)==undefined){return false;}return true;};AbstractMap.prototype.containsValue=function (pvalue){for(var i=0;i<this._size;i++){var elem=this._elements[i];if(elem[1].equals(pvalue)){return true;}}return false;};AbstractMap.prototype.values=function (){var values=new ArrayList();for(var i=0;i<this._size;i++){var elem=this._elements[i];values.add(elem[1]);}return values;};AbstractMap.prototype.entrySet=function (){Map._Entry=function(key,value){this.key=key;this.value=value;this.equals=function(o){if(!(o instanceof Map.Entry)){return true;}if(this.key.equals(o.key)&&this.value.equals(o.value)){return true;}return false;};this.getKey=function(){return this.key;};this.getValue=function(){return this.value;};this.setValue=function(value){this.value=value;};this.toString=function(){return "("+this.key+","+this.value+")";};};Map._Entry.prototype=new Map.Entry();Map._Entry.prototype.constructor=Map._Entry;var es=new HashSet();for(var i=0;i<this._size;i++){var elem=this._elements[i];var me=new Map._Entry(elem[0],elem[1]);es.add(me);}return es;};AbstractMap.prototype.isEmpty=function (){return this._size==0;};AbstractMap.prototype.keys=function (){function _Enumeration(map){if(map==undefined){map=new HashMap();}this.list=map.keySet();this.nextIndex=0;this.size=map.getSize();}_Enumeration.prototype=new Enumeration();_Enumeration.prototype.constructor=_Enumeration;_Enumeration.prototype.hasMoreElements=function(){return this.nextIndex<this.size;};_Enumeration.prototype.nextElement=function(){var nextObj;if(this.nextIndex<this.size){nextObj=this.list.get(this.nextIndex);this.nextIndex++;return nextObj;}return null;};var keys=this.keySet();return new _Enumeration(this);};AbstractMap.prototype.keySet=function (){var set=new HashSet();for(var i=0;i<this._size;i++){var elem=this._elements[i];set.add(elem[0]);}return set;};AbstractMap.prototype.getSize=function (){return this._size;};AbstractMap.prototype.size=function (){return this._size;};AbstractMap.prototype.remove=function (key){if(this.containsKey(key)){var oldElems=this._elements;var oldSize=this._size;this._elements=new Array(this.capacity);this._size=0;for(var i=0;i<oldSize;i++){var oldElem=oldElems[i];if(!oldElem[0].equals(key)){this.put(oldElem[0],oldElem[1]);}}}};AbstractMap.prototype.toString=function (){var str="";for(var i=0;i<this._size;i++){var elem=this._elements[i];str+=",{"+elem[0]+","+elem[1]+"}";}if(str.charAt(0)==","){str=str.substring(1);}str="{"+str+"}";return str;};function HashMap(){this.jsjava_class="jsjava.util.HashMap";this.capacity=16;this._size=0;this.span=10;this._elements=new Array(this.capacity);}HashMap.prototype=new AbstractMap();HashMap.prototype.constructor=HashMap;function Hashtable(){this.jsjava_class="jsjava.util.Hashtable";this.capacity=16;this._size=0;this.span=10;this._elements=new Array(this.capacity);}Hashtable.prototype=new AbstractMap();Hashtable.prototype.constructor=Hashtable;Hashtable.prototype.put=function (pname,pvalue){if(pname==undefined||pname==null||pvalue==undefined||pvalue==null){throw new NullPointerException(NullPointerException.ERROR,"key and value can not be null");}this.recapacity();if(this.containsKey(pname)){for(var i=0;i<this._size;i++){var elem=this._elements[i];if(elem[0].equals(pname)){elem[1]=pvalue;return;}}}this._elements[this._size++]=[pname,pvalue];};Hashtable.prototype.elements=function(){function _Enumeration(hash){if(hash==undefined){hash=new Hashtable();}this.list=hash.values();this.nextIndex=0;this.size=hash.getSize();}_Enumeration.prototype=new Enumeration();_Enumeration.prototype.constructor=_Enumeration;_Enumeration.prototype.hasMoreElements=function(){return this.nextIndex<this.size;};_Enumeration.prototype.nextElement=function(){var nextObj;if(this.nextIndex<this.size){nextObj=this.list.get(this.nextIndex);this.nextIndex++;return nextObj;}return null;};return new _Enumeration(this);};function Properties(){this.jsjava_class="jsjava.util.Properties";}Properties.prototype=new Hashtable();Properties.prototype.constructor=Properties;Properties.prototype.setProperty=function(pname,pvalue){if(typeof(pname)=="string"&&typeof(pvalue)=="string"){this.put(pname,pvalue);}};Properties.prototype.getProperty=function (pname){var pvalue= this.get(pname);if(typeof(pvalue)=="string"){return pvalue;}return null;};Properties.prototype.addProperties=function (hash){if(hash!=null&&hash.size()>0){var keys=hash.keys();for(var i=0;i<keys.length;i++){this.put(keys[i],hash.get(keys[i]));}}};function SortedMap(){this.jsjava_class="jsjava.util.SortedMap";}SortedMap.prototype=new Map();SortedMap.prototype.constructor=SortedMap;SortedMap.CONSTANT_ILLEGAL_INVOCATION="This is an interface method and you should use the concrete method";SortedMap.prototype.comparator=function(){throw new IllegalStateException(IllegalStateException.ERROR,SortedMap.CONSTANT_ILLEGAL_INVOCATION);};SortedMap.prototype.firstKey=function(){throw new IllegalStateException(IllegalStateException.ERROR,SortedMap.CONSTANT_ILLEGAL_INVOCATION);};SortedMap.prototype.headMap=function (toKey){throw new IllegalStateException(IllegalStateException.ERROR,SortedMap.CONSTANT_ILLEGAL_INVOCATION);};SortedMap.prototype.lastKey=function (){throw new IllegalStateException(IllegalStateException.ERROR,SortedMap.CONSTANT_ILLEGAL_INVOCATION);};SortedMap.prototype.subMap=function (fromKey,toKey){throw new IllegalStateException(IllegalStateException.ERROR,SortedMap.CONSTANT_ILLEGAL_INVOCATION);};SortedMap.prototype.tailMap=function(fromKey){throw new IllegalStateException(IllegalStateException.ERROR,SortedMap.CONSTANT_ILLEGAL_INVOCATION);};function TreeMap(comparator){this.jsjava_class="jsjava.util.TreeMap";this.capacity=16;this._size=0;this.span=10;this._elements=new Array(this.capacity);this.comparator=comparator;}TreeMap.prototype=new SortedMap();TreeMap.prototype.constructor=TreeMap;TreeMap.prototype.recapacity=function(){if(this.capacity-this._size<10){this.capacity+=this.span;var oldElements=this._elements;this._elements=new Array(this.capacity);for(var i=0;i<this._size;i++){this._elements[i]=oldElements[i];}}};TreeMap.prototype.sort=function(){function _sort(o1,o2){return c.compare(o1,o2);}var c=this.comparator;if(c==undefined||!(c instanceof Comparator)){this._elements.sort();return;}this._elements.sort(_sort);};TreeMap.prototype.clear=function(){this.capacity=16;this._size=0;this._elements=new Array(this.capacity);};TreeMap.prototype.comparator=function(){return this.comparator;};TreeMap.prototype.firstKey=function(){return this._elements[0][0];};TreeMap.prototype.headMap=function (toKey){var keyIndex=this.indexOf(toKey);if(keyIndex==-1){return;}var keys=this.keySet();var map=new TreeMap();for(var i=0;i<keyIndex;i++){var key=keys.get(i);var value=this.get(key);map.put(key,value);}return map;};TreeMap.prototype.indexOf=function (key){var keys=this.keySet();var keySize=keys.size();for(var i=0;i<keySize;i++){var k=keys.get(i);if(k.equals(key)){return i;}}return -1;};TreeMap.prototype.lastKey=function (){return this._elements[this._size-1][0];};TreeMap.prototype.put=function (pname,pvalue){if(pname==undefined||pname==null){throw new NullPointerException(NullPointerException.ERROR,"");}this.recapacity();if(this.containsKey(pname)){for(var i=0;i<this._size;i++){var elem=this._elements[i];if(elem[0].equals(pname)){elem[1]=pvalue;return;}}}this._elements[this._size++]=[pname,pvalue];this.sort();};TreeMap.prototype.putAll=function (map){if(map==undefined||!(map instanceof Map)){return;}var keyset=map.keySet();var keysize=keyset.size();for(var i=0;i<keysize;i++){var key=keyset.get(i);var value=map.get(key);this.put(key,value);}};TreeMap.prototype.get=function (pname){for(var i=0;i<this._size;i++){var elem=this._elements[i];if(elem[0].equals(pname)){return elem[1];}}};TreeMap.prototype.containsKey=function(pname){if(this.get(pname)==undefined){return false;}return true;};TreeMap.prototype.containsValue=function (pvalue){for(var i=0;i<this._size;i++){var elem=this._elements[i];if(elem[1].equals(pvalue)){return true;}}return false;};TreeMap.prototype.values=function (){var values=new ArrayList();for(var i=0;i<this._size;i++){var elem=this._elements[i];values.add(elem);}return values;};TreeMap.prototype.entrySet=function (){return this._elements;};TreeMap.prototype.isEmpty=function (){return this._size==0;};TreeMap.prototype.keys=function (){function KeysEnueration(list){if(list==undefined){list=new ArrayList();}this.list=list;this.nextIndex=0;this.size=list.getSize();}KeysEnueration.prototype=new Enumeration();KeysEnueration.prototype.constructor=KeysEnueration;KeysEnueration.prototype.hasMoreElements=function(){return this.nextIndex<this.size;};KeysEnueration.prototype.nextElement=function(){var nextObj;if(this.nextIndex<this.size){nextObj=this.list.get(this.nextIndex);this.nextIndex++;return nextObj;}return null;};var keys=this.keySet();return new KeysEnueration(keys);};TreeMap.prototype.keySet=function (){var set=new HashSet();for(var i=0;i<this._size;i++){var elem=this._elements[i];set.add(elem[0]);}return set;};TreeMap.prototype.getSize=function (){return this._size;};TreeMap.prototype.size=function (){return this._size;};TreeMap.prototype.remove=function (key){if(this.containsKey(key)){var oldElems=this._elements;var oldSize=this._size;this._elements=new Array(this.capacity);this._size=0;for(var i=0;i<oldSize;i++){var oldElem=oldElems[i];if(!oldElem[0].equals(key)){this.put(oldElem[0],oldElem[1]);}}}};TreeMap.prototype.subMap=function (fromKey,toKey){var fromIndex=this.indexOf(fromKey);var toIndex=this.indexOf(toKey);if(fromIndex==-1){fromIndex=0;}if(fromIndex>toIndex){return;}var keys=this.keySet();var map=new TreeMap();for(var i=fromIndex;i<toIndex;i++){var key=keys.get(i);var value=this.get(key);map.put(key,value);}return map;};TreeMap.prototype.tailMap=function(toKey){var keyIndex=this.indexOf(toKey);if(keyIndex==-1){return;}var keys=this.keySet();var map=new TreeMap();for(var i=keyIndex;i<this._size;i++){var key=keys.get(i);var value=this.get(key);map.put(key,value);}return map;};TreeMap.prototype.toString=function (){return this._elements.toString();};function Arrays(){this.jsjava_class="jsjava.util.Arrays";}Arrays.asList=function(arr){if(arr==undefined||!(arr instanceof Array)){return new NullPointerException(NullPointerException.ERROR,"");}function UnModifiedArrayList(){}UnModifiedArrayList.prototype=new ArrayList();UnModifiedArrayList.prototype.constructor=UnModifiedArrayList;UnModifiedArrayList.CONSTANT_UNSUPPORTED_OPERATION="This is an unmodified list!";UnModifiedArrayList.prototype.add=function(o){throw new UnsupportedOperationException(UnsupportedOperationException.ERROR,UnModifiedArrayList.CONSTANT_UNSUPPORTED_OPERATION);};UnModifiedArrayList.prototype.addIndexOf=function(index,o){throw new UnsupportedOperationException(UnsupportedOperationException.ERROR,UnModifiedArrayList.CONSTANT_UNSUPPORTED_OPERATION);};UnModifiedArrayList.prototype.addAll=function(c){throw new UnsupportedOperationException(UnsupportedOperationException.ERROR,UnModifiedArrayList.CONSTANT_UNSUPPORTED_OPERATION);};UnModifiedArrayList.prototype.addAllIndexOf=function(index,c){throw new UnsupportedOperationException(UnsupportedOperationException.ERROR,UnModifiedArrayList.CONSTANT_UNSUPPORTED_OPERATION);};UnModifiedArrayList.prototype.clear=function(){throw new UnsupportedOperationException(UnsupportedOperationException.ERROR,UnModifiedArrayList.CONSTANT_UNSUPPORTED_OPERATION);};UnModifiedArrayList.prototype.remove=function(o){throw new UnsupportedOperationException(UnsupportedOperationException.ERROR,UnModifiedArrayList.CONSTANT_UNSUPPORTED_OPERATION);};UnModifiedArrayList.prototype.removeIndexOf=function(index,o){throw new UnsupportedOperationException(UnsupportedOperationException.ERROR,UnModifiedArrayList.CONSTANT_UNSUPPORTED_OPERATION);};UnModifiedArrayList.prototype.removeAll=function(c){throw new UnsupportedOperationException(UnsupportedOperationException.ERROR,UnModifiedArrayList.CONSTANT_UNSUPPORTED_OPERATION);};UnModifiedArrayList.prototype.retainAll=function(c){throw new UnsupportedOperationException(UnsupportedOperationException.ERROR,UnModifiedArrayList.CONSTANT_UNSUPPORTED_OPERATION);};UnModifiedArrayList.prototype.set=function(index,o){throw new UnsupportedOperationException(UnsupportedOperationException.ERROR,UnModifiedArrayList.CONSTANT_UNSUPPORTED_OPERATION);};var uList=new UnModifiedArrayList();for(var i=0;i<arr.length;i++){uList._elements[uList._size++]=arr[i];}return uList;};Arrays.binarySearch=function(arr,key){if(arr==undefined||!(arr instanceof Array)){return new NullPointerException(NullPointerException.ERROR,"");}var low = 0;var high = arr.length-1;while (low <= high) {var mid = (low + high) >> 1;var midVal = a[mid];var cmp = midVal.compareTo(key);if (cmp < 0){low = mid + 1;}else if (cmp > 0){high = mid - 1;}else{return mid;}}return -(low + 1);};Arrays.equals=function(arr1,arr2){if(arr1==undefined&&arr2==undefined){return true;}if(!(arr1 instanceof Array)||!(arr2 instanceof Array)){return false;}var l1=arr1.length;var l2=arr2.length;if(l1!=l2){return false;}for(var i=0;i<l1;i++){if(arr1[i]!=arr2[i]){return false;}}return true;};Arrays.fill=function(arr,o){if(arr==undefined||!(arr instanceof Array)){return;}for(var i=0;i<arr.length;i++){arr[i]=o;}};Arrays.fillBetween=function(arr,fromIndex,toIndex,o){if(arr==undefined||!(arr instanceof Array)){return;}var aLength=arr.length;if(fromIndex<0){fromIndex=0;}if(toIndex>aLength){toIndex=aLength;}if(fromIndex>toIndex){return;}for(var i=fromIndex;i<toIndex;i++){arr[i]=o;}};Arrays.sort=function(arr,c){function _sort(o1,o2){return c.compare(o1,o2);}if(arr==undefined||!(arr instanceof Array)){return;}if(c==undefined||!(c instanceof Comparator)){arr.sort();}else{arr.sort(c);}};Arrays.sortBetween=function(arr,fromIndex,toIndex,c){function _sort(o1,o2){return c.compare(o1,o2);}if(arr==undefined||!(arr instanceof Array)){return;}var aLength=arr.length;if(fromIndex<0){fromIndex=0;}if(toIndex>aLength){toIndex=aLength;}if(fromIndex>toIndex){return;}var midArr=new Array();for(var i=fromIndex,j=0;i<toIndex;i++,j++){midArr[j]=arr[i];}if(c==undefined||!(c instanceof Comparator)){midArr.sort();}else{midArr.sort(c);}for(var i=fromIndex,j=0;i<toIndex;i++,j++){arr[i]=midArr[j];}};function BitSet(){this.jsjava_class="jsjava.util.BitSet";this.elements=new Array();}BitSet.prototype.set=function(bitIndex){this.elements[bitIndex]=true;};BitSet.prototype.setByValue=function(bitIndex,value){if(value!=true&&value!=false){value=false;}this.elements[bitIndex]=value;};BitSet.prototype.setBetween=function(fromIndex,toIndex){for(var i=fromIndex;i<toIndex;i++){this.elements[i]=true;}};BitSet.prototype.setBetweenByValue=function(fromIndex,toIndex,value){if(value!=true&&value!=false){value=false;}for(var i=fromIndex;i<toIndex;i++){this.elements[i]=value;}};BitSet.prototype.get=function(bitIndex){var value=this.elements[bitIndex];if(value){return value;}return false;};BitSet.prototype.getBetween=function(fromIndex,toIndex){var bs=new BitSet();for(var i=fromIndex;i<toIndex;i++){bs.setByValue(i,this.get(i));}return bs;};BitSet.prototype.toString=function(){var elems=new Array();for(var i=0;i<this.elements.length;i++){var value=this.elements[i];if(value){elems[i]=true;}else{elems[i]=false;}}return elems.toString();};BitSet.prototype.size=function(){return this.elements.length;};BitSet.prototype.length=function(){return this.size();};BitSet.prototype.clear=function(){for(var i=0;i<this.size();i++){this.elements[i]=false;}};BitSet.prototype.clearBetween=function(fromIndex,toIndex){for(var i=fromIndex;i<toIndex;i++){this.elements[i]=false;}};BitSet.prototype.isEmpty=function(){for(var i=0;i<this.size();i++){if(this.get(i)){return false;}}return true;};BitSet.prototype.flip=function(bitIndex){var value=this.elements[bitIndex];if(value!=true&&value!=false){value=false;}var rValue=false;if(!value){rValue=true;}this.setByValue(bitIndex,rValue);};BitSet.prototype.flipBetween=function(fromIndex,toIndex){for(var i=fromIndex;i<toIndex;i++){this.flip(i);}};BitSet.prototype.and=function(bs){var size1=this.size();var size2=bs.size();var size=size1>size2?size1:size2;for(var i=0;i<size;i++){var value1=this.get(i);var value2=bs.get(i);var value=value1&&value2;this.setByValue(i,value);}};BitSet.prototype.or=function(bs){var size1=this.size();var size2=bs.size();var size=size1>size2?size1:size2;for(var i=0;i<size;i++){var value1=this.get(i);var value2=bs.get(i);var value=value1||value2;this.setByValue(i,value);}};BitSet.prototype.xor=function(bs){var size1=this.size();var size2=bs.size();var size=size1>size2?size1:size2;for(var i=0;i<size;i++){var value1=this.get(i);var value2=bs.get(i);var value=value1^value2;value=value==1?true:false;this.setByValue(i,value);}};BitSet.prototype.andNot=function(bs){var size1=this.size();var size2=bs.size();var size=size1>size2?size1:size2;for(var i=0;i<size;i++){var value1=this.get(i);var value2=bs.get(i);var value=value2==true?false:value1;this.setByValue(i,value);}};BitSet.prototype.cardinality=function(){var value=0;for(var i=0;i<this.size();i++){if(this.get(i)){value++;}}return value;};function Calendar(){this.jsjava_class="jsjava.util.Calendar";this._date=new Date();this.time=this._date.getTime();this.year=this._date.getYear();this.month=this._date.getMonth();this.date=this._date.getDate();this.day=this._date.getDay();this.hours=this._date.getHours();this.minutes=this._date.getMinutes();this.seconds=this._date.getSeconds();}Calendar.ERA = 0;Calendar.YEAR = 1;Calendar.MONTH = 2;Calendar.WEEK_OF_YEAR = 3;Calendar.WEEK_OF_MONTH = 4;Calendar.DATE = 5;Calendar.DAY_OF_MONTH = 5;Calendar.DAY_OF_YEAR = 6;Calendar.DAY_OF_WEEK = 7;Calendar.DAY_OF_WEEK_IN_MONTH = 8;Calendar.AM_PM = 9;Calendar.HOUR = 10;Calendar.HOUR_OF_DAY = 11;Calendar.MINUTE = 12;Calendar.SECOND = 13;Calendar.MILLISECOND = 14;Calendar.ZONE_OFFSET = 15;Calendar.DST_OFFSET = 16;Calendar.FIELD_COUNT = 17;Calendar.SUNDAY = 1;Calendar.MONDAY = 2;Calendar.TUESDAY = 3;Calendar.WEDNESDAY = 4;Calendar.THURSDAY = 5;Calendar.FRIDAY = 6;Calendar.SATURDAY = 7;Calendar.JANUARY = 0;Calendar.FEBRUARY = 1;Calendar.MARCH = 2;Calendar.APRIL = 3;Calendar.MAY = 4;Calendar.JUNE = 5;Calendar.JULY = 6;Calendar.AUGUST = 7;Calendar.SEPTEMBER = 8;Calendar.OCTOBER = 9;Calendar.NOVEMBER = 10;Calendar.DECEMBER = 11;Calendar.UNDECIMBER = 12;Calendar.AM = 0;Calendar.PM = 1;Calendar.BIG_MONTH_DAYS=31;Calendar.SMALL_MONTH_DAYS=30;Calendar.LEAP_YEAR_FEB_DAYS=29;Calendar.NON_LEAP_YEAR_FEB_DAYS=28;Calendar.DAYS_OF_WEEK=7;Calendar.prototype.checkValid=function(c){if(c==undefined||!c.jsjava_class||c.jsjava_class!=this.jsjava_class){throw new IllegalArgumentException(IllegalArgumentException.ERROR,"Invalid arguments!");}};Calendar.prototype.after=function(c){this.checkValid(c);if(this.getTimeInMillis()>c.getTimeInMillis()){return true;}return false;};Calendar.prototype.before=function(c){this.checkValid(c);if(this.getTimeInMillis()<c.getTimeInMillis()){return true;}return false;};Calendar.prototype.get=function(field){if(typeof(field)!="number"){throw new IllegalArgumentException(IllegalArgumentException.ERROR,"Invalid arguments!");}var result=-1;switch(field){case Calendar.ERA :{result=Calendar.ERA+1;break;};case Calendar.YEAR :{result=this.year;break;};case Calendar.MONTH :{result=this.month;break;};case Calendar.WEEK_OF_YEAR :{var fDate=new Date(this.year,0,1);var fDay=fDate.getDay();var cDate=this.get(Calendar.DAY_OF_YEAR);var n=Math.floor((cDate+fDay-1)/Calendar.DAYS_OF_WEEK)+1;result=n;break;};case Calendar.WEEK_OF_MONTH :{var fDate=new Date(this.year,this.month,1);var fDay=fDate.getDay();var cDate=this.date;var n=Math.floor((cDate+fDay-1)/Calendar.DAYS_OF_WEEK)+1;result=n;break;};case Calendar.DATE :{result=this.date;break;};case Calendar.DAY_OF_MONTH :{result=this.date;break;};case Calendar.DAY_OF_YEAR :{var nDay=0;var month=this.month;for(var i=0;i<month;i++){nDay+=Calendar.getDaysOfMonth(this.year,i);}nDay+=this.date;result=nDay;break;};case Calendar.DAY_OF_WEEK :{result=this.day+1;break;};case Calendar.DAY_OF_WEEK_IN_MONTH :{var date=this.date;var n=Math.floor((date-1)/Calendar.DAYS_OF_WEEK)+1;result=n;break;};case Calendar.AM_PM :{if(this.hours>12){result=Calendar.PM;}else{result=Calendar.AM;}break;}case Calendar.HOUR :{var hours=this.hours;if(hours>=12){result=hours-12;}else{result=hours;}break;};case Calendar.HOUR_OF_DAY :{result=this.hours;break;};case Calendar.MINUTE :{result=this.minutes;break;};case Calendar.SECOND :{result=this.seconds;break;};case Calendar.MILLISECOND :{result=this.time;break;};case Calendar.ZONE_OFFSET :{result=this._date.getTimezoneOffset()*60*1000;break;};case Calendar.DST_OFFSET :{result=0;break;};}return result;};Calendar.prototype.getInstance=function(){return new Calendar();};Calendar.prototype.getTime=function(){return this._date;};Calendar.prototype.getTimeInMillis=function(){return this.time;};Calendar.prototype.isLeapYear=function(){var year=this.year;if(year%100==0){if(year%400==0){return true;}return false;}if(year%4==0){return true;}return false;};Calendar.isLeapYear=function(year){if(year%100==0){if(year%400==0){return true;}return false;}if(year%4==0){return true;}return false;};Calendar.prototype.setTime=function(date){this._date=date;this.time=this._date.getTime();this.year=this._date.getYear();this.month=this._date.getMonth();this.date=this._date.getDate();this.day=this._date.getDay();this.hours=this._date.getHours();this.minutes=this._date.getMinutes();this.seconds=this._date.getSeconds();};Calendar.prototype.isBigMonth=function(){var bigMonth=",1,3,5,7,8,10,12,";if(bigMonth.indexOf(","+(this.month+1)+",")!=-1){return true;}return false;};Calendar.isBigMonth=function(month){var bigMonth=",1,3,5,7,8,10,12,";if(bigMonth.indexOf(","+(month+1)+",")!=-1){return true;}return false;};Calendar.prototype.isSmallMonth=function(){var smallMonth=",4,6,9,11,";if(smallMonth.indexOf(","+(this.month+1)+",")!=-1){return true;}return false;};Calendar.isSmallMonth=function(month){var smallMonth=",4,6,9,11,";if(smallMonth.indexOf(","+(month+1)+",")!=-1){return true;}return false;};Calendar.prototype.isSpecialMonth=function(){if(this.month==1){return true;}return false;};Calendar.isSpecialMonth=function(month){if(month==1){return true;}return false;};Calendar.getDaysOfMonth=function(year,month){if(Calendar.isBigMonth(month)){return Calendar.BIG_MONTH_DAYS;}if(Calendar.isSmallMonth(month)){return Calendar.SMALL_MONTH_DAYS;}if(!year){year=new Date().getYear();}if(Calendar.isLeapYear(year)){return Calendar.LEAP_YEAR_FEB_DAYS;}else{return Calendar.NON_LEAP_YEAR_FEB_DAYS;}};function Comparator(){this.jsjava_class="jsjava.util.Comparator";}Comparator.CONSTANT_ILLEGAL_INVOCATION="This is an interface method and you should use the concrete method";Comparator.prototype.compare=function(o1,o2){throw new IllegalStateException(IllegalStateException.ERROR,Comparator.CONSTANT_ILLEGAL_INVOCATION);};Comparator.prototype.equals=function(o){throw new IllegalStateException(IllegalStateException.ERROR,Comparator.CONSTANT_ILLEGAL_INVOCATION);};function Enumeration(list){this.jsjava_class="jsjava.util.Enumeration";}Enumeration.CONSTANT_ILLEGAL_INVOCATION="This is an interface method and you should use the concrete method";Enumeration.prototype.hasMoreElements=function(){throw new IllegalStateException(IllegalStateException.ERROR,Enumeration.CONSTANT_ILLEGAL_INVOCATION);};Enumeration.prototype.nextElement=function(){throw new IllegalStateException(IllegalStateException.ERROR,Enumeration.CONSTANT_ILLEGAL_INVOCATION);};function EventListener(){this.jsjava_class="jsjava.util.EventListener";}function EventObject(source){this.jsjava_class="jsjava.util.EventObject";}EventObject.prototype.getSource=function(){return this.source;};function GregorianCalendar(){this.jsjava_class="jsjava.util.GregorianCalendar";this._date=new Date();this.time=this._date.getTime();this.year=this._date.getYear();this.month=this._date.getMonth();this.date=this._date.getDate();this.day=this._date.getDay();this.hours=this._date.getHours();this.minutes=this._date.getMinutes();this.seconds=this._date.getSeconds();}GregorianCalendar.prototype=new Calendar();GregorianCalendar.prototype.constructor=GregorianCalendar;function Iterator(list){this.jsjava_class="jsjava.util.Iterator";}Iterator.CONSTANT_ILLEGAL_INVOCATION="This is an interface method and you should use the concrete method";Iterator.prototype.hasNext=function(){throw new IllegalStateException(IllegalStateException.ERROR,Iterator.CONSTANT_ILLEGAL_INVOCATION);};Iterator.prototype.next=function(){throw new IllegalStateException(IllegalStateException.ERROR,Iterator.CONSTANT_ILLEGAL_INVOCATION);};Iterator.prototype.moveTo=function(index){throw new IllegalStateException(IllegalStateException.ERROR,Iterator.CONSTANT_ILLEGAL_INVOCATION);};function ListIterator(list){this.jsjava_class="jsjava.util.ListIterator";}ListIterator.prototype=new Iterator();ListIterator.prototype.constructor=ListIterator;ListIterator.CONSTANT_ILLEGAL_INVOCATION="This is an interface method and you should use the concrete method";ListIterator.prototype.add=function(o){throw new IllegalStateException(IllegalStateException.ERROR,ListIterator.CONSTANT_ILLEGAL_INVOCATION);};ListIterator.prototype.hasNext=function(){throw new IllegalStateException(IllegalStateException.ERROR,ListIterator.CONSTANT_ILLEGAL_INVOCATION);};ListIterator.prototype.hasPrevious=function(){throw new IllegalStateException(IllegalStateException.ERROR,ListIterator.CONSTANT_ILLEGAL_INVOCATION);};ListIterator.prototype.next=function(){throw new IllegalStateException(IllegalStateException.ERROR,ListIterator.CONSTANT_ILLEGAL_INVOCATION);};ListIterator.prototype.nextIndex=function(){throw new IllegalStateException(IllegalStateException.ERROR,ListIterator.CONSTANT_ILLEGAL_INVOCATION);};ListIterator.prototype.previous=function(){throw new IllegalStateException(IllegalStateException.ERROR,ListIterator.CONSTANT_ILLEGAL_INVOCATION);};ListIterator.prototype.previousIndex=function(){throw new IllegalStateException(IllegalStateException.ERROR,ListIterator.CONSTANT_ILLEGAL_INVOCATION);};ListIterator.prototype.remove=function(index){throw new IllegalStateException(IllegalStateException.ERROR,ListIterator.CONSTANT_ILLEGAL_INVOCATION);};ListIterator.prototype.set=function(o){throw new IllegalStateException(IllegalStateException.ERROR,ListIterator.CONSTANT_ILLEGAL_INVOCATION);};function Locale(language,country,variant){this.jsjava_class="jsjava.util.Locale";this.language=language;this.country=country;this.variant=variant;this.displayLanguage="";this.displayCountry="";this.displayVariant="";}Locale.locales=[["ar","Arabic","","","",""],["ar","Arabic","AE","United Arab Emirates","",""],["ar","Arabic","BH","Bahrain","",""],["ar","Arabic","DZ","Algeria","",""],["ar","Arabic","EG","Egypt","",""],["ar","Arabic","IQ","Iraq","",""],["ar","Arabic","JO","Jordan","",""],["ar","Arabic","KW","Kuwait","",""],["ar","Arabic","LB","Lebanon","",""],["ar","Arabic","LY","Libya","",""],["ar","Arabic","MA","Morocco","",""],["ar","Arabic","OM","Oman","",""],["ar","Arabic","QA","Qatar","",""],["ar","Arabic","SA","Saudi Arabia","",""],["ar","Arabic","SD","Sudan","",""],["ar","Arabic","SY","Syria","",""],["ar","Arabic","TN","Tunisia","",""],["ar","Arabic","YE","Yemen","",""],["hi","Hindi","IN","India","",""],["iw","Hebrew","","","",""],["iw","Hebrew","IL","Israel","",""],["ja","Japanese","","","",""],["ja","Japanese","JP","Japan","",""],["ko","Korean","","","",""],["ko","Korean","KR","South Korea","",""],["th","Thai","","","",""],["th","Thai","TH","Thailand","",""],["th","Thai","TH","Thailand","TH","TH"],["zh","Chinese","","","",""],["zh","Chinese","CN","China","",""],["zh","Chinese","HK","Hong Kong","",""],["zh","Chinese","TW","Taiwan","",""],["be","Byelorussian","","","",""],["be","Byelorussian","BY","Belarus","",""],["bg","Bulgarian","","","",""],["bg","Bulgarian","BG","Bulgaria","",""],["ca","Catalan","","","",""],["ca","Catalan","ES","Spain","",""],["cs","Czech","","","",""],["cs","Czech","CZ","Czech Republic","",""],["da","Danish","","","",""],["da","Danish","DK","Denmark","",""],["de","German","","","",""],["de","German","AT","Austria","",""],["de","German","CH","Switzerland","",""],["de","German","DE","Germany","",""],["de","German","LU","Luxembourg","",""],["el","Greek","","","",""],["el","Greek","GR","Greece","",""],["en","English","AU","Australia","",""],["en","English","CA","Canada","",""],["en","English","GB","United Kingdom","",""],["en","English","IE","Ireland","",""],["en","English","IN","India","",""],["en","English","NZ","New Zealand","",""],["en","English","ZA","South Africa","",""],["es","Spanish","","","",""],["es","Spanish","AR","Argentina","",""],["es","Spanish","BO","Bolivia","",""],["es","Spanish","CL","Chile","",""],["es","Spanish","CO","Colombia","",""],["es","Spanish","CR","Costa Rica","",""],["es","Spanish","DO","Dominican Republic","",""],["es","Spanish","EC","Ecuador","",""],["es","Spanish","ES","Spain","",""],["es","Spanish","GT","Guatemala","",""],["es","Spanish","HN","Honduras","",""],["es","Spanish","MX","Mexico","",""],["es","Spanish","NI","Nicaragua","",""],["es","Spanish","PA","Panama","",""],["es","Spanish","PE","Peru","",""],["es","Spanish","PR","Puerto Rico","",""],["es","Spanish","PY","Paraguay","",""],["es","Spanish","SV","El Salvador","",""],["es","Spanish","UY","Uruguay","",""],["es","Spanish","VE","Venezuela","",""],["et","Estonian","","","",""],["et","Estonian","EE","Estonia","",""],["fi","Finnish","","","",""],["fi","Finnish","FI","Finland","",""],["fr","French","","","",""],["fr","French","BE","Belgium","",""],["fr","French","CA","Canada","",""],["fr","French","CH","Switzerland","",""],["fr","French","FR","France","",""],["fr","French","LU","Luxembourg","",""],["hr","Croatian","","","",""],["hr","Croatian","HR","Croatia","",""],["hu","Hungarian","","","",""],["hu","Hungarian","HU","Hungary","",""],["is","Icelandic","","","",""],["is","Icelandic","IS","Iceland","",""],["it","Italian","","","",""],["it","Italian","CH","Switzerland","",""],["it","Italian","IT","Italy","",""],["lt","Lithuanian","","","",""],["lt","Lithuanian","LT","Lithuania","",""],["lv","Latvian (Lettish)","","","",""],["lv","Latvian (Lettish)","LV","Latvia","",""],["mk","Macedonian","","","",""],["mk","Macedonian","MK","Macedonia","",""],["nl","Dutch","","","",""],["nl","Dutch","BE","Belgium","",""],["nl","Dutch","NL","Netherlands","",""],["no","Norwegian","","","",""],["no","Norwegian","NO","Norway","",""],["no","Norwegian","NO","Norway","NY","Nynorsk"],["pl","Polish","","","",""],["pl","Polish","PL","Poland","",""],["pt","Portuguese","","","",""],["pt","Portuguese","BR","Brazil","",""],["pt","Portuguese","PT","Portugal","",""],["ro","Romanian","","","",""],["ro","Romanian","RO","Romania","",""],["ru","Russian","","","",""],["ru","Russian","RU","Russia","",""],["sh","Serbo-Croatian","","","",""],["sh","Serbo-Croatian","YU","Yugoslavia","",""],["sk","Slovak","","","",""],["sk","Slovak","SK","Slovakia","",""],["sl","Slovenian","","","",""],["sl","Slovenian","SI","Slovenia","",""],["sq","Albanian","","","",""],["sq","Albanian","AL","Albania","",""],["sr","Serbian","","","",""],["sr","Serbian","YU","Yugoslavia","",""],["sv","Swedish","","","",""],["sv","Swedish","SE","Sweden","",""],["tr","Turkish","","","",""],["tr","Turkish","TR","Turkey","",""],["uk","Ukrainian","","","",""],["uk","Ukrainian","UA","Ukraine","",""],["en","English","","","",""],["en","English","US","United States","",""]];Locale.getAvailableLocales=function(){var length=Locale.locales.length;var larr=new Array(length);for(var i=0;i<length;i++){var arr=Locale.locales[i];var locale=new Locale(arr[0],arr[2],arr[4]);locale.displayLanguage=arr[1];locale.displayCountry=arr[3];locale.displayVariant=arr[5];larr[i]=locale;}return larr;};Locale.prototype.getCountry=function(){return this.country;};Locale.prototype.getDisplayCountry=function(){return this.displayCountry;};Locale.prototype.getLanguage=function(){return this.language;};Locale.prototype.getDisplayLanguage=function(){return this.displayLanguage;};Locale.prototype.getVariant=function(){return this.variant;};Locale.prototype.getDisplayVariant=function(){return this.displayVariant;};Locale.prototype.toString=function(){var str="";var language=this.language;if(language!=""){str+=language;}var country=this.country;if(country!=""){str+="-"+country;}return str;};Locale.prototype.equals=function(o){if(!o){return false;}if(o.jsjava_class&&o.jsjava_class=="jsjava.util.Locale"){if(this.language==o.language&&this.country==o.country&&this.variant==o.variant){return true;}}return false;};NoSuchElementException.prototype=new Error();NoSuchElementException.prototype.constructor=NoSuchElementException;NoSuchElementException.ERROR=0;function NoSuchElementException(code,message){this.jsjava_class="jsjava.util.NoSuchElementException";this.code=code;this.message=message;this.name="jsjava.util.NoSuchElementException";}function StringTokenizer(str,delim){this.jsjava_class="jsjava.util.StringTokenizer";this.str=str;this.delim=delim;this.elements=str.split(delim);this.size=0;if(this.elements){this.size=this.elements.length;}this.nextIndex=0;}StringTokenizer.prototype=new Enumeration();StringTokenizer.prototype.constructor=StringTokenizer;StringTokenizer.prototype.countTokens=function(){return this.size;};StringTokenizer.prototype.hasMoreElements=function(){return this.nextIndex<this.size;};StringTokenizer.prototype.hasMoreTokens=function(){return this.nextIndex<this.size;};StringTokenizer.prototype.nextElement=function(){return this.elements[this.nextIndex++];};StringTokenizer.prototype.nextToken=function(){return this.elements[this.nextIndex++];};StringTokenizer.prototype.nextToken=function(delim){return this.str.split(delim)[this.nextIndex];};function Timer(){this.jsjava_class="jsjava.util.Timer";this.innerTimer=null;this.task=null;this.date=null;this.period=null;this.task2=null;}Timer.prototype.cancel=function(){clearInterval(this.innerTimer);};Timer.prototype.setInstance=function(instanceName){this.instanceName=instanceName;};Timer.prototype.scheduleOnce=function(task,date){this.task=taskthis.date=date;var currDate=new Date();var currDateTime=currDate.getTime();var dateTime=date.getTime();var diffTime=dateTime-currDateTime;if(diffTime>=0){this.innerTimer=setTimeout("eval("+this.instanceName+".task.run())",diffTime);}};Timer.prototype.scheduleRepeat=function(task,period,delay){this.task2=taskthis.period=period;var evalStr="eval("+this.instanceName+".task2.run())";if(!delay||delay==0){eval(this.instanceName+".task2.run()");}else{eval(this.instanceName+".task2.run()");}this.innerTimer=setInterval(evalStr,period);};function TimerTask(operation,timer){this.jsjava_class="jsjava.util.TimerTask";this.operation=operation;this.timer=timer;}TimerTask.prototype.cancel=function(){this.timer.cancel();};TimerTask.prototype.run=function(){eval(this.operation+"()");};TimerTask.prototype.scheduledExecutionTime=function(){};function Format(){this.jsjava_class="jsjava.text.Format";}function DateFormat(){this.jsjava_class="jsjava.text.DateFormat";}DateFormat.prototype=new Format();DateFormat.prototype.constructor=DateFormat;DateFormat.zh_cn_month2=["01","02","03","04","05","06","07","08","09","10","11","12"];DateFormat.zh_cn_month3=["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708",];DateFormat.zh_cn_month4=["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708",];DateFormat.us_en_month4=["Janu","Febr","Marc","Apri","May","Juhn","July","Augu","Sept","Octo","Nove","Dece"];DateFormat.us_en_month3=["Jan","Feb","Mar","Apr","May","Juh","Jul","Aug","Sep","Oct","Nov","Dec"];DateFormat.us_en_month2=["01","02","03","04","05","06","07","08","09","10","11","12"];DateFormat.zh_cn_week=["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"];DateFormat.zh_cn_am="\u4e0b\u5348";DateFormat.zh_cn_pm="\u4e0a\u5348";DateFormat.language=(navigator.userLanguage==undefined?navigator.language:navigator.userLanguage).replace("-","_").toLowerCase();DateFormat.prototype.format=function(date){var year4=date.getFullYear();var year2=year4.toString().substring(2);var pattern=this.pattern;pattern=pattern.replace(/yyyy/,year4);pattern=pattern.replace(/yy/,year2);var month=date.getMonth();pattern=pattern.replace(/MMMM/,eval("DateFormat."+DateFormat.language+"_month4[month]"));pattern=pattern.replace(/MMM/,eval("DateFormat."+DateFormat.language+"_month3[month]"));pattern=pattern.replace(/MM/,eval("DateFormat."+DateFormat.language+"_month2[month]"));var dayOfMonth=date.getDate();var dayOfMonth2=dayOfMonth;var dayOfMonthLength=dayOfMonth.toString().length;if(dayOfMonthLength==1){dayOfMonth2="0"+dayOfMonth;}pattern=pattern.replace(/dd/,dayOfMonth2);pattern=pattern.replace(/d/,dayOfMonth);var hours=date.getHours();var hours2=hours;var hoursLength=hours.toString().length;if(hoursLength==1){hours2="0"+hours;}pattern=pattern.replace(/HH/,hours2);pattern=pattern.replace(/H/,hours);var minutes=date.getMinutes();var minutes2=minutes;var minutesLength=minutes.toString().length;if(minutesLength==1){minutes2="0"+minutes;}pattern=pattern.replace(/mm/,minutes2);pattern=pattern.replace(/m/,minutes);var seconds=date.getSeconds();var seconds2=seconds;var secondsLength=seconds.toString().length;if(secondsLength==1){seconds2="0"+seconds;}pattern=pattern.replace(/ss/,seconds2);pattern=pattern.replace(/s/,seconds);var milliSeconds=date.getMilliseconds();pattern=pattern.replace(/S+/,milliSeconds);var day=date.getDay();pattern=pattern.replace(/E+/,eval("DateFormat."+DateFormat.language+"_week[day]"));if(hours>12){pattern=pattern.replace(/a+/,eval("DateFormat."+DateFormat.language+"_am"));}else{pattern=pattern.replace(/a+/,eval("DateFormat."+DateFormat.language+"_pm"));}var kHours=hours;if(kHours==0){kHours=24;}var kHours2=kHours;var kHoursLength=kHours.toString().length;if(kHoursLength==1){kHours2="0"+kHours;}pattern=pattern.replace(/kk/,kHours2);pattern=pattern.replace(/k/,kHours);var KHours=hours;if(hours>11){KHours=hours-12;}var KHours2=KHours;var KHoursLength=KHours.toString().length;if(KHoursLength==1){KHours2="0"+KHours;}pattern=pattern.replace(/KK/,KHours2);pattern=pattern.replace(/K/,KHours);var hHours=KHours;if(hHours==0){hHours=12;}var hHours2=hHours;var hHoursLength=hHours.toString().length;if(KHoursLength==1){hHours2="0"+hHours;}pattern=pattern.replace(/hh/,hHours2);pattern=pattern.replace(/h/,hHours);return pattern;};function SimpleDateFormat(){this.jsjava_class="jsjava.text.SimpleDateFormat";}SimpleDateFormat.prototype=new DateFormat();SimpleDateFormat.prototype.constructor=SimpleDateFormat;SimpleDateFormat.prototype.applyPattern=function(pattern){this.pattern=pattern;};function NumberFormat(){this.jsjava_class="jsjava.text.NumberFormat";}NumberFormat.prototype=new Format();NumberFormat.prototype.constructor=NumberFormat;NumberFormat.prototype.format=function(number){if(isNaN(number)){throw new IllegalArgumentException(IllegalArgumentException.ERROR,"The argument must be a number");}var pattern=this.pattern;if(pattern==""){return number;}var strNum=new String(number);var numNum=parseFloat(number);var isNegative=false;if(numNum<0){isNegative=true;}if(isNegative){strNum=strNum.substring(1,strNum.length);numNum=-numNum;}var ePos=pattern.indexOf("E");var pPos=pattern.indexOf("%");if(ePos!=-1&&pPos!=-1){throw new IllegalArgumentException(IllegalArgumentException.ERROR,"Malformed exponential pattern : E and % can not be existed at the same time");}if(ePos!=-1){if(ePos==pattern.length-1){throw new IllegalArgumentException(IllegalArgumentException.ERROR,"Malformed exponential pattern "+this.pattern);}beStr=pattern.substring(0,ePos);aeStr=pattern.substring(ePos+1);var dPos=beStr.indexOf(".");var dPosOfNum=strNum.indexOf(".");if(dPos!=-1){if(dPosOfNum==-1){dPosOfNum=strNum.length-1;}var strNumBuffer=new StringBuffer(strNum);strNumBuffer.deleteCharAt(dPosOfNum);strNumBuffer.insert(dPos,".");var snbStr=strNumBuffer.getValue();var adStrLength=beStr.length-dPos;var snbFixed=new Number(parseFloat(snbStr)).toFixed(adStrLength-1);var aeLabel=dPosOfNum-dPos;if(isNegative){return "-"+snbFixed+"e"+(aeLabel);}else{return snbFixed+"e"+(aeLabel);}}else{if(dPosOfNum==-1){dPosOfNum=strNum.length-1;}var strNumBuffer=new StringBuffer(strNum);strNumBuffer.deleteCharAt(dPosOfNum);strNumBuffer.insert(beStr.length,".");var snbStr=strNumBuffer.getValue();var adStrLength=beStr.length-beStr.length;var snbFixed=-1;if(adStrLength==0){snbFixed=new Number(parseFloat(snbStr)).toFixed();}else{snbFixed=new Number(parseFloat(snbStr)).toFixed(adStrLength-1);}var aeLabel=dPosOfNum-beStr.length;if(isNegative){return "-"+snbFixed+"e"+(aeLabel);}else{return snbFixed+"e"+(aeLabel);}}}if(pPos!=-1){if(pPos!=pattern.length-1){throw new IllegalArgumentException(IllegalArgumentException.ERROR,"Malformed exponential pattern "+this.pattern);}pattern=pattern.substring(0,pattern.length-1);numNum=parseFloat(number)*100;strNum=new String(numNum);if(isNegative){strNum=strNum.substring(1,strNum.length);numNum=-numNum;}}var dPos=pattern.indexOf(".");var dPosOfNum=strNum.indexOf(".");var result="";if(dPos!=-1){if(dPosOfNum==-1){dPosOfNum=strNum.length-1;}var adStrLength=pattern.length-dPos;var snbFixed=new Number(parseFloat(strNum)).toFixed(adStrLength-1);if(isNegative){result="-"+snbFixed;}else{result=snbFixed;}}else{if(dPosOfNum==-1){dPosOfNum=strNum.length-1;}var snbFixed=new Number(parseFloat(strNum)).toFixed();if(isNegative){result="-"+snbFixed;}else{result=snbFixed;}}if(pPos!=-1){result+="%";}return result;};function DecimalFormat(){this.jsjava_class="jsjava.text.DecimalFormat";}DecimalFormat.prototype=new NumberFormat();DecimalFormat.prototype.constructor=DecimalFormat;DecimalFormat.SPECIAL_CHARS=["0",".","-",",","E","%","\u00A4","\u2030"];DecimalFormat.prototype.applyPattern=function(pattern){if(pattern==undefined){pattern="";}function contains(arr,char){for(var i=0;i<arr.length;i++){if(arr[i]==char){return true;}}return false;}for(var i=0;i<pattern.length;i++){if(!contains(DecimalFormat.SPECIAL_CHARS,pattern.charAt(i))){throw new IllegalArgumentException(IllegalArgumentException.ERROR,"Malformed pattern "+pattern);}}this.pattern=pattern;};function StringCharacterIterator(str){this.jsjava_class="jsjava.text.StringCharacterIterator";this.str=str;if(str==null){this.str="";}this.list=new ArrayList();var length=str.length;for(var i=0;i<length;i++){this.list.add(str.charAt(i));}this.nextIndex=0;this.prevIndex=this.list.getSize()-1;this.currentIndex=0;}StringCharacterIterator.prototype.hasMore=function(){if(this.nextIndex==this.list.getSize()+1||this.prevIndex==-2){return false;}return true;};StringCharacterIterator.prototype.current=function(){return this.list.get(this.currentIndex);};StringCharacterIterator.prototype.first=function(){this.nextIndex=1;this.currentIndex=this.nextIndex-1;return this.list.get(0);};StringCharacterIterator.prototype.last=function(){this.prevIndex=this.list.getSize()-2;this.currentIndex=this.prevIndex+1;return this.list.get(this.list.getSize()-1);};StringCharacterIterator.prototype.next=function(){this.currentIndex=this.nextIndex;return this.list.get(this.nextIndex++);};StringCharacterIterator.prototype.previous=function(){this.currentIndex=this.prevIndex;return this.list.get(this.prevIndex--);};StringCharacterIterator.prototype.getBeginIndex=function(){return 0;};StringCharacterIterator.prototype.getEndIndex=function(){return this.list.getSize()-1;};StringCharacterIterator.prototype.getIndex=function(){return this.currentIndex;};StringCharacterIterator.prototype.setIndex=function(index){this.currentIndex=index;this.nextIndex=index+1;this.prevIndex=index-1;};StringCharacterIterator.prototype.setText=function(text){this.str=text;if(text==null){this.str="";}this.list=new ArrayList();var length=text.length;for(var i=0;i<length;i++){this.list.add(text.charAt(i));}};function OutputStream(outputDevice){this.jsjava_class="jsjava.io.OutputStream";this.outputDevice=outputDevice;}function PrintStream(outputStream){this.jsjava_class="jsjava.io.PrintStream";this.outputStream=outputStream;}PrintStream.prototype=new OutputStream();PrintStream.prototype.constructor=PrintStream;PrintStream.prototype.println=function(str){this.outputStream.outputDevice.println(str);};PrintStream.prototype.print=function(str){this.outputStream.outputDevice.print(str);};function HTMLTextOutputStream(outputStream,append){this.jsjava_class="jsjava.io.HTMLTextOutputStream";this.outputStream=outputStream;this.append=false;if(append&&append==true){this.append=true;}}HTMLTextOutputStream.prototype=new OutputStream();HTMLTextOutputStream.prototype.constructor=HTMLTextOutputStream;HTMLTextOutputStream.prototype.println=function(str){this.outputStream.outputDevice.println(str,this.append);};HTMLTextOutputStream.prototype.print=function(str){this.outputStream.outputDevice.print(str,this.append);};function OutputDevice(){this.jsjava_class="jsjava.io.OutputDevice";}OutputDevice.CONSTANT_ILLEGAL_INVOCATION="This is an interface method and you should use the concrete method";OutputDevice.prototype.println=function(str){throw new IllegalStateException(IllegalStateException.ERROR,OutputDevice.CONSTANT_ILLEGAL_INVOCATION);};OutputDevice.prototype.print=function(str){throw new IllegalStateException(IllegalStateException.ERROR,OutputDevice.CONSTANT_ILLEGAL_INVOCATION);};function HTMLTextDevice(id){this.jsjava_class="jsjava.io.HTMLTextDevice";var textObj=document.getElementById(id);if(textObj){this.textObj=textObj;}else{throw new IOException(IOException.ERROR,"Text device not found!");}}HTMLTextDevice.prototype=new OutputDevice();HTMLTextDevice.prototype.constructor=HTMLTextDevice;HTMLTextDevice.prototype.println=function(str,append){if(this.textObj.value!=""){this.textObj.value+="\n";}if(append&&append==true){this.textObj.value+=str;}else{this.textObj.value=str;}};HTMLTextDevice.prototype.print=function(str,append){if(append&&append==true){this.textObj.value+=str;}else{this.textObj.value=str;}};function Console(win,title){this.jsjava_class="jsjava.io.Console";this.win=win;this.state=Console.STATE_UNSTARTED;this.consoleWin=null;this.title=title;if(!title||title==""||title==null){this.title="Javascript Console";}}Console.prototype=new OutputDevice();Console.prototype.constructor=Console;Console.STATE_UNSTARTED=0;Console.STATE_RUNNING=1;Console.STATE_FINISHED=2;var jsjava_console_instance;Console.open=function(title){jsjava_console_instance=new Console(window,title);System.console=jsjava_console_instance;System.out=new PrintStream(new OutputStream(jsjava_console_instance));System.err=new PrintStream(new OutputStream(jsjava_console_instance));jsjava_console_instance.start();};Console.prototype.start=function(){this.state=Console.STATE_RUNNING;var consoleWinWidth=window.screen.width/1.5;var consoleWinHeight=window.screen.height/2;this.consoleWin=window.open("about:blank","_blank","resizable=yes,menubar=no,scrollbars=yes,toolbar=no,menubar=no,width="+consoleWinWidth+",height="+consoleWinHeight);var cwinContent="<html>";cwinContent+="<head><script>";cwinContent+="var isIE=navigator.userAgent.indexOf('MSIE')!=-1;";cwinContent+="function deal_jsjava_console_event(e){if(isIE){if(event.keyCode==67&&event.ctrlKey){window.close();};}else{if(e.keyCode==67&&e.ctrlKey){window.close();}}}";cwinContent+="document.onkeydown=deal_jsjava_console_event;";cwinContent+="</script></head>";if(!BrowserUtils.isIE()){this.consoleWin.document.open();}cwinContent+="<body leftmargin='2' topmargin='2' bgcolor='#000000' text='#FFFFFF' style='font-size:11pt;'></body></html>";this.consoleWin.document.write(cwinContent);this.consoleWin.document.title=this.title;if(!BrowserUtils.isIE()){this.consoleWin.document.close();}this.println("Javascript Console started");};Console.prototype.stop=function(){this.state=Console.STATE_FINISHED;this.println("Javascript Console stopped");};Console.prototype.close=function(){if(this.state!==Console.STATE_FINISHED){this.stop();}this.consoleWin.close();};Console.prototype.println=function(msg){var printStr=this.consoleTimeText(new Date())+"&nbsp;&nbsp;"+msg+"<br>";if(BrowserUtils.isIE()){this.consoleWin.document.write(printStr);}else{this.consoleWin.document.body.innerHTML+=printStr;}};Console.prototype.print=function(msg){var printStr=this.consoleTimeText(new Date())+"&nbsp;&nbsp;"+msg;if(BrowserUtils.isIE()){this.consoleWin.document.write(printStr);}else{this.consoleWin.document.body.innerHTML+=printStr;}};Console.prototype.consoleTimeText=function(date){var df=new SimpleDateFormat();df.applyPattern("yyyy-MM-dd hh:mm:ss");return df.format(date);};IOException.prototype=new Error();IOException.prototype.constructor=IOException;IOException.ERROR=0;function IOException(code,message){this.jsjava_class="jsjava.io.IOException";this.code=code;this.message=message;this.name="jsjava.io.IOException";}function AWTEvent(source,id){this.jsjava_class="jsjava.awt.AWTEvent";}AWTEvent.prototype=new EventObject();AWTEvent.prototype.constructor=AWTEvent;AWTEvent.prototype.getID=function(){return this.id;};function ActionEvent(source,id,command,modifiers){this.jsjava_class="jsjava.awt.event.ActionEvent";this.source=source;this.id=id;this.command=command;this.modifiers=modifiers;}ActionEvent.prototype=new AWTEvent();ActionEvent.prototype.constructor=ActionEvent;ActionEvent.prototype.getActionCommand=function(){return this.command;};ActionEvent.prototype.getModifiers=function(){return this.modifiers;};function MenuItem(label,shortCut){this.jsjava_class="jsjava.awt.MenuItem";this.label=label;this.shortCut=shortCut;this.listeners=new ArrayList();}MenuItem.prototype.addActionListener=function(listener){this.listeners.add(listener);};MenuItem.prototype.deleteShortcut=function(s){if(this.shortcut.equals(s)){this.shortcut=null;}};MenuItem.prototype.getActionCommand=function(){return this.command;};MenuItem.prototype.getActionListeners=function(){return this.label;};MenuItem.prototype.getLabel=function(){return this.label;};MenuItem.prototype.getListeners=function(listenerType){return this.listeners;};MenuItem.prototype.getName=function(){return this.name;};MenuItem.prototype.getShortcut=function(){return this.shortCut;};MenuItem.prototype.processActionEvent=function(actionEvent){for(var i=0;i<this.listeners.size();i++){var listener=this.listeners.get(i);listener.actionPerformed(actionEvent);}};MenuItem.prototype.removeActionListener=function(listener){this.listeners.remove(listener);};MenuItem.prototype.isEnabled=function(){return this.enabled;};MenuItem.prototype.setActionCommand=function(command){this.command=command;};MenuItem.prototype.setEnabled=function(enabled){this.enabled=enabled;};MenuItem.prototype.setLabel=function(label){this.label=label;};MenuItem.prototype.setName=function(name){this.name=name;};MenuItem.prototype.setShortcut=function(shortCut){if(shortCut instanceof MenuShortcut){this.shortCut=shortCut;}};function Menu(label){this.jsjava_class="jsjava.awt.Menu";this.label=label;this.items=new ArrayList();this.listeners=new ArrayList();}Menu.prototype=new MenuItem();Menu.prototype.constructor=Menu;Menu.prototype.addActionListener=function(listener){this.listeners.add(listener);};Menu.prototype.getActionListeners=function(){return this.label;};Menu.prototype.add=function(item){if(item instanceof MenuItem){this.items.add(item);return;}if(item instanceof String){var im=new MenuItem(item);this.items.add(im);return;}throw new IllegalArgumentException(IllegalArgumentException.ERROR,"Invalid arguments");};Menu.prototype.deleteShortcut=function(s){var nitems = this.getItemCount();for (var i = 0 ; i < nitems ; i++) {this.getItem(i).deleteShortcut(s);}};Menu.prototype.getItem=function(index){return this.items.get(index);};Menu.prototype.getItemCount=function(){return this.items.size();};Menu.prototype.getListeners=function(listenerType){return this.listeners;};Menu.prototype.insert=function(item,index){if(item instanceof MenuItem){this.items.addIndexOf(index,item);return;}if(item instanceof String){var im=new MenuItem(item);this.items.addIndexOf(index,im);return;}throw new IllegalArgumentException(IllegalArgumentException.ERROR,"Invalid arguments");};Menu.prototype.processActionEvent=function(actionEvent){for(var i=0;i<this.listeners.size();i++){var listener=this.listeners.get(i);listener.actionPerformed(actionEvent);}};Menu.prototype.remove=function(item){this.items.remove(item);};Menu.prototype.removeActionListener=function(listener){this.listeners.remove(listener);};Menu.prototype.removeAll=function(){this.items.removeAll();};Menu.prototype.removeIndexOf=function(index){this.items.removeIndexOf(index);};Menu.prototype.shortcuts=function(){var _shortcuts=new Vector();var nitems = this.getItemCount();for(var i=0;i<nitems;i++){var item=this.getItem(i);if(item instanceof Menu){var ss=item.shortcuts();while(ss.hasMoreElements()){var s=ss.nextElement();_shortcuts.addElement(s);}}else if(item instanceof MenuItem){var s=item.getShortcut();if(s!=undefined&&s!=null){_shortcuts.addElement(s);}}else{}}return _shortcuts.elements();};function ActionListener(){this.jsjava_class="jsjava.awt.event.ActionListener";}ActionListener.CONSTANT_ILLEGAL_INVOCATION="This is an interface method and you should use the concrete method";ActionListener.prototype.actionPerformed=function(actionEvent){throw new IllegalStateException(IllegalStateException.ERROR,ActionListener.CONSTANT_ILLEGAL_INVOCATION);};function Color(r, g, b, a){this.jsjava_class="jsjava.awt.Color";r=init(r);g=init(g);b=init(b);a=init(a);this.value = ((a & 0xFF) << 24) |((r & 0xFF) << 16) |((g & 0xFF) << 8)  |((b & 0xFF) << 0);function init(c){if(c==undefined||isNaN(c))c=255;c=parseInt(c);if(c>255){c=255;}return c;}}Color.FACTOR=0.7;Color.white= new Color(255, 255, 255);Color.WHITE = Color.white;Color.lightGray = new Color(192, 192, 192);Color.LIGHT_GRAY = Color.lightGray;Color.gray = new Color(128, 128, 128);Color.GRAY = Color.gray;Color.darkGray = new Color(64, 64, 64);Color.DARK_GRAY = Color.darkGray;Color.black = new Color(0, 0, 0);Color.BLACK = Color.black;Color.red = new Color(255, 0, 0);Color.RED = Color.red;Color.pink = new Color(255, 175, 175);Color.PINK = Color.pink;Color.orange = new Color(255, 200, 0);Color.ORANGE = Color.orange;Color.yellow = new Color(255, 255, 0);Color.YELLOW = Color.yellow;Color.green = new Color(0, 255, 0);Color.GREEN = Color.green;Color.magenta = new Color(255, 0, 255);Color.MAGENTA = Color.magenta;Color.cyan = new Color(0, 255, 255);Color.CYAN = Color.cyan;Color.blue = new Color(0, 0, 255);Color.BLUE = Color.blue;Color.prototype.getRGB=function(){return this.value;};Color.prototype.getRed=function(){return (this.getRGB() >> 16) & 0xFF;};Color.prototype.getGreen=function(){return (this.getRGB() >> 8) & 0xFF;};Color.prototype.getBlue=function(){return (this.getRGB() >> 0) & 0xFF;};Color.prototype.getAlpha=function(){return (this.getRGB() >> 24) & 0xFF;};Color.prototype.brighter=function(){var r = this.getRed();var g = this.getGreen();var b = this.getBlue();var i = parseInt(1.0/(1.0-Color.FACTOR));if ( r == 0 && g == 0 && b == 0) {return new Color(i, i, i);}if ( r > 0 && r < i ) r = i;if ( g > 0 && g < i ) g = i;if ( b > 0 && b < i ) b = i;return new Color(Math.min(parseInt(r/Color.FACTOR), 255),Math.min(parseInt(g/Color.FACTOR), 255),Math.min(parseInt(b/Color.FACTOR), 255));};Color.prototype.darker=function(){return new Color(Math.max(parseInt(this.getRed()*Color.FACTOR), 0),Math.max(parseInt(this.getGreen()*Color.FACTOR), 0),Math.max(parseInt(this.getBlue()*Color.FACTOR), 0));};Color.prototype.toHexValue=function(){var redValue=this.getRed();var greenValue=this.getGreen();var blueValue=this.getBlue();var redHexValue=Integer.toHexString(redValue);if(redHexValue.length==1){redHexValue="0"+redHexValue;}var greenHexValue=Integer.toHexString(greenValue);if(greenHexValue.length==1){greenHexValue="0"+greenHexValue;}var blueHexValue=Integer.toHexString(blueValue);if(blueHexValue.length==1){blueHexValue="0"+blueHexValue;}var hexValue=redHexValue+greenHexValue+blueHexValue;return hexValue;};Color.prototype.toString=function(){return "[red="+this.getRed()+",green="+this.getGreen()+",blue="+this.getBlue()+",alpha="+this.getAlpha()+"]";};function Font(name,style,size){this.jsjava_class="jsjava.awt.Font";this.name=name;this.style=style;this.size=size;}Font.PLAIN=0;Font.BOLD=1;Font.ITALIC=2;Font.prototype.getFamily=function(){return this.name;};Font.prototype.getFontName=function(){return this.name;};Font.prototype.getStyle=function(){return this.style;};Font.prototype.getSize=function(){return this.size;};function Insets(top,left,bottom,right){this.jsjava_class="jsjava.awt.Insets";this.top=top;this.left=left;this.bottom=bottom;this.right=right;}Insets.prototype.getTop=function(){return this.top;};Insets.prototype.getLeft=function(){return this.left;};Insets.prototype.getBottom=function(){return this.bottom;};Insets.prototype.getRight=function(){return this.right;};function MenuBar(){this.jsjava_class="jsjava.awt.MenuBar";this.menus=new ArrayList();}MenuBar.prototype.add=function(menu){if(menu instanceof Menu){this.menus.add(menu);return;}throw new IllegalArgumentException(IllegalArgumentException.ERROR,"Invalid arguments");};MenuBar.prototype.deleteShortcut=function(shortCut){var nmenus = this.getMenuCount();for (var i = 0 ; i < nmenus ; i++) {this.getMenu(i).deleteShortcut(s);}};MenuBar.prototype.getHelpMenu=function(){return this.helpMenu;};MenuBar.prototype.getMenu=function(index){return this.menus.get(index);};MenuBar.prototype.getMenuCount=function(){return this.menus.size();};MenuBar.prototype.getName=function(){return this.name;};MenuBar.prototype.getShortcutMenuItem=function(shortCut){};MenuBar.prototype.remove=function(menu){this.menus.remove(menu);};MenuBar.prototype.removeIndexOf=function(index){this.menus.removeIndexOf(index);};MenuBar.prototype.setHelpMenu=function(menu){this.helpMenu=menu;};MenuBar.prototype.setName=function(name){this.name=name;};MenuBar.prototype.shortcuts=function(){var _shortcuts=new Vector();var nmenus = this.getMenuCount();for (var i = 0 ; i < nmenus ; i++) {var e = this.getMenu(i).shortcuts();while (e.hasMoreElements()) {_shortcuts.addElement(e.nextElement());}}return _shortcuts.elements();};function MenuShortcut(key,useShiftModifier){this.jsjava_class="jsjava.awt.MenuShortcut";this.key=key;this.useShiftModifier=useShiftModifier;}MenuShortcut.prototype.getKey=function(){return this.key;};MenuShortcut.prototype.usesShiftModifier=function(){return this.useShiftModifier;};MenuShortcut.prototype.toString=function(){return this.key;};function Point(x,y){this.jsjava_class="jsjava.awt.Point";this.x=x;this.y=y;}Point.prototype.getX=function(){return this.x;};Point.prototype.getY=function(){return this.y;};Point.prototype.getLocation=function(){return new Point(this.x,this,y);};Point.prototype.setLocation=function(x,y){this.x=x;this.y=y;};Point.prototype.translate=function(dx,dy){this.x+=dx;this.y+=dy;};Point.prototype.toString=function(){return "{x="+this.x+",y="+this.y+"}";};function Rectangle(x,y,width,height){this.jsjava_class="jsjava.awt.Rectangle";this.x=x;this.y=y;this.width=width;this.height=height;}Rectangle.prototype.add=function(newx,newy){var x1 = Math.min(this.x, newx);var x2 = Math.max(this.x + this.width, newx);var y1 = Math.min(this.y, newy);var y2 = Math.max(this.y + this.height, newy);x = x1;y = y1;this.width = x2 - x1;this.height = y2 - y1;};Rectangle.prototype.contains=function(X,Y,W,H){if(W==undefined){W=0;}if(H==undefined){H=0;}var w = this.width;var h = this.height;if ((w | h | W | H) < 0) {return false;}var x = this.x;var y = this.y;if (X < x || Y < y) {return false;}w += x;W += X;if (W <= X) {if (w >= x || W > w) return false;} else {if (w >= x && W > w) return false;}h += y;H += Y;if (H <= Y) {if (h >= y || H > h) return false;} else {if (h >= y && H > h) return false;}return true;};Rectangle.prototype.getHeight=function(){return this.height;};Rectangle.prototype.getWidth=function(){return this.width;};Rectangle.prototype.getX=function(){return this.x;};Rectangle.prototype.getY=function(){return this.y;};Rectangle.prototype.grow=function(h,v){this.x -= h;this.y -= v;this.width += h * 2;this.height += v * 2;};Rectangle.prototype.intersection=function(r){var tx1 = this.x;var ty1 = this.y;var rx1 = r.x;var ry1 = r.y;var tx2 = tx1; tx2 += this.width;var ty2 = ty1; ty2 += this.height;var rx2 = rx1; rx2 += r.width;var ry2 = ry1; ry2 += r.height;if (tx1 < rx1) tx1 = rx1;if (ty1 < ry1) ty1 = ry1;if (tx2 > rx2) tx2 = rx2;if (ty2 > ry2) ty2 = ry2;tx2 -= tx1;ty2 -= ty1;if (tx2 < Integer.MIN_VALUE) tx2 = Integer.MIN_VALUE;if (ty2 < Integer.MIN_VALUE) ty2 = Integer.MIN_VALUE;return new Rectangle(tx1, ty1, tx2, ty2);};Rectangle.prototype.intersects=function(r){var tw = this.width;var th = this.height;var rw = r.width;var rh = r.height;if (rw <= 0 || rh <= 0 || tw <= 0 || th <= 0) {return false;}var tx = this.x;var ty = this.y;var rx = r.x;var ry = r.y;rw += rx;rh += ry;tw += tx;th += ty;return ((rw < rx || rw > tx) &&(rh < ry || rh > ty) &&(tw < tx || tw > rx) &&(th < ty || th > ry));};Rectangle.prototype.isEmpty=function(r){return (this.width <= 0) || (this.height <= 0);};Rectangle.prototype.setBounds=function(x,y,width,height){this.x = x;this.y = y;this.width = width;this.height = height;};Rectangle.prototype.setLocation=function(x,y){this.x = x;this.y = y;};Rectangle.prototype.setSize=function(width,height){this.width=width;this.height=height;};Rectangle.prototype.union=function(r){var x1 = Math.min(this.x, r.x);var x2 = Math.max(this.x + this.width, r.x + r.width);var y1 = Math.min(this.y, r.y);var y2 = Math.max(this.y + this.height, r.y + r.height);return new Rectangle(x1, y1, x2 - x1, y2 - y1);};Rectangle.prototype.toString=function(){return "{x="+this.x+",y="+this.y+",width="+this.width+",height="+this.height+"}";};function TreeNode(){this.jsjava_class="jsjavax.swing.tree.TreeNode";}TreeNode.prototype.children=function(){throw new IllegalStateException(IllegalStateException.ERROR,"This is an interface method and you should use the concrete method");};TreeNode.prototype.getAllowsChildren=function(){throw new IllegalStateException(IllegalStateException.ERROR,"This is an interface method and you should use the concrete method");};TreeNode.prototype.getChildAt=function(childIndex){throw new IllegalStateException(IllegalStateException.ERROR,"This is an interface method and you should use the concrete method");};TreeNode.prototype.getChildCount=function(){throw new IllegalStateException(IllegalStateException.ERROR,"This is an interface method and you should use the concrete method");};TreeNode.prototype.getIndex=function(node){throw new IllegalStateException(IllegalStateException.ERROR,"This is an interface method and you should use the concrete method");};TreeNode.prototype.getParent=function(){throw new IllegalStateException(IllegalStateException.ERROR,"This is an interface method and you should use the concrete method");};TreeNode.prototype.isLeaf=function(){throw new IllegalStateException(IllegalStateException.ERROR,"This is an interface method and you should use the concrete method");};function MutableTreeNode(){this.jsjava_class="jsjavax.swing.tree.MutableTreeNode";}MutableTreeNode.prototype=new TreeNode();MutableTreeNode.prototype.constructor=MutableTreeNode;MutableTreeNode.prototype.insert=function(child,index){throw new IllegalStateException(IllegalStateException.ERROR,"This is an interface method and you should use the concrete method");};MutableTreeNode.prototype.remove=function(index){throw new IllegalStateException(IllegalStateException.ERROR,"This is an interface method and you should use the concrete method");};MutableTreeNode.prototype.remove=function(node){throw new IllegalStateException(IllegalStateException.ERROR,"This is an interface method and you should use the concrete method");};MutableTreeNode.prototype.removeFromParent=function(){throw new IllegalStateException(IllegalStateException.ERROR,"This is an interface method and you should use the concrete method");};MutableTreeNode.prototype.setParent=function(newParent){throw new IllegalStateException(IllegalStateException.ERROR,"This is an interface method and you should use the concrete method");};MutableTreeNode.prototype.setUserObject=function(object){throw new IllegalStateException(IllegalStateException.ERROR,"This is an interface method and you should use the concrete method");};function DefaultMutableTreeNode(userObject,allowsChildren){this.jsjava_class="jsjavax.swing.tree.DefaultMutableTreeNode";this.parent = null;this._children = null;this.allowsChildren = allowsChildren;if(allowsChildren==undefined){this.allowsChildren = false;}this.userObject = userObject;this.children=function(){if (this._children == null) {return new EMPTY_ENUMERATION();} else {return this._children.elements();}};this.getLeafCount=function(){var count = 0;var node;var enumer = new BreadthFirstEnumeration(this);while (enumer.hasMoreElements()) {node = enumer.nextElement();if (node.isLeaf()) {count++;}}if (count < 1) {throw new Error("tree has zero leaves");}return count;};this.breadthFirstEnumeration=function(){return new BreadthFirstEnumeration(this);};this.getDepth=function(){var	last = null;var	enumer = new BreadthFirstEnumeration(this);while (enumer.hasMoreElements()) {last = enumer.nextElement();}if (last == null) {throw new Error ("nodes should be null");}return last.getLevel() - this.getLevel();};this.pathFromAncestorEnumeration=function(ancestor){return new PathBetweenNodesEnumeration(ancestor, this);};this.postorderEnumeration=function(){return new PostorderEnumeration(this);};this.preorderEnumeration=function(){return new PreorderEnumeration(this);};function EMPTY_ENUMERATION(){}EMPTY_ENUMERATION.prototype=new Enumeration();EMPTY_ENUMERATION.prototype.constructor=EMPTY_ENUMERATION;EMPTY_ENUMERATION.prototype.hasMoreElements=function(){return false;};EMPTY_ENUMERATION.prototype.nextElement=function(){throw new NoSuchElementException(NoSuchMethodException.ERROR,"No more elements");};function BreadthFirstEnumeration(rootNode){var v = new Vector(1);v.addElement(rootNode);this.queue = new Queue();this.queue.enqueue(v.elements());}BreadthFirstEnumeration.prototype=new Enumeration();BreadthFirstEnumeration.prototype.constructor=BreadthFirstEnumeration;BreadthFirstEnumeration.prototype.hasMoreElements=function() {return (!this.queue.isEmpty() && this.queue.firstObject().hasMoreElements());};BreadthFirstEnumeration.prototype.nextElement=function() {var	enumer = this.queue.firstObject();var	node = enumer.nextElement();var	children = node.children();if (!enumer.hasMoreElements()) {this.queue.dequeue();}if (children.hasMoreElements()) {this.queue.enqueue(children);}return node;};function PathBetweenNodesEnumeration(ancestor,descendant){if (ancestor == null || descendant == null) {throw new IllegalArgumentException(IllegalArgumentException.ERROR,"argument is null");}var current;this.stack = new Stack();this.stack.push(descendant);current = descendant;while (current != ancestor) {current = current.getParent();if (current == null && descendant != ancestor) {throw new IllegalArgumentException(IllegalArgumentException.ERROR,"node " + ancestor +" is not an ancestor of " + descendant);}this.stack.push(current);}}PathBetweenNodesEnumeration.prototype=new Enumeration();PathBetweenNodesEnumeration.prototype.constructor=PathBetweenNodesEnumeration;PathBetweenNodesEnumeration.prototype.hasMoreElements=function(){return this.stack.size() > 0;};PathBetweenNodesEnumeration.prototype.nextElement=function(){try {return this.stack.pop();} catch (e) {throw new NoSuchElementException(NoSuchElementException.ERROR,"No more elements");}};function PostorderEnumeration(rootNode){this.root = rootNode;this.children = this.root.children();this.subtree = new EMPTY_ENUMERATION();}PostorderEnumeration.prototype.hasMoreElements=function(){return this.root != null;};PostorderEnumeration.prototype.nextElement=function(){var retval;if (this.subtree.hasMoreElements()) {retval = this.subtree.nextElement();} else if (this.children.hasMoreElements()) {this.subtree = new PostorderEnumeration(this.children.nextElement());retval = this.subtree.nextElement();} else {retval = this.root;this.root = null;}return retval;};function PreorderEnumeration(rootNode){var v = new Vector(1);v.addElement(rootNode);this.stack = new Stack();this.stack.push(v.elements());}PreorderEnumeration.prototype=new Enumeration();PreorderEnumeration.prototype.constructor=PreorderEnumeration;PreorderEnumeration.prototype.hasMoreElements=function(){return (!this.stack.empty() && this.stack.peek().hasMoreElements());};PreorderEnumeration.prototype.nextElement=function(){var	enumer = this.stack.peek();var	node = enumer.nextElement();var	children = node.children();if (!enumer.hasMoreElements()) {this.stack.pop();}if (children.hasMoreElements()) {this.stack.push(children);}return node;};function Queue(){var head;var tail;function QNode(object, next) {this.object = object;this.next = next;}this.enqueue=function(anObject) {if (head == null) {head = tail = new QNode(anObject, null);} else {tail.next = new QNode(anObject, null);tail = tail.next;}};this.dequeue=function() {if (head == null) {throw new NoSuchElementException(NoSuchElementException.ERROR,"No more elements");}var retval = head.object;var oldHead = head;head = head.next;if (head == null) {tail = null;} else {oldHead.next = null;}return retval;};this.firstObject=function() {if (head == null) {throw new NoSuchElementException(NoSuchElementException.ERROR,"No more elements");}return head.object;};this.isEmpty=function() {return head == null;};}}DefaultMutableTreeNode.prototype=new MutableTreeNode();DefaultMutableTreeNode.prototype.constructor=DefaultMutableTreeNode;DefaultMutableTreeNode.prototype.add=function(newChild){if(newChild != null && newChild.getParent() == this)this.insert(newChild, this.getChildCount() - 1);elsethis.insert(newChild, this.getChildCount());};DefaultMutableTreeNode.prototype.clone=function(){return null;};DefaultMutableTreeNode.prototype.depthFirstEnumeration=function(){return postorderEnumeration();};DefaultMutableTreeNode.prototype.getAllowsChildren=function(aChild){return this.allowsChildren;};DefaultMutableTreeNode.prototype.getChildAfter=function(aChild){if (aChild == null) {throw new IllegalArgumentException(IllegalArgumentException.ERROR,"argument is null");}var index = this.getIndex(aChild);if (index == -1) {throw new IllegalArgumentException(IllegalArgumentException.ERROR,"node is not a child");}if (index < this.getChildCount() - 1) {return this.getChildAt(index + 1);} else {return null;}};DefaultMutableTreeNode.prototype.getChildAt=function(index){if (this._children == null) {throw new ArrayIndexOutOfBoundsException(ArrayIndexOutOfBoundsException.ERROR,"node has no children");}return this._children.elementAt(index);};DefaultMutableTreeNode.prototype.getChildBefore=function(aChild){if (aChild == null) {throw new IllegalArgumentException(IllegalArgumentException.ERROR,"argument is null");}var index = this.getIndex(aChild);if (index == -1) {throw new IllegalArgumentException(IllegalArgumentException.ERROR,"argument is not a child");}if (index > 0) {return this.getChildAt(index - 1);} else {return null;}};DefaultMutableTreeNode.prototype.getChildCount=function(){if (this._children == null) {return 0;} else {return this._children.size();}};DefaultMutableTreeNode.prototype.getFirstChild=function(){if (getChildCount() == 0) {throw new NoSuchElementException(NoSuchElementException.ERROR,"node has no children");}return this.getChildAt(0);};DefaultMutableTreeNode.prototype.getFirstLeaf=function(){var node = this;while (!node.isLeaf()) {node = node.getFirstChild();}return node;};DefaultMutableTreeNode.prototype.getIndex=function(aChild){if (aChild == null) {throw new IllegalArgumentException(IllegalArgumentException.ERROR,"argument is null");}if (!this.isNodeChild(aChild)) {return -1;}return this._children.indexOf(aChild)};DefaultMutableTreeNode.prototype.getLastChild=function(){if (getChildCount() == 0) {throw new NoSuchElementException(NoSuchElementException.ERROR,"node has no children");}return this.getChildAt(this.getChildCount()-1);};DefaultMutableTreeNode.prototype.getLastLeaf=function(){var node = this;while (!node.isLeaf()) {node = node.getLastChild();}return node;};DefaultMutableTreeNode.prototype.getLevel=function(){var ancestor;var levels = 0;ancestor = this;while((ancestor = ancestor.getParent()) != null){levels++;}return levels;};DefaultMutableTreeNode.prototype.getNextLeaf=function(){var nextSibling;var myParent = this.getParent();if (myParent == null)return null;nextSibling = this.getNextSibling();if (nextSibling != null)return nextSibling.getFirstLeaf();return myParent.getNextLeaf();};DefaultMutableTreeNode.prototype.getNextNode=function(){if (this.etChildCount() == 0) {var nextSibling = this.getNextSibling();if (nextSibling == null) {var aNode = this.getParent();do {if (aNode == null) {return null;}nextSibling = aNode.getNextSibling();if (nextSibling != null) {return nextSibling;}aNode = aNode.getParent();} while(true);} else {return nextSibling;}} else {return this.getChildAt(0);}};DefaultMutableTreeNode.prototype.getNextSibling=function(){var retval;var myParent = this.getParent();if (myParent == null) {retval = null;} else {retval = myParent.getChildAfter(this);}if (retval != null && !this.isNodeSibling(retval)) {throw new Error("child of parent is not a sibling");}return retval;};DefaultMutableTreeNode.prototype.getParent=function(){return this.parent};DefaultMutableTreeNode.prototype.getPath=function(){return this.getPathToRoot(this, 0)};DefaultMutableTreeNode.prototype.getPathToRoot=function(aNode,depth){var retNodes;if(aNode == null) {if(depth == 0)return null;else{retNodes = new Array(depth);}}else {depth++;retNodes = this.getPathToRoot(aNode.getParent(), depth);retNodes[retNodes.length - depth] = aNode;}return retNodes};DefaultMutableTreeNode.prototype.getPreviousLeaf=function(){var previousSibling;var myParent = this.getParent();if (myParent == null)return null;previousSibling = this.getPreviousSibling();if (previousSibling != null)return previousSibling.getLastLeaf();return myParent.getPreviousLeaf();};DefaultMutableTreeNode.prototype.getPreviousNode=function(){var previousSibling;var myParent = this.getParent();if (myParent == null) {return null;}previousSibling = this.getPreviousSibling();if (previousSibling != null) {if (previousSibling.getChildCount() == 0)return previousSibling;else{return previousSibling.getLastLeaf();}} else {return myParent;}};DefaultMutableTreeNode.prototype.getPreviousSibling=function(){var retval;var myParent = this.getParent();if (myParent == null) {retval = null;} else {retval = myParent.getChildBefore(this);}if (retval != null && !this.isNodeSibling(retval)) {throw new Error("child of parent is not a sibling");}return retval;};DefaultMutableTreeNode.prototype.getRoot=function(){var ancestor = this;var previous;do {previous = ancestor;ancestor = ancestor.getParent();} while (ancestor != null);return previous;};DefaultMutableTreeNode.prototype.getSharedAncestor=function(aNode){if (aNode == this) {return this;} else if (aNode == null) {return null;}var	level1, level2, diff;var	node1, node2;level1 = this.getLevel();level2 = aNode.getLevel();if (level2 > level1) {diff = level2 - level1;node1 = aNode;node2 = this;} else {diff = level1 - level2;node1 = this;node2 = aNode;}while (diff > 0) {node1 = node1.getParent();diff--;}do {if (node1 == node2) {return node1;}node1 = node1.getParent();node2 = node2.getParent();} while (node1 != null);if (node1 != null || node2 != null) {throw new Error ("nodes should be null");}return null;};DefaultMutableTreeNode.prototype.getSiblingCount=function(){var myParent = this.getParent();if (myParent == null) {return 1;} else {return myParent.getChildCount();}};DefaultMutableTreeNode.prototype.getUserObject=function(){return this.userObject;};DefaultMutableTreeNode.prototype.getUserObjectPath=function(){var realPath = this.getPath();var retPath = new Array(realPath.length);for(var counter = 0; counter < realPath.length; counter++)retPath[counter] = realPath[counter].getUserObject();return retPath;};DefaultMutableTreeNode.prototype.insert=function(newChild,childIndex){if (!this.allowsChildren) {throw new IllegalStateException(IllegalStateException.ERROR,"node does not allow children");} else if (newChild == null) {throw new IllegalArgumentException(IllegalArgumentException.ERROR,"new child is null");} else if (this.isNodeAncestor(newChild)) {throw new IllegalArgumentException(IllegalArgumentException.ERROR,"new child is an ancestor");}var oldParent = newChild.getParent();if (oldParent != null) {oldParent.remove(newChild);}newChild.setParent(this);if (this._children == null) {this._children = new Vector();}this._children.insertElementAt(newChild, childIndex);};DefaultMutableTreeNode.prototype.isLeaf=function(){return (this.getChildCount() == 0);};DefaultMutableTreeNode.prototype.isNodeAncestor=function(anotherNode){if (anotherNode == null) {return false;}var ancestor = this;do {if (ancestor == anotherNode) {return true;}} while((ancestor = ancestor.getParent()) != null);return false;};DefaultMutableTreeNode.prototype.isNodeChild=function(aNode){var retval;if (aNode == null) {retval = false;} else {if (this.getChildCount() == 0) {retval = false;} else {retval = (aNode.getParent() == this);}}return retval;};DefaultMutableTreeNode.prototype.isNodeDescendant=function(anotherNode){if (anotherNode == null)return false;return anotherNode.isNodeAncestor(this);};DefaultMutableTreeNode.prototype.isNodeRelated=function(aNode){return (aNode != null) && (this.getRoot() == aNode.getRoot());};DefaultMutableTreeNode.prototype.isNodeSibling=function(anotherNode){var retval;if (anotherNode == null) {retval = false;} else if (anotherNode == this) {retval = true;} else {var  myParent = this.getParent();retval = (myParent != null && myParent == anotherNode.getParent());if (retval && !this.getParent().isNodeChild(anotherNode)) {throw new Error("sibling has different parent");}}return retval;};DefaultMutableTreeNode.prototype.isRoot=function(){return this.getParent() == null;};DefaultMutableTreeNode.prototype.remove=function(childIndex){var child = this.getChildAt(childIndex);this._children.removeElementAt(childIndex);child.setParent(null);};DefaultMutableTreeNode.prototype.remove=function(aChild){if (aChild == null) {throw new IllegalArgumentException(IllegalArgumentException.ERROR,"argument is null");}if (!this.isNodeChild(aChild)) {throw new IllegalArgumentException(IllegalArgumentException.ERROR,"argument is not a child");}this.remove(this.getIndex(aChild));};DefaultMutableTreeNode.prototype.removeAllChildren=function(){for (var i = this.getChildCount()-1; i >= 0; i--) {this.remove(i);}};DefaultMutableTreeNode.prototype.removeFromParent=function(){var parent = this.getParent();if (parent != null) {parent.remove(this);}};DefaultMutableTreeNode.prototype.setAllowsChildren=function(allows){if (allows != this.llowsChildren) {allowsChildren = allows;if (!allowsChildren) {this.removeAllChildren();}}};DefaultMutableTreeNode.prototype.setParent=function(newParent){this.parent = newParent;};DefaultMutableTreeNode.prototype.setUserObject=function(userObject){this.userObject = userObject;};DefaultMutableTreeNode.prototype.toString=function(){if (this.userObject == null) {return null;} else {return this.userObject.toString();}};function ArrayUtils(){this.jsjava_class="jsorg.apache.commons.lang.ArrayUtils";}ArrayUtils.add=function(arr,value){var narr=new Array(arr.length+1);for(var i=0;i<arr.length;i++){narr[i]=arr[i];}narr[arr.length]=value;return narr;};ArrayUtils.addIndexOf=function(arr,index,value){if(index>arr.length||index<0){return arr;}var narr=new Array(arr.length+1);for(var i=0;i<narr.length;i++){if(i<index){narr[i]=arr[i];}else if(i==index){narr[i]=value;}else{narr[i]=arr[i-1];}}return narr;};ArrayUtils.addAll=function(toArr,fromArr){var toArrLength=toArr.length;var fromArrLength=fromArr.length;var narr=new Array(toArrLength+fromArrLength);var j=0;for(var i=0;i<narr.length;i++){if(j==toArrLength){j=0;}if(i<toArrLength){narr[i]=toArr[j];}else{narr[i]=fromArr[j];}j++;}return narr;};ArrayUtils.clone=function(arr){var narr=new Array(arr.length);for(var i=0;i<arr.length;i++){narr[i]=arr[i];}return narr;};ArrayUtils.contains=function(arr,value){for(var i=0;i<arr.length;i++){if(arr[i]==value){return true;}}return false;};ArrayUtils.containsEqual=function(arr,value){for(var i=0;i<arr.length;i++){if(arr[i].equals(value)){return true;}}return false;};ArrayUtils.getLength=function(arr){return arr.length;};ArrayUtils.indexOf=function(arr,value){for(var i=0;i<arr.length;i++){if(arr[i]==undefined&&value==undefined){return i;}if(arr[i].equals(value)){return i;}}return -1;};ArrayUtils.isEmpty=function(arr){if(arr==undefined||arr.length==0){return true;}return false;};ArrayUtils.isEquals=function(arr1,arr2){var arr1Length=arr1.length;var arr2Length=arr2.length;if(arr1Length!=arr2Length){return false;}for(var i=0;i<arr1Length;i++){if(arr1[i]==undefined){if(arr2[i]!=undefined){return false;}}else if(!arr1[i].equals(arr2[i])){return false;}}return true;};ArrayUtils.isSameLength=function(arr1,arr2){var arr1Length=arr1.length;var arr2Length=arr2.length;if(arr1Length!=arr2Length){return false;}return true;};ArrayUtils.lastIndexOf=function(arr,value){for(var i=arr.length-1;i>=0;i--){if(arr[i]==value){return i;}}return -1;};ArrayUtils.remove=function(arr,index){if(index>arr.length-1||index<0){return arr;}var narr=new Array(arr.length-1);for(var i=0;i<narr.length;i++){if(i<index){narr[i]=arr[i];}else{narr[i]=arr[i+1];}}return narr;};ArrayUtils.removeElement=function(arr,value){var index=ArrayUtils.indexOf(arr,value);if(index==-1){return arr;}return ArrayUtils.remove(arr,index);};ArrayUtils.reverse=function(arr){return arr.reverse();};ArrayUtils.subarray=function(arr,startIndexInclusive,endIndexExclusive){if(startIndexInclusive<=endIndexExclusive&&startIndexInclusive>=0&&endIndexExclusive<=arr.length){var narr=new Array(endIndexExclusive-startIndexInclusive);for(var i=startIndexInclusive;i<endIndexExclusive;i++){narr[i]=arr[i];}return narr;}return null;};ArrayUtils.toString=function(arr){return arr.toString();};ArrayUtils.toStringIfNull=function(arr,defaultValue){var narr=ArrayUtils.clone(arr);for(var i=0;i<narr.length;i++){if(narr[i]==undefined||narr[i]==null){narr[i]=defaultValue;}}return narr.toString();};function BeanUtils(){this.jsjava_class="jsorg.apache.commons.beanutils.BeanUtils";}BeanUtils.getProperty=function(bean,name){if(!bean||typeof(bean)!="object"||!name||typeof(name)!="string"){throw new IllegalArgumentException(IllegalArgumentException.ERROR,"bean and property can not be null!");}var capitalName=name.charAt(0).toUpperCase()+name.substring(1);var str="bean.get"+capitalName+"()";var value=eval(str);return value;};BeanUtils.getSimpleProperty=function(bean,name){if(!bean||typeof(bean)!="object"||!name||typeof(name)!="string"){throw new IllegalArgumentException(IllegalArgumentException.ERROR,"bean and property can not be null!");}var capitalName=name.charAt(0).toUpperCase()+name.substring(1);var str="bean.get"+capitalName+"()";var value=eval(str);return value;};BeanUtils.getIndexedProperty=function(bean,name,index){if(!bean||typeof(bean)!="object"||!name||typeof(name)!="string"||isNaN(index)||index<0){throw new IllegalArgumentException(IllegalArgumentException.ERROR,"bean and property and can not be null and index can not be smaller than 0!");}var capitalName=name.charAt(0).toUpperCase()+name.substring(1);var str="bean.get"+capitalName+"("+index+")";var value=eval(str);return value;};BeanUtils.getMappedProperty=function(bean,name,key){if(!bean||typeof(bean)!="object"||!name||typeof(name)!="string"||!key||typeof(key)!="string"){throw new IllegalArgumentException(IllegalArgumentException.ERROR,"bean and property and key can not be null!");}var capitalName=name.charAt(0).toUpperCase()+name.substring(1);var str="bean.get"+capitalName+"('"+key+"')";var value=eval(str);return value;};BeanUtils.setProperty=function(bean,name,value){if(!bean||typeof(bean)!="object"||!name||typeof(name)!="string"){throw new IllegalArgumentException(IllegalArgumentException.ERROR,"bean and property can not be null!");}var capitalName=name.charAt(0).toUpperCase()+name.substring(1);var str="bean.set"+capitalName+"('"+value+"')";var value=eval(str);return value;};BeanUtils.copyProperty=function(bean,name,value){if(!bean||typeof(bean)!="object"||!name||typeof(name)!="string"){throw new IllegalArgumentException(IllegalArgumentException.ERROR,"bean and property can not be null!");}var capitalName=name.charAt(0).toUpperCase()+name.substring(1);var str="bean.set"+capitalName+"('"+value+"')";var value=eval(str);return value;};BeanUtils.populate=function(bean,properties){if(!bean||typeof(bean)!="object"||!properties||!properties.jsjava_class||properties.jsjava_class!="jsjava.util.Hashtable"){throw new IllegalArgumentException(IllegalArgumentException.ERROR,"bean and properties can not be null and properties must be an instance of jsjava.util.Hashtable");}var keys=properties.keySet().iterator();while(keys.hasNext()){var key=keys.next();var value=properties.get(key);BeanUtils.setProperty(bean,key,value);}};function BooleanPrototype(){this.jsjava_class="jsorg.eob.prototype.BooleanPrototype";}BooleanPrototype.load=function(){Boolean.prototype.compareTo=function(b){if(b==undefined){return -1;}if(this.value==b.value){return 1;}else{return -1;}};Boolean.valueOf=function(str){return new Boolean(str);};Boolean.prototype.booleanValue=function(){return this.valueOf();};};BooleanPrototype.load();function BooleanUtils(){this.jsjava_class="jsorg.apache.commons.lang.BooleanUtils";}BooleanUtils.isFalse=function(value){var type=typeof(value);if(type=="boolean"){if(!value){return true;}}if(type=="string"){if(value=="false"){return true;}}if(type=="object"){if(value.booleanValue()==false||value.booleanValue()=="false"){return true;}}return false;};BooleanUtils.isTrue=function(value){var type=typeof(value);if(type=="boolean"){if(value){return true;}}if(type=="string"){if(value=="true"){return true;}}if(type=="object"){if(value.booleanValue()==true||value.booleanValue()=="true"){return true;}}return false;};BooleanUtils.negate=function(value){var type=typeof(value);if(type=="boolean"){return !value;}if(type=="string"){if(value=="true"){return "false";}if(value=="false"){return "true";}}if(type=="object"){var ovalue=value.booleanValue();if(ovalue=="true"){return new Boolean("false");}if(ovalue=="false"){return new Boolean("true");}if(ovalue==true){return new Boolean(false);}if(ovalue==false){return new Boolean(true);}}return null;};BooleanUtils.toBoolean=function(value){var type=typeof(value);if(type=="boolean"){return value;}if(type=="string"){if(value=="true"){return true;}else{return false;}}if(type=="object"){return value.booleanValue();}if(type=="number"){if(value==0){return false;}else{return true;}}return false;};BooleanUtils.toBooleanDefaultIfNull=function(value,defaultValue){if(value==null||value==undefined){return defaultValue;}return BooleanUtils.toBoolean(value);};BooleanUtils.toBooleanObject=function(value){return new Boolean(BooleanUtils.toBoolean(value));};BooleanUtils.toInteger=function(value,trueValue,falseValue,nullValue){if(value==null||value==undefined){return nullValue;}if(BooleanUtils.toBoolean(value)){return trueValue;}return falseValue;};BooleanUtils.toIntegerObject=function(value,trueValue,falseValue,nullValue){if(value==null||value==undefined){return nullValue;}if(BooleanUtils.toBoolean(value)){return trueValue;}return falseValue;};BooleanUtils.toString=function(value,trueString,falseString,nullString){if(value==null||value==undefined){return nullString;}if(BooleanUtils.toBoolean(value)){return trueString;}return falseString;};BooleanUtils.toStringOnOff=function(value){if(value==null||value==undefined){return "off";}if(BooleanUtils.toBoolean(value)){return "on";}return "off";};BooleanUtils.toStringTrueFalse=function(value){if(value==null||value==undefined){return "false";}if(BooleanUtils.toBoolean(value)){return "true";}return "false";};BooleanUtils.toStringYesNo=function(value){if(value==null||value==undefined){return "no";}if(BooleanUtils.toBoolean(value)){return "yes";}return "no";};BooleanUtils.xor=function(arr){var narr=new Array(arr.length);for(var i=0;i<arr.length;i++){narr[i]=BooleanUtils.toBoolean(arr[i]);}var xvalue=narr[0];for(var i=1;i<arr.length;i++){xvalue=xvalue^narr[i];}return BooleanUtils.toBoolean(xvalue);};function Border(width,color,style){this.jsjava_class="jsjavax.swing.border.Border";this.width=width;this.color=color;this.style=style;}Border.prototype.getWidth=function(){return this.width;};Border.prototype.setWidth=function(width){return this.width;};Border.prototype.getColor=function(){return this.color;};Border.prototype.setColor=function(color){return this.color;};Border.prototype.getStyle=function(){return this.style;};Border.prototype.setStyle=function(style){return this.style;};function BrowserUtils(){this.jsjava_class="jsorg.eob.browser.BrowserUtils";}BrowserUtils.isIE=function(){return navigator.userAgent.indexOf("MSIE")!=-1;};BrowserUtils.isFirefox=function(){return navigator.userAgent.indexOf("Firefox")!=-1;};BrowserUtils.isOpera=function(){return navigator.userAgent.indexOf("Opera")!=-1;};BrowserUtils.getUserLanguage=function(){return (navigator.userLanguage==undefined?navigator.language:navigator.userLanguage).replace("-","_");};function CharRange(start,end,negated){this.jsjava_class="jsorg.apache.commons.lang.CharRange";if(CharRange.checkValid(start)){this.start=start;this.end=end;}this.negated=false;}CharRange.checkValid=function(c){var type=typeof(c);if(type=="string"&&c.length==1){return true;}return false;};CharRange.prototype.contains=function(ch){if(!CharRange.checkValid(ch)){return false;}if(ch>=this.start&&ch<=this.end){return true;}return false;};CharRange.prototype.containsRange=function(range){if(range.start>=this.start&&range.end<=this.end){return true;}return false;};CharRange.prototype.getStart=function(){return this.start;};CharRange.prototype.getEnd=function(){return this.end;};CharRange.prototype.isNegated=function(){return this.negated;};CharRange.prototype.toString=function(){return "["+this.start+","+this.end+"]";};CharRange.prototype.equals=function(o){if(o.start==this.start&&this.end==this.end){return true;}return false;};function CharSet(str){this.jsjava_class="jsorg.apache.commons.lang.CharSet";if(str==undefined){str="";}this.str=str;}CharSet.checkValid=function(c){var type=typeof(c);if(type=="string"&&c.length==1){return true;}return false;};CharSet.prototype.contains=function(ch){if(!CharSet.checkValid(ch)){return false;}for(var i=0;i<this.str.length;i++){if(this.str.charAt(i)==ch){return true;}}return false;};CharSet.prototype.getCharRange=function(){var arr=new Array(this.str.length);for(var i=0;i<this.str.length;i++){arr[i]=this.str.charAt(i);}arr.sort();return new CharRange(arr[0],arr[arr.length-1],false);};CharSet.prototype.toString=function(){return this.str;};CharSet.prototype.equals=function(o){if(o.str=this.str){return true;}return false;};function CharSetUtils(){this.jsjava_class="jsorg.apache.commons.lang.CharSetUtils";}CharSetUtils.count=function(str,set){if(str==null||str==""||set==null||set==""){return 0;}var count=0;for(var i=0;i<str.length;i++){if(set.indexOf(str.charAt(i))!=-1){count++;}}return count;};CharSetUtils.remove=function(str,set){if(str==null){return null;}if(str==""){return "";}if(set==null||set==""){return str;}var nstr="";for(var i=0;i<str.length;i++){var ch=str.charAt(i);if(set.indexOf(ch)==-1){nstr+=ch;}}return nstr;};CharSetUtils.keep=function(str,set){if(str==null){return null;}if(str==""||set==null||set==""){return "";}var nstr="";for(var i=0;i<str.length;i++){var ch=str.charAt(i);if(set.indexOf(ch)!=-1){nstr+=ch;}}return nstr;};CharSetUtils.squeeze=function(str,set){if(str==null||str==""){return str;}if(set==null||set==""){return str;}for(var i=0;i<set.length;i++){var ch=set.charAt(i);str=str.replace(new RegExp(ch+"{2,}","g"),ch);}return str;};function CharUtils(){this.jsjava_class="jsorg.apache.commons.lang.CharUtils";}CharUtils.checkValid=function(c){return Character.checkValid(c);};CharUtils.isAscii=function(ch){if(!CharUtils.checkValid(ch)){return false;}ch=ch.charCodeAt(0);return ch < 128;};CharUtils.isAsciiAlpha=function(ch){if(!CharUtils.checkValid(ch)){return false;}ch=ch.charCodeAt(0);return (ch >= 'A'.charCodeAt(0) && ch <= 'Z'.charCodeAt(0)) || (ch >= 'a'.charCodeAt(0) && ch <= 'z'.charCodeAt(0));};CharUtils.isAsciiAlphaLower=function(ch){if(!CharUtils.checkValid(ch)){return false;}ch=ch.charCodeAt(0);return ch >= 'a'.charCodeAt(0) && ch <= 'z'.charCodeAt(0);};CharUtils.isAsciiAlphanumeric=function(ch){if(!CharUtils.checkValid(ch)){return false;}ch=ch.charCodeAt(0);return (ch >= 'A'.charCodeAt(0) && ch <= 'Z'.charCodeAt(0)) || (ch >= 'a'.charCodeAt(0) && ch <= 'z'.charCodeAt(0)) || (ch >= '0'.charCodeAt(0) && ch <= '9'.charCodeAt(0));};CharUtils.isAsciiAlphaUpper=function(ch){if(!CharUtils.checkValid(ch)){return false;}ch=ch.charCodeAt(0);return ch >= 'A'.charCodeAt(0) && ch <= 'Z'.charCodeAt(0);};CharUtils.isAsciiControl=function(ch){if(!CharUtils.checkValid(ch)){return false;}ch=ch.charCodeAt(0);return ch < 32 || ch == 127;};CharUtils.isAsciiNumeric=function(ch){if(!CharUtils.checkValid(ch)){return false;}ch=ch.charCodeAt(0);return ch >= '0'.charCodeAt(0) && ch <= '9'.charCodeAt(0);};CharUtils.isAsciiPrintable=function(ch){if(!CharUtils.checkValid(ch)){return false;}ch=ch.charCodeAt(0);return ch >= 32 && ch < 127;};CharUtils.toChar=function(chobj,defaultValue){if(chobj==null){return defaultValue;}if(typeof(chobj=="object")){return chobj.charValue();}return;};CharUtils.toIntValue=function(ch,defaultValue){if(defaultValue!=undefined){if(isNaN(defaultValue)){return;}}if(ch==null){return defaultValue;}if(isNaN(ch)){return;}if(CharUtils.checkValid(ch)){return parseInt(ch);}};CharUtils.toCharacterObject=function(ch){return new Character(ch);};CharUtils.toString=function(ch){return ch;};function ChinaConvertUtils(){this.jsjava_class="jsorg.eob.convert.country.cn.ChinaConvertUtils";}ChinaConvertUtils.NUMBER_LOWER_CHINESE=["\u96f6","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d"];ChinaConvertUtils.NUMBER_UPPER_CHINESE=["\u96f6","\u58f9","\u8d30","\u53c1","\u8086","\u4f0d","\u9646","\u67d2","\u634c","\u7396"];ChinaConvertUtils.SHI="\u5341";ChinaConvertUtils.BAI="\u767e";ChinaConvertUtils.QIAN="\u5343";ChinaConvertUtils.WAN="\u4e07";ChinaConvertUtils.YI="\u4ebf";ChinaConvertUtils.ZHAO="\u5146";ChinaConvertUtils.DIAN="\u70b9";ChinaConvertUtils.FENZHI="\u5206\u4e4b";ChinaConvertUtils.FU="\u8d1f";ChinaConvertUtils.numberToChinese=function(num,isLower){var narr=ChinaConvertUtils.NUMBER_UPPER_CHINESE;if(isLower!=undefined&&isLower==true){narr=ChinaConvertUtils.NUMBER_LOWER_CHINESE;}function c2c(str){if(str==undefined){return "";}var s="";for(var i=0;i<str.length;i++){s+=narr[parseInt(str.charAt(i))];}return s;}if(num==undefined){throw new IllegalArgumentException(IllegalArgumentException.ERROR,"Invalid arguments");}var isZhengShu=isFenShu=isBaiFenShu=isQianFenShu=isXiaoShu=false;var fsPos=num.indexOf("/");var bfsPos=num.indexOf("%");var xsPos=num.indexOf(".");if(fsPos!==-1){if(fsPos==0||fsPos==num.length-1){throw new IllegalArgumentException(IllegalArgumentException.ERROR,"Invalid arguments");}isFenShu=true;}else if(bfsPos!=-1){if(bfsPos!=num.length-1){throw new IllegalArgumentException(IllegalArgumentException.ERROR,"Invalid arguments");}isBaiFenShu=true;}else if(xsPos!=-1){isXiaoShu=true;}else{isZhengShu=true;}var isFuShu=false;if(num.indexOf("-")==0){isFuShu=true;}var str="";if(isFuShu){str+=ChinaConvertUtils.FU;}if(isFenShu){var bstr=num.substring(0,fsPos);var astr=num.substring(fsPos+1);str+=c2c(astr)+ChinaConvertUtils.FENZHI+c2c(bstr);return str;}if(isBaiFenShu){var bstr=num.substring(0,bfsPos);str+=ChinaConvertUtils.BAI+ChinaConvertUtils.FENZHI+c2c(bstr);return str;}if(isXiaoShu){var bstr=num.substring(0,xsPos);if(bstr==""){bstr="0";}var astr=num.substring(xsPos+1);str+=c2c(bstr)+ChinaConvertUtils.DIAN+c2c(astr);return str;}str+=c2c(num);return str;};ChinaConvertUtils.numberToLowerChinese=function(num){return ChinaConvertUtils.numberToChinese(num,true);};ChinaConvertUtils.numberToUpperChinese=function(num){return ChinaConvertUtils.numberToChinese(num,false);};function ChinaLunarCalendar(){this.jsjava_class="jsorg.eob.calendar.country.cn.ChinaLunarCalendar";this.calendarData=[0x41A95,0xD4A,0xDA5,0x20B55,0x56A,0x7155B,0x25D,0x92D,0x5192B,0xA95,0xB4A,0x416AA,0xAD5,0x90AB5,0x4BA,0xA5B,0x60A57,0x52B,0xA93,0x40E95];this.madd=[0,31,59,90,120,151,181,212,243,273,304,334];this.date=new Date();this.tgString="\u7532\u4e59\u4e19\u4e01\u620a\u5df1\u5e9a\u8f9b\u58ec\u7678";this.dzString="\u5b50\u4e11\u5bc5\u536f\u8fb0\u5df3\u5348\u672a\u7533\u9149\u620c\u4ea5";this.numString="\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d\u5341";this.monString="\u6b63\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d\u5341\u51ac\u814a";this.weekString="\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d";this.sxString="\u9f20\u725b\u864e\u5154\u9f99\u86c7\u9a6c\u7f8a\u7334\u9e21\u72d7\u732a";this.cYear;this.cMonth;this.cDate;this.cDay;this.cHour;this.tiangan;this.dizhi;this.shengxiao;this.convert();}ChinaLunarCalendar.jia=0;ChinaLunarCalendar.yi=1;ChinaLunarCalendar.bing=2;ChinaLunarCalendar.ding=3;ChinaLunarCalendar.wu=4;ChinaLunarCalendar.ji=5;ChinaLunarCalendar.geng=6;ChinaLunarCalendar.xin=7;ChinaLunarCalendar.ren=8;ChinaLunarCalendar.gui=9;ChinaLunarCalendar.zi=0;ChinaLunarCalendar.chou=1;ChinaLunarCalendar.yin=2;ChinaLunarCalendar.mao=3;ChinaLunarCalendar.chen=4;ChinaLunarCalendar.si=5;ChinaLunarCalendar.wu=6;ChinaLunarCalendar.wei=7;ChinaLunarCalendar.shen=8;ChinaLunarCalendar.you=9;ChinaLunarCalendar.xu=10;ChinaLunarCalendar.hai=11;ChinaLunarCalendar.shu=0;ChinaLunarCalendar.niu=1;ChinaLunarCalendar.hu=2;ChinaLunarCalendar.tu=3;ChinaLunarCalendar.lon=4;ChinaLunarCalendar.she=5;ChinaLunarCalendar.ma=6;ChinaLunarCalendar.yang=7;ChinaLunarCalendar.hou=8;ChinaLunarCalendar.ji=9;ChinaLunarCalendar.gou=10;ChinaLunarCalendar.zhu=11;ChinaLunarCalendar.DISPLAY_NIAN="\u5e74";ChinaLunarCalendar.DISPLAY_YUE="\u6708";ChinaLunarCalendar.DISPLAY_RI="\u65e5";ChinaLunarCalendar.DISPLAY_SHI="\u65f6";ChinaLunarCalendar.DISPLAY_FEN="\u5206";ChinaLunarCalendar.DISPLAY_MIAO="\u79d2";ChinaLunarCalendar.DISPLAY_HAOMIAO="\u6beb\u79d2";ChinaLunarCalendar.DISPLAY_ZHOU="\u5468";ChinaLunarCalendar.DISPLAY_XINGQI="\u661f\u671f";ChinaLunarCalendar.DISPLAY_RUN="\u95f0";ChinaLunarCalendar.DISPLAY_CHU="\u521d";ChinaLunarCalendar.DISPLAY_YISHI="\u5341";ChinaLunarCalendar.DISPLAY_ERSHI="\u5eff";ChinaLunarCalendar.DISPLAY_SANSHI="\u5345";ChinaLunarCalendar.prototype.convert=function(){var total,m,n,k;var isEnd=false;var tmp=this.date.getYear();if (tmp<1900){tmp+=1900;}total=(tmp-2001)*365+Math.floor((tmp-2001)/4)+this.madd[this.date.getMonth()]+this.date.getDate()-23;if (this.date.getYear()%4==0&&this.date.getMonth()>1){total++;}for(m=0;;m++){k=(this.calendarData[m]<0xfff)?11:12;for(n=k;n>=0;n--){if(total<=29+((this.calendarData[m]>>n)&1)){isEnd=true;break;}total=total-29-((this.calendarData[m]>>n)&1);}if(isEnd){break;}}this.cYear=2001 + m;this.cMonth=k-n+1;this.cDate=total;this.cDay=this.date.getDay();if(k==12){if(this.cMonth==Math.floor(this.calendarData[m]/0x10000)+1){this.cMonth=1-this.cMonth;}if(this.cMonth>Math.floor(this.calendarData[m]/0x10000)+1){this.cMonth--;}}this.cHour=Math.floor((this.date.getHours()+3)/2);this.tiangan=(this.cYear-4)%10;this.dizhi=(this.cYear-4)%12;this.shengxiao=(this.cYear-4)%12;};ChinaLunarCalendar.prototype.getTianGan=function(){return this.tiangan;};ChinaLunarCalendar.prototype.getDiZhi=function(){return this.dizhi;};ChinaLunarCalendar.prototype.getShengXiao=function(){return this.shengxiao;};ChinaLunarCalendar.prototype.getYear=function(){return this.cYear;};ChinaLunarCalendar.prototype.getMonth=function(){return this.cMonth;};ChinaLunarCalendar.prototype.getDate=function(){return this.cDate;};ChinaLunarCalendar.prototype.getDay=function(){return this.cDay;};ChinaLunarCalendar.prototype.getHours=function(){return this.cHour;};ChinaLunarCalendar.prototype.getDescOfTianGan=function(){return this.tgString.charAt(this.tiangan);};ChinaLunarCalendar.prototype.getDescOfDiZhi=function(){return this.dzString.charAt(this.dizhi);};ChinaLunarCalendar.prototype.getDescOfShengXiao=function(){return this.sxString.charAt(this.shengxiao);};ChinaLunarCalendar.prototype.getDescOfYear=function(){return this.getDescOfTianGan()+this.getDescOfDiZhi()+ChinaLunarCalendar.DISPLAY_NIAN;};ChinaLunarCalendar.prototype.getDescOfMonth=function(){var monthdes="";if(this.cMonth<1){monthdes+=ChinaLunarCalendar.DISPLAY_RUN;monthdes+=this.monString.charAt(-this.cMonth-1);}else{monthdes+=this.monString.charAt(this.cMonth-1);}monthdes+=ChinaLunarCalendar.DISPLAY_YUE;return monthdes;};ChinaLunarCalendar.prototype.getDescOfDate=function(){var datedes="";datedes+=(this.cDate<11)?ChinaLunarCalendar.DISPLAY_CHU:((this.cDate<20)?ChinaLunarCalendar.DISPLAY_YISHI:((this.cDate<30)?ChinaLunarCalendar.DISPLAY_ERSHI:ChinaLunarCalendar.DISPLAY_SANSHI));if(this.cDate%10!=0||this.cDate==10){datedes+=this.numString.charAt((this.cDate-1)%10);}return datedes;};ChinaLunarCalendar.prototype.getDescOfDay=function(){return ChinaLunarCalendar.DISPLAY_XINGQI+this.weekString.charAt(this.cDay);};ChinaLunarCalendar.prototype.getDescOfHours=function(){return this.dzString.charAt((this.cHour-1)%12)+ChinaLunarCalendar.DISPLAY_SHI;};ChinaLunarCalendar.prototype.setTime=function(date){this.date=date;this.convert();};function ChinaValidatorUtils(){this.jsjava_class="jsorg.eob.validator.ChinaValidatorUtils";}ChinaValidatorUtils.isChinese=function(value){var regx=/^[\u4e00-\u9fa5]+$/;return regx.test(value);};ChinaValidatorUtils.isIDCard=function(value){var regx=/^(\d{15}|\d{17}[\dx])$/;return regx.test(value);};ChinaValidatorUtils.isMobile=function(value){var regx=/^13[0-9]\d{8}$/;return regx.test(value);};ChinaValidatorUtils.isOicq=function(value){var regx=/^[1-9][0-9]{4,}$/;return regx.test(value);};ChinaValidatorUtils.isPhone=function(value){var regx=/^\d{3}-\d{8}|\d{4}-\d{7}$/;return regx.test(value);};ChinaValidatorUtils.isZip=function(value){var regx=/^\d{6}$/;return regx.test(value);};function ClipboardUtils(){this.jsjava_class="jsorg.eob.document.ClipboardUtils";}ClipboardUtils.copyTextToClipboard=function(data){if(data==undefined||data==null){return;}if(BrowserUtils.isIE()){window.clipboardData.clearData();window.clipboardData.setData("text",data);}else if(BrowserUtils.isOpera()){window.location=data;}else if(BrowserUtils.isFirefox()){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");}catch (e){throw new SecurityException(SecurityException.ERROR,"");}var clip = Components.classes["@mozilla.org/widget/clipboard;1"].createInstance(Components.interfaces.nsIClipboard);if (!clip){return;}var trans = Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);if (!trans){return;}trans.addDataFlavor("text/unicode");var str = new Object();var len = new Object();var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);var copytext = data;str.data = copytext;trans.setTransferData("text/unicode",str,copytext.length*2);var clipid = Components.interfaces.nsIClipboard;if (!clip){return false;}clip.setData(trans,null,clipid.kGlobalClipboard);}return true;};ClipboardUtils.getTextFromClipboard=function(){var pastetext;if(BrowserUtils.isIE()){pastetext=window.clipboardData.getData("text");}else if(BrowserUtils.isFirefox()){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");}catch (e){throw new SecurityException(SecurityException.ERROR,"");}var clip = Components.classes["@mozilla.org/widget/clipboard;1"].createInstance(Components.interfaces.nsIClipboard);if (!clip){return;}var trans = Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);if (!trans){return;}trans.addDataFlavor("text/unicode");clip.getData(trans,clip.kGlobalClipboard);var str=new Object();var strLength=new Object();trans.getTransferData("text/unicode",str,strLength);if (str){str=str.value.QueryInterface(Components.interfaces.nsISupportsString);}if (str){pastetext=str.data.substring(0,strLength.value / 2);}}return pastetext;};function ColorUtils(){this.jsjava_class="jsorg.eob.document.ColorUtils";}ColorUtils.toHexValue=function(color){if(color==undefined){return "FFFFFF";}var redValue=color.getRed();var greenValue=color.getGreen();var blueValue=color.getBlue();return ColorUtils.toHexValueWithRGB(redValue,greenValue,blueValue);};ColorUtils.toHexValueWithRGB=function(redValue,greenValue,blueValue){var flag1=ValidatorUtils.isShortInRange(redValue,0,255);var flag2=ValidatorUtils.isShortInRange(greenValue,0,255);var flag3=ValidatorUtils.isShortInRange(blueValue,0,255);if(!flag1||!flag2||!flag3){throw new IllegalArgumentException(IllegalArgumentException.ERROR,"Invalid rgb input!");}var redHexValue=Integer.toHexString(redValue);if(redHexValue.length==1){redHexValue="0"+redHexValue;}var greenHexValue=Integer.toHexString(greenValue);if(greenHexValue.length==1){greenHexValue="0"+greenHexValue;}var blueHexValue=Integer.toHexString(blueValue);if(blueHexValue.length==1){blueHexValue="0"+blueHexValue;}var hexValue=redHexValue+greenHexValue+blueHexValue;return hexValue;};ColorUtils.createHexColor=function(redHexValue,greenHexValue,blueHexValue){var redValue=parseInt("0x"+redHexValue);var greenValue=parseInt("0x"+greenHexValue);var blueValue=parseInt("0x"+blueHexValue);var color=new Color(redValue,greenValue,blueValue,255);return color;};ColorUtils.toPaletteDatum=function(m,n){function getDatum(m,n){var hexColors=MultiDimensionArrayUtils.createTwoDimensionArray(m,n);var max=0xffffff;var sn=m*n;var span=max/sn;for(var i=0,s=0;i<m,s<sn;i++){for(var j=0;j<n;j++,s++){var hexValue=Integer.toHexString(s*span);var hexColorValue=""+hexValue;var zeroNum=6-hexValue.length;for(var k=0;k<zeroNum;k++){hexColorValue="0"+hexColorValue;}hexColors[i][j]=hexColorValue;}}return hexColors;}function getGreyDatum(m){var hexColors=new Array(m);var max=255;hexColors[0]="000000";hexColors[m-1]="ffffff";var span=max/m;for(var i=1;i<m-1;i++){var iv=i*span;hexColors[i]=new Color(iv,iv,iv).toHexValue();}return hexColors;}function getLifeDatum(m){var lifeColors=[Color.red,Color.pink,Color.orange,Color.yellow,Color.green,Color.magenta,Color.cyan,Color.blue];var ll=lifeColors.length;if(m>ll){for(var i=ll;i<m;i++){lifeColors[i]=Color.black;}}var hexColors=new Array(m);for(var i=0;i<m;i++){hexColors[i]=lifeColors[i].toHexValue();}return hexColors;}var datum=getDatum(m,n);var datum2=getGreyDatum(n);var datum3=getLifeDatum(m);for(var i=0;i<n;i++){datum[m-1][i]=datum2[i];}for(var i=0;i<m-1;i++){datum[i][n-1]=datum3[i];}return datum;};function Cookie(name,value){this.jsjava_class="jsjavax.servlet.http.Cookie";this.name=name;this.value=value;this.secure=false;this.maxAge=0;}Cookie.prototype.clone=function(){var clonedCookie=new cookie(this.getName(),this.getValue());clonedCookie.setComment(this.getComment());clonedCookie.setDomain(this.getDomain());clonedCookie.setMaxAge(this.getMaxAge());clonedCookie.setPath(this.getPath());clonedCookie.setSecure(this.getSecure());clonedCookie.setVersion(this.getVersion());return clonedCookie;};Cookie.prototype.getComment=function(){return this.comment;};Cookie.prototype.setComment=function(comment){this.comment=comment;};Cookie.prototype.getDomain=function(){return this.domain;};Cookie.prototype.setDomain=function(domain){this.domain=domain;};Cookie.prototype.getMaxAge=function(){return this.maxAge;};Cookie.prototype.setMaxAge=function(maxAge){this.maxAge=maxAge;};Cookie.prototype.getName=function(){return this.name;};Cookie.prototype.getPath=function(){return this.path;};Cookie.prototype.setPath=function(path){this.path=path;};Cookie.prototype.getSecure=function(){return this.secure;};Cookie.prototype.setSecure=function(secure){this.secure=secure;};Cookie.prototype.getValue=function(){return this.value;};Cookie.prototype.setValue=function(value){this.value=value;};Cookie.prototype.getVersion=function(){return this.version;};Cookie.prototype.setVersion=function(version){this.version=version;};function CursorUtils(){this.jsjava_class="jsorg.eob.document.CursorUtils";}CursorUtils.getCursorPosition=function(textObj){var ps=CursorUtils.getSelectPositions(textObj);return ps[0];};CursorUtils.getSelectStartPosition=function(textObj){var ps=CursorUtils.getSelectPositions(textObj);return ps[0];};CursorUtils.getSelectEndPosition=function(textObj){var ps=CursorUtils.getSelectPositions(textObj);return ps[1];};CursorUtils.getSelectPositions=function(textObj){if(!DocumentUtils.isHTMLTextObject(textObj)){throw new IllegalArgumentException(IllegalArgumentException.ERROR,"The argument must be a text input object!");}var start = 0, end = 0;if(BrowserUtils.isFirefox()){start = textObj.selectionStart;end = textObj.selectionEnd;}else if(BrowserUtils.isIE()) {var textRange = document.selection.createRange();if(textRange.parentElement() == textObj) {var docRange;if(DocumentUtils.isHTMLTextArea(textObj)){docRange = document.body.createTextRange();docRange.moveToElementText(textObj);}else{docRange = textObj.createTextRange();}for (start=0; docRange.compareEndPoints("StartToStart", textRange) < 0; start++){docRange.moveStart('character', 1);}for (var i = 0; i <= start; i ++) {if (textObj.value.charAt(i) == '\n'){start++;}}if(DocumentUtils.isHTMLTextArea(textObj)){docRange = document.body.createTextRange();docRange.moveToElementText(textObj);}else{docRange = textObj.createTextRange();}for (end = 0; docRange.compareEndPoints('StartToEnd', textRange) < 0; end ++) {docRange.moveStart('character', 1);}for (var i = 0; i <= end; i ++) {if (textObj.value.charAt(i) == '\n')end ++;}}}return [start,end];};CursorUtils.insertTextInCusorPosition=function(textObj,text){if(!(text instanceof String)&&typeof(text)!="string"){return;}var pos=CursorUtils.getCursorPosition(textObj);textObj.value=textObj.value.slice(0,pos)+text+textObj.value.slice(pos);CursorUtils.moveCursorTo(textObj,pos+text.length);};CursorUtils.insertTextInPosition=function(textObj,text,pos){if(!(text instanceof String)&&typeof(text)!="string"){return;}textObj.value=textObj.value.slice(0,pos)+text+textObj.value.slice(pos);CursorUtils.moveCursorTo(textObj,pos+text.length);};CursorUtils.moveCursorTo=function(textObj,pos){if(!DocumentUtils.isHTMLTextObject(textObj)){throw new IllegalArgumentException(IllegalArgumentException.ERROR,"The argument must be a text input object!");}if(isNaN(pos)){throw new IllegalArgumentException(IllegalArgumentException.ERROR,"position must be a number!");}if(BrowserUtils.isIE()){var textRange=textObj.createTextRange();textRange.collapse(true);textRange.moveStart("character",pos);textRange.select();}else if(BrowserUtils.isFirefox()){textObj.setSelectionRange(pos,pos);textObj.focus();}};CursorUtils.textSelect=function(textObj,start,end){if(!DocumentUtils.isHTMLTextObject(textObj)){throw new IllegalArgumentException(IllegalArgumentException.ERROR,"The argument must be a text input object!");}if(isNaN(start)||isNaN(end)||start>end){throw new IllegalArgumentException(IllegalArgumentException.ERROR,"start and end must be a number!");}if(BrowserUtils.isIE()){var textRange=textObj.createTextRange();textRange.collapse(true);textRange.moveStart("character",start);textRange.moveEnd("character",end-start);textRange.select();}else if(BrowserUtils.isFirefox()){textObj.setSelectionRange(start,end);textObj.focus();}};function DocumentUtils(){this.jsjava_class="jsorg.eob.document.DocumentUtils";}DocumentUtils.getElementsByClassName=function(domObj,tagName,className){return DocumentUtils.getElementsByProperty(domObj,tagName,"className",className);};DocumentUtils.getElementsByAttribute=function(domObj,tagName,attrName,attrValue){if(attrName=="className"&&!BrowserUtils.isIE()){attrName="class";}var elems=new ArrayList();var tagElems=domObj.getElementsByTagName(tagName.toUpperCase());for(var i=0;i<tagElems.length;i++){var tagElem=tagElems[i];var tagAttrValue=tagElem.getAttribute(attrName);if(tagAttrValue==attrValue){elems.add(tagElem);}}return elems.toArray();};DocumentUtils.getElementsByProperty=function(domObj,tagName,propName,propValue){var elems=new ArrayList();var tagElems=domObj.getElementsByTagName(tagName.toUpperCase());for(var i=0;i<tagElems.length;i++){var tagElem=tagElems[i];var tagPropValue=eval("tagElem."+propName);if(tagPropValue==propValue){elems.add(tagElem);}}return elems.toArray();};DocumentUtils.getFrameWindowObjectByName=function(winObj,frameName){var frameObj=eval("winObj."+frameName);return frameObj.window;};DocumentUtils.getFrameWindowObjectById=function(winObj,frameId){var frameTagObj=DocumentUtils.getFrameTagObjectById(winObj,frameId);return frameTagObj.contentWindow;};DocumentUtils.getFrameTagObjectById=function(winObj,frameId){return winObj.document.getElementById(frameId);};DocumentUtils.getFrameTagObjectByName=function(winObj,frameName){var elems=winObj.document.getElementsByName(frameName);return elems[0];};DocumentUtils.getTopWindowObjectOfCurrent=function(){return window.top;};DocumentUtils.getParentWindowObjectOfCurrent=function(){return window.parent;};DocumentUtils.getOpenerWindowObjectOfCurrent=function(){return window.opener;};DocumentUtils.getElementRectangle=function(elemObj){if(elemObj==undefined){return null;}var rect=null;if(BrowserUtils.isIE()){var orect=elemObj.getBoundingClientRect();var x=orect.left;var y=orect.top;var width=orect.right-orect.left;var height=orect.bottom-orect.top;rect=new Rectangle(x,y,width,height);}else{var orect=document.getBoxObjectFor(elemObj);var x=orect.x;var y=orect.y;var width=orect.width;var height=orect.height;rect=new Rectangle(x,y,width,height);}return rect;};DocumentUtils.getOpenerWindowObjectOfCurrent=function(){return window.opener;};DocumentUtils.isHTMLTextObject=function(elemObj){if(DocumentUtils.isHTMLTextArea(elemObj)||DocumentUtils.isHTMLTextField(elemObj)){return true;}return false;};DocumentUtils.isHTMLTextArea=function(elemObj){var flag=elemObj==undefined||elemObj==null||elemObj.parentNode==undefined||elemObj.tagName==undefined;if(flag){return false;}var tagName=elemObj.tagName.toUpperCase();if(tagName!="TEXTAREA"){return false;}return true;};DocumentUtils.isHTMLTextField=function(elemObj){var flag=elemObj==undefined||elemObj==null||elemObj.parentNode==undefined||elemObj.tagName==undefined;if(flag){return false;}var tagName=elemObj.tagName.toUpperCase();if(tagName!="INPUT"||tagName=="INPUT"&&elemObj.type.toUpperCase()!="TEXT"){return false;}return true;};DocumentUtils.setDisnabled=function(dom,flag){dom.disabled=flag;};DocumentUtils.setEditable=function(dom,flag){dom.readOnly=!flag;};DocumentUtils.setCanCopy=function(dom,flag){EventUtils.addDomEvent(dom,"copy",new Function("return "+new Boolean(flag)),false);};DocumentUtils.setCanPaste=function(dom,flag){EventUtils.addDomEvent(dom,"paste",new Function("return "+new Boolean(flag)),false);};DocumentUtils.setCanCut=function(dom,flag){EventUtils.addDomEvent(dom,"cut",new Function("return "+new Boolean(flag)),false);};DocumentUtils.setCanContextMenu=function(dom,flag){EventUtils.addDomEvent(dom,"contextmenu",new Function("return "+new Boolean(flag)),false);};DocumentUtils.setDomWidth=function(dom,width){if(dom.width!=undefined){dom.width=width;}else if(dom.style.width!=undefined){dom.style.width=width;}};DocumentUtils.setDomHeight=function(dom,height){if(dom.height!=undefined){dom.height=height;}else if(dom.style.height!=undefined){dom.style.height=height;}};DocumentUtils.cancelSelection=function(){if(BrowserUtils.isIE()){document.selection.empty();}else{window.getSelection().removeAllRanges();}};function EventUtils(){this.jsjava_class="jsorg.eob.event.EventUtils";}EventUtils.addDomEvent=function(domObj, eventName, funcName, isBroadcast){if(eventName.indexOf("on")==0){eventName=eventName.substring(2);}if (domObj.addEventListener) {domObj.addEventListener(eventName, funcName, isBroadcast);return true;} else if (domObj.attachEvent) {return domObj.attachEvent("on" + eventName, funcName);}else {element['on' + eventName] = funcName;}};EventUtils.addEventOnWindowLoad=function(funcName){EventUtils.addDomEvent(window,"onload",funcName,false);};EventUtils.addEventOnWindowUnLoad=function(funcName){EventUtils.addDomEvent(window,"onunload",funcName,false);};EventUtils.removeDomEvent=function(domObj, eventName, funcName,isBroadcast){if(eventName.indexOf("on")==0){eventName=eventName.substring(2);}if (domObj.removeEventListener) {domObj.removeEventListener(eventName, funcName,isBroadcast);return true;} else if (domObj.detachEvent) {return domObj.detachEvent("on" + eventName, funcName);}else {element['on' + eventName] = null;}};EventUtils.isLeftClick=function(event){return event.which==1||event.button==0;};EventUtils.getEventSource=function(event){return event.srcElement||event.target;};EventUtils.formatEvent = function (oEvent) {if (BrowserUtils.isIE() && OSUtils.isWindows()) {oEvent.charCode = (oEvent.type == "keypress") ? oEvent.keyCode : 0;oEvent.eventPhase = 2;oEvent.isChar = (oEvent.charCode > 0);oEvent.pageX = oEvent.clientX + document.body.scrollLeft;oEvent.pageY = oEvent.clientY + document.body.scrollTop;oEvent.preventDefault = function () {this.returnValue = false;};if (oEvent.type == "mouseout") {oEvent.relatedTarget = oEvent.toElement;} else if (oEvent.type == "mouseover") {oEvent.relatedTarget = oEvent.fromElement;}oEvent.stopPropagation = function () {this.cancelBubble = true;};oEvent.target = oEvent.srcElement;oEvent.time = (new Date).getTime();} else {oEvent.srcElement = oEvent.target;}return oEvent;};EventUtils.getEvent=function(){if (BrowserUtils.isIE()) {return EventUtils.formatEvent(window.event);} else {var caller_func = arguments.callee.caller;while(caller_func != null) {var caller_arg0 = caller_func.arguments[0];if (caller_arg0) {if(caller_arg0.constructor==Event || caller_arg0.constructor == MouseEvent || caller_arg0.constructor == KeyboardEvent) {return this.formatEvent(caller_arg0);}}caller_func = caller_func.caller;}return null;}};EventUtils.getMousePosition=function(event){var x=event.clientX;var y=event.clientY;var scrollX=x+document.body.scrollLeft;var scrollY=y+document.body.scrollTop;return [scrollX,scrollY];};EventUtils.getFloatShowPosition=function(event,floatObj){var clientX=event.clientX;var clientY=event.clientY;var scrollX=clientX+document.body.scrollLeft;var scrollY=clientY+document.body.scrollTop;var floatRect=DocumentUtils.getElementRectangle(floatObj);var fX=floatRect.left;var fY=floatRect.top;var fWidth=floatRect.right-floatRect.left;var fHeight=floatRect.bottom-floatRect.top;if(document.body.clientWidth-clientX<fWidth){scrollX=scrollX-fWidth;}if(document.body.clientHeight-clientY<fHeight){scrollY=scrollY-fHeight;}return [scrollX,scrollY];};EventUtils.showFloatInPosition=function(event,floatObj){var arr=EventUtils.getFloatShowPosition(event,floatObj);floatObj.style.left=arr[0];floatObj.style.top=arr[1];};EventUtils.setCapture=function(elem){if(BrowserUtils.isIE()) {elem.setCapture();} else if(BrowserUtils.isFirefox()) {window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);}else{}};EventUtils.releaseCapture=function(elem){if(BrowserUtils.isIE()) {elem.releaseCapture();} else if(BrowserUtils.isFirefox()) {window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);}else{}};EventUtils.stopPropagation=function(){var e=EventUtils.getEvent();if(e.stopPropagation){e.stopPropagation();}else{e.cancelBubble=true;}};EventUtils.preventDefault=function(){var e=EventUtils.getEvent();if(event.preventDefault){e.preventDefault();}else{e.returnValue=false;}};EventUtils.setCtrlMnemonic=function(domObj,keyChar,func,isBroadcast){if(!domObj){throw new NullPointerException("The parameter domObj is null");}if(StringUtils.isBlank(isBroadcast)){isBroadcast=true;}EventUtils.addDomEvent(domObj,"keydown",new Function("if(EventUtils.isCtrlKey()&&EventUtils.isSpecifiedKey('"+keyChar+"')){if(!"+isBroadcast+"){EventUtils.stopPropagation();EventUtils.preventDefault();}}"),false);EventUtils.addDomEvent(domObj,"onkeyup",new Function("if(EventUtils.isCtrlKey()&&EventUtils.isSpecifiedKey('"+keyChar+"')){eval('"+func+"()');}"),false);};EventUtils.setAltMnemonic=function(domObj,keyChar,func,isBroadcast){if(!domObj){throw new NullPointerException("The parameter domObj is null");}if(StringUtils.isBlank(isBroadcast)){isBroadcast=true;}EventUtils.addDomEvent(domObj,"keydown",new Function("if(EventUtils.isAltKey()&&EventUtils.isSpecifiedKey('"+keyChar+"')){if(!"+isBroadcast+"){EventUtils.stopPropagation();EventUtils.preventDefault();}}"),false);EventUtils.addDomEvent(domObj,"onkeyup",new Function("if(EventUtils.isAltKey()&&EventUtils.isSpecifiedKey('"+keyChar+"')){eval('"+func+"()');}"),false);};EventUtils.setShiftMnemonic=function(domObj,keyChar,func,isBroadcast){if(!domObj){throw new NullPointerException("The parameter domObj is null");}if(StringUtils.isBlank(isBroadcast)){isBroadcast=true;}EventUtils.addDomEvent(domObj,"keydown",new Function("if(EventUtils.isShiftKey()&&EventUtils.isSpecifiedKey('"+keyChar+"')){if(!"+isBroadcast+"){EventUtils.stopPropagation();EventUtils.preventDefault();}}"),false);EventUtils.addDomEvent(domObj,"onkeyup",new Function("if(EventUtils.isShiftKey()&&EventUtils.isSpecifiedKey('"+keyChar+"')){eval('"+func+"()');}"),false);};EventUtils.isSpaceKey=function(){return KeyUtils.isSpaceKey(EventUtils.getKeyCode());};EventUtils.isEnterKey=function(){return KeyUtils.isEnterKey(EventUtils.getKeyCode());};EventUtils.isESCKey=function(){return KeyUtils.isESCKey(EventUtils.getKeyCode());};EventUtils.isSpecifiedKey=function(char){return char.toUpperCase()==KeyUtils.fromCharCode(EventUtils.getKeyCode());};EventUtils.isCtrlKey=function(){var e=EventUtils.getEvent();return e.ctrlKey;};EventUtils.isShiftKey=function(){var e=EventUtils.getEvent();return e.ShiftKey;};EventUtils.isAltKey=function(){var e=EventUtils.getEvent();return e.altKey;};EventUtils.getKeyCode=function(){var e=EventUtils.getEvent();if(BrowserUtils.isIE()){return e.keyCode;}else{return e.which;}};EventUtils.setCursorToNextOnEnter=function(domObj){EventUtils.addDomEvent(domObj,"keydown",new Function("if(EventUtils.isEnterKey()){var e=EventUtils.getEvent();e.keyCode=9;}"),false);};function KeyUtils(){this.jsjava_class="jsorg.eob.document.KeyUtils";}KeyUtils.fromCharCode=function(keyCode){return String.fromCharCode(keyCode).toUpperCase();};KeyUtils.isESCKey=function(keyCode){return keyCode==27;};KeyUtils.isEnterKey=function(keyCode){return keyCode==13;};KeyUtils.isSpaceKey=function(keyCode){return keyCode==32;};function $obj(expr){if(expr==undefined||expr==null||expr==""){return null;}var parts=expr.split(".");var obj;for(var i=0;i<parts.length;i++){var part=parts[i];if(!obj){var pos1=part.indexOf("[");if(pos1!=-1){var prop=part.substring(0,pos1);var key=part.substring(pos1+1,part.length-1);obj=eval(prop+".get("+key+")");}else{obj=eval(part);}}else{var pos1=part.indexOf("[");if(pos1!=-1){var prop=part.substring(0,pos1);var key=part.substring(pos1+1,part.length-1);obj=eval("obj.get"+prop.capitalize()+"().get("+key+")");}else{obj=eval("obj.get"+part.capitalize()+"()");}}}return obj;}function $dom(expr){if(expr==undefined||expr==null||expr==""){return null;}var parts=expr.split(".");var obj=document;for(var i=0;i<parts.length;i++){var part=parts[i];var pos1=part.indexOf("[");if(pos1!=-1){var prop=part.substring(0,pos1);var key=part.substring(pos1+1,part.length-1);var elem=obj.getElementById(prop);obj=eval("elem.getAttribute("+key+")");}else{obj=obj.getElementById(part);var tagName=obj.tagName.toUpperCase();if(tagName=="IFRAME"||tagName=="FRAME"){obj=obj.contentWindow;}}}return obj;}function FormUtils(){this.jsjava_class="jsorg.eob.document.FormUtils";}FormUtils.getCheckedCount=function(form,checkboxName){var cObj=form.elements(checkboxName);if(!cObj){return 0;}if(cObj.length){var count=0;for(var i=0;i<cObj.length;i++){if(cObj[i].checked){count++;}}return count;}if(cObj.checked){return 1;}return 0;};FormUtils.getSelectedCount=function(form,selectName){var sObj=form.elements(selectName);if(!sObj){return 0;}var count=0;for(var i=0;i<sObj.options.length;i++){if(sObj.options[i].selected){count++;}}return count;};FormUtils.checkAllCheckbox=function(form,checkboxName){var cObj=form.elements(checkboxName);if(!cObj){return;}if(cObj.length){for(var i=0;i<cObj.length;i++){cObj[i].checked=true;}}else{cObj.checked=true;}};FormUtils.unCheckAllCheckbox=function(form,checkboxName){var cObj=form.elements(checkboxName);if(!cObj){return;}if(cObj.length){for(var i=0;i<cObj.length;i++){cObj[i].checked=false;}}else{cObj.checked=false;}};FormUtils.selectAll=function(form,selectName){var sObj=form.elements(selectName);if(!sObj){return;}if(sObj.multiple){for(var i=0;i<sObj.options.length;i++){sObj.options[i].selected=true;}}};FormUtils.selectByIndexes=function(form,selectName,indexes){var sObj=form.elements(selectName);if(!sObj){return;}var options=sObj.options;if(sObj.multiple){for(var i=0;i<indexes.length;i++){var index=indexes[i];if(index<options.length){options[index].selected=true;}}}else{var index=indexes[0];if(index<options.length){options[index].selected=true;}}};FormUtils.selectByValues=function(form,selectName,values){var sObj=form.elements(selectName);if(!sObj){return;}var options=sObj.options;if(sObj.multiple){for(var i=0;i<options.length;i++){var value=options[i].value;if(ArrayUtils.indexOf(values,value)!=-1){options[i].selected=true;}}}else{var firstValue=values[0];for(var i=0;i<options.length;i++){var value=options[i].value;if(value!=undefined&&value==firstValue){options[i].selected=true;}}}};FormUtils.getCheckedValues=function(form,checkboxName){var cObj=form.elements(checkboxName);if(!cObj){return;}var arr=new Array();if(cObj.length){for(var i=0;i<cObj.length;i++){if(cObj[i].checked){arr[arr.length]=cObj[i].value;}}}else{if(cObj.checked){arr[0]=cObj.value;}}return arr;};FormUtils.getRadioValue=function(form,radioName){var cObj=form.elements(radioName);if(!cObj){return;}var value;if(cObj.length){for(var i=0;i<cObj.length;i++){if(cObj[i].checked){value=cObj[i].value;break;}}}else{if(cObj.checked){value=cObj.value;}}return value;};FormUtils.getSelectedValues=function(form,selectName){var sObj=form.elements(selectName);if(!sObj){return;}var arr=new Array();var options=sObj.options;for(var i=0;i<options.length;i++){var option=options[i];if(option.selected){arr[arr.length]=option.value;}}return arr;};function HttpRequest(url){this.jsjava_class="jsjavax.servlet.http.HttpRequest";this.url=url;if(!url||url==""){this.url=location.href;}this.pos=url.indexOf("?");this.length=url.length;this.method="GET";this.queryString=this.url.substring(this.pos+1,this.length);this.parameterEntries=this.queryString.split("&");}HttpRequest.prototype.getParameter=function (paramName){if(!this.hasQuery){return null;}for(var i=0;i<this.parameterEntries.length;i++){var param=this.parameterEntries[i];var paramNameValue=param.split("=");if(paramNameValue[0]==paramName){return paramNameValue[1];}}return null;};HttpRequest.prototype.getParameterValues=function (paramName){if(!this.hasQuery){return null;}var paramNameCounter=0;for(var i=0;i<this.parameterEntries.length;i++){var param=this.parameterEntries[i];var paramNameValue=param.split("=");if(paramNameValue[0]==paramName){paramNameCounter++;}}var paramValues=new Array(paramNameCounter);paramValueCounter=0;for(var i=0;i<this.parameterEntries.length;i++){var param=this.parameterEntries[i];var paramNameValue=param.split("=");if(paramNameValue[0]==paramName){paramValues[paramValueCounter++]=paramNameValue[1];}}if(paramValueCounter==0){return null;}return paramValues;};HttpRequest.prototype.hasQuery=function (){return this.pos!=-1};HttpRequest.prototype.queryString=function (){return this.queryString;};HttpRequest.prototype.getMethod=function (){return this.method;};HttpRequest.prototype.getRequestURL=function (){return this.url;};HttpRequest.prototype.getRequestURI=function (){var pos=this.url.indexOf("://");var uriPos=this.url.indexOf("/",pos+3);return this.url.substring(uriPos,this.pos);};HttpRequest.prototype.getContextPath=function (){var pos=this.url.indexOf("://");var uriPos=this.url.indexOf("/",pos+3);var contextPathEndPos=this.url.indexOf("/",uriPos+1);return this.url.substring(uriPos,contextPathEndPos);};HttpRequest.prototype.getContextName=function (){var contextPath=this.getContextPath();return contextPath.substring(1);};HttpRequest.prototype.getCookies=function (){var cookies=document.cookie.split(";");return cookies;};HttpRequest.prototype.getCookie=function(name){var dc = document.cookie;var prefix = name + "=";var begin = dc.indexOf("; " + prefix);if (begin == -1) {begin = dc.indexOf(prefix);if (begin != 0) {return null;}} else {begin += 2;}var end = document.cookie.indexOf(";", begin);if (end == -1) {end = dc.length;}return unescape(dc.substring(begin + prefix.length, end));};HttpRequest.prototype.removeCookie=function(name,path,domain){if (this.getCookie(name)) {document.cookie = name + "=" +((path) ? "; path=" + path : "") +((domain) ? "; domain=" + domain : "") +"; expires=Thu, 01-Jan-70 00:00:01 GMT";}};function HttpResponse(){this.jsjava_class="jsjavax.servlet.http.HttpResponse";}HttpResponse.prototype.addCookieByItems=function (name, value, expires, path, domain, secure){var curCookie = name + "=" + escape(value) +((expires) ? "; expires=" + expires.toGMTString() : "") +((path) ? "; path=" + path : "") +((domain) ? "; domain=" + domain : "") +((secure) ? "; secure" : "");document.cookie = curCookie;};HttpResponse.prototype.addCookie=function (cookie){if(cookie==null||cookie==undefined||cookie==""){return;}var cName=cookie.getName();var cValue=cookie.getValue();var cExpires=cookie.getMaxAge();var cPath=cookie.getPath();var cDomain=cookie.getDomain();var cSecure=cookie.getSecure();this.addCookieByItems(cName,cValue,cExpires,cPath,cDomain,cSecure);};function Inet4Address(str){this.jsjava_class="jsjava.net.Inet4Address";this.ip=str;}Inet4Address.prototype.getAddress=function(){return this.ip;};Inet4Address.prototype.getBytesAddress=function(){return this.ip.split(".");};Inet4Address.prototype.toString=function(){return this.ip;};Inet4Address.isIpAddress=function(IPvalue,strict){if(strict != null  && strict == ""){if (IPvalue == "0.0.0.0")return false;else if (IPvalue == "255.255.255.255")return false;};theName = "IPaddress";var ipPattern = /^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/;var ipArray = IPvalue.match(ipPattern);if (ipArray == null){return false;}else {for (i = 1; i < 5; i++){thisSegment = parseInt(ipArray[i]);if (thisSegment > 255) {return false;}if (i == 1 && parseInt(ipArray[1]) == 0 ) {return false ;}}}return true;};Inet4Address.isIpMask=function(mask){var _maskTable = new Array("0.0.0.0", "128.0.0.0", "192.0.0.0", "224.0.0.0","240.0.0.0", "248.0.0.0", "252.0.0.0", "254.0.0.0", "255.0.0.0", "255.128.0.0","255.192.0.0", "255.224.0.0", "255.240.0.0", "255.248.0.0", "255.252.0.0","255.254.0.0", "255.255.0.0", "255.255.128.0", "255.255.192.0", "255.255.224.0","255.255.240.0", "255.255.248.0", "255.255.252.0", "255.255.254.0", "255.255.255.0","255.255.255.128", "255.255.255.192", "255.255.255.224", "255.255.255.240","255.255.255.248", "255.255.255.252", "255.255.255.254", "255.255.255.255");var i;for(i = 1; i< _maskTable.length -1; i++){if(mask == _maskTable[i]){return true;}}return(false);};function JLabel(text){this.jsjava_class="jsjavax.swing.JLabel";this.text=text;this.invisible=true;}JLabel.prototype.getText=function(){return this.text;};JLabel.prototype.setText=function(text){this.text=text;};JLabel.prototype.setFont=function(font){this.font=font;};JLabel.prototype.getFont=function(){return this.font;};JLabel.prototype.setForeground=function(foreground){this.foreground=foreground;};JLabel.prototype.getForeground=function(){return this.foreground;};JLabel.prototype.setBorder=function(border){this.border=border;};JLabel.prototype.getBorder=function(){return this.border;};JLabel.prototype.setBackground=function(background){this.background=background;};JLabel.prototype.getBackground=function(){return this.background;};JLabel.prototype.setInsets=function(insets){this.insets=insets;};JLabel.prototype.getInsets=function(){return this.insets;};JLabel.prototype.setInvisible=function(invisible){this.invisible=invisible;};JLabel.prototype.getInvisible=function(){return this.invisible;};JLabel.prototype.show=function(){var border=this.getBorder();var font=this.getFont();var foreground=this.getForeground();var background=this.getBackground();var insets=this.getInsets();var invisible=this.getInvisible();var display="inline";if(!invisible){display="none";}var str="";str+="<span style='border-width:";str+=border.getWidth();str+=";border-color:";str+="#"+border.getColor().toHexValue();str+=";border-style:";str+=border.getStyle();str+=";color:";str+=foreground.toHexValue();str+=";font-family:";str+=font.getFamily();str+=";font-size:";str+=font.getSize()+"pt";str+=";background-color:";str+=background.toHexValue();str+=";padding:";str+=insets.getTop()+" "+insets.getRight()+" "+insets.getBottom()+" "+insets.getLeft();str+=";display:";str+=display;str+=";'>";str+=this.getText();str+="</span>";document.writeln(str);};function JSArrayUtils(){this.jsjava_class="jsorg.eob.lang.JSArrayUtils";}JSArrayUtils.countValue=function(arr,value){if(!(arr instanceof Array)){return;}var count=0;for(var i=0;i<arr.length;i++){if(arr[i]==undefined){if(arr[i]==value){count++;}}else{if(arr[i].equals(value)){count++;}}}return count;};JSArrayUtils.countValues=function(arr){if(!(arr instanceof Array)){return;}var map=new HashMap();for(var i=0;i<arr.length;i++){var value=arr[i];if(map.containsKey(value)){var count=map.get(value);count++;map.put(value,count);}else{map.put(value,1);}}return map;};function JSUtils(){this.jsjava_class="jsorg.eob.lang.JSUtils";}JSUtils.isValidCodeFragment=function(str){var valid=true;try{eval(str);}catch(e){valid=false;}return valid;};function JTextField(text){this.jsjava_class="jsjavax.swing.JTextField";this.text=text;this.invisible=true;}JTextField.prototype.getText=function(){return this.text;};JTextField.prototype.setText=function(text){this.text=text;};JTextField.prototype.setFont=function(font){this.font=font;};JTextField.prototype.getFont=function(){return this.font;};JTextField.prototype.setForeground=function(foreground){this.foreground=foreground;};JTextField.prototype.getForeground=function(){return this.foreground;};JTextField.prototype.setBorder=function(border){this.border=border;};JTextField.prototype.getBorder=function(){return this.border;};JTextField.prototype.setBackground=function(background){this.background=background;};JTextField.prototype.getBackground=function(){return this.background;};JTextField.prototype.setInsets=function(insets){this.insets=insets;};JTextField.prototype.getInsets=function(){return this.insets;};JTextField.prototype.setInvisible=function(invisible){this.invisible=invisible;};JTextField.prototype.getInvisible=function(){return this.invisible;};JTextField.prototype.show=function(){var border=this.getBorder();var font=this.getFont();var foreground=this.getForeground();var background=this.getBackground();var insets=this.getInsets();var invisible=this.getInvisible();var display="inline";if(!invisible){display="none";}var str="";str+="<input style='border-width:";str+=border.getWidth();str+=";border-color:";str+=border.getColor().toHexValue();str+=";border-style:";str+=border.getStyle();str+=";color:";str+=foreground.toHexValue();str+=";font-family:";str+=font.getFamily();str+=";font-size:";str+=font.getSize()+"pt";str+=";background-color:";str+=background.toHexValue();str+=";padding:";str+=insets.getTop()+" "+insets.getRight()+" "+insets.getBottom()+" "+insets.getLeft();str+=";display:";str+=display;str+=";'";str+="value='"+this.getText()+"'";str+="/>";document.writeln(str);};function LocaleUtils(){this.jsjava_class="jsorg.apache.commons.lang.LocaleUtils";}LocaleUtils.availableLocaleList=function(){var list=new ArrayList();list.addAll(Arrays.asList(Locale.getAvailableLocales()));return list;};LocaleUtils.availableLocaleSet=function(){var set=new HashSet();set.addAll(Arrays.asList(Locale.getAvailableLocales()));return set;};LocaleUtils.countriesByLanguage=function(language){var larr=Locale.getAvailableLocales();var length=larr.length;var list=new ArrayList();for(var i=0;i<length;i++){var locale=larr[i];if(locale.getLanguage()==language){list.add(locale);}}return list;};LocaleUtils.isAvailableLocale=function(locale){var larr=Locale.getAvailableLocales();var length=larr.length;for(var i=0;i<length;i++){var clocale=larr[i];if(clocale.equals(locale)){return true;}}return false;};LocaleUtils.languagesByCountry=function(country){var larr=Locale.getAvailableLocales();var length=larr.length;var list=new ArrayList();for(var i=0;i<length;i++){var locale=larr[i];if(locale.getCountry()==country){list.add(locale);}}return list;};LocaleUtils.toLocale=function(str){var arr=str.split("_");var length=arr.length;var language="";var country="";var variant="";if(length>=1){language=arr[0];}if(length>=2){country=arr[1];}if(length>=3){variant=arr[2];}var locale=new Locale(language,country,variant);if(LocaleUtils.isAvailableLocale(locale)){return locale;}return null;};function MozillaHTMLElementPrototype(){this.jsjava_class="jsorg.eob.prototype.MozillaHTMLElementPrototype";}MozillaHTMLElementPrototype.load=function(){var isNoneIE=navigator.userAgent.indexOf("MSIE")==-1;if(isNoneIE){HTMLElement.prototype.__defineSetter__("outerHTML",function(sHTML){var r=this.ownerDocument.createRange();r.setStartBefore(this);var df=r.createContextualFragment(sHTML);this.parentNode.replaceChild(df,this);return sHTML;});HTMLElement.prototype.__defineGetter__("outerHTML",function(){var attr;var attrs=this.attributes;var str="<"+this.tagName.toLowerCase();for(var i=0;i<attrs.length;i++){attr=attrs[i];if(attr.specified)str+=" "+attr.name+'="'+attr.value+'"';}if(!this.canHaveChildren)return str+">";return str+">"+this.innerHTML+"</"+this.tagName.toLowerCase()+">";});HTMLElement.prototype.__defineGetter__("canHaveChildren",function(){switch(this.tagName.toLowerCase()){case "area":case "base":case "basefont":case "col":case "frame":case "hr":case "img":case "br":case "input":case "isindex":case "link":case "meta":case "param":return false;}return true;});}};MozillaHTMLElementPrototype.load();function MozillaNodePrototype(){this.jsjava_class="jsorg.eob.prototype.MozillaNodePrototype";}MozillaNodePrototype.load=function(){var isNoneIE=navigator.userAgent.indexOf("MSIE")==-1;if(isNoneIE){Node.prototype.replaceNode=function(node){this.parentNode.replaceChild(node,this);};Node.prototype.removeNode=function(removeChildren){if(removeChildren){return this.parentNode.removeChild(this);}else{var range=document.createRange();range.selectNodeContents(this);return this.parentNode.replaceChild(range.extractContents(),this);}};Node.prototype.swapNode=function(node){var nextSibling=this.nextSibling;var parentNode=this.parentNode;node.parentNode.replaceChild(this,node);parentNode.insertBefore(node,nextSibling);};}};MozillaNodePrototype.load();function MozillaXMLDOMPrototype(){this.jsjava_class="jsorg.eob.prototype.MozillaXMLDOMPrototype";}MozillaXMLDOMPrototype.load=function(){var isNoneIE=navigator.userAgent.indexOf("MSIE")==-1;if(isNoneIE){XMLDocument.prototype.selectNodes=function(xpath){var nsResolver = this.createNSResolver(this.documentElement);var elems=document.evaluate(xpath, this, nsResolver, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);var elemsLength=elems.snapshotLength;var arr=new Array(elemsLength);for(var i=0;i<elemsLength;i++){arr[i]=elems.snapshotItem(i);}return arr;};XMLDocument.prototype.selectSingleNode=function(xpath){var nsResolver = this.createNSResolver(this.documentElement);var elem=document.evaluate(xpath, this, nsResolver, XPathResult.ANY_UNORDERED_NODE_TYPE,null);if(elem){elem=elem.singleNodeValue}return elem;};Element.prototype.selectNodes=function(xpath){var ownerDom=this.ownerDocument;var nsResolver = ownerDom.createNSResolver(ownerDom.documentElement);var elems=document.evaluate(xpath, this, nsResolver, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);var elemsLength=elems.snapshotLength;var arr=new Array(elemsLength);for(var i=0;i<elemsLength;i++){arr[i]=elems.snapshotItem(i);}return arr;};Element.prototype.selectSingleNode=function(xpath){var ownerDom=this.ownerDocument;var nsResolver = ownerDom.createNSResolver(ownerDom.documentElement);var elem=document.evaluate(xpath, this, nsResolver, XPathResult.ANY_UNORDERED_NODE_TYPE,null);if(elem){elem=elem.singleNodeValue}return elem;};}};MozillaXMLDOMPrototype.load();function MultiDimensionArrayUtils(){this.jsjava_class="jsorg.eob.lang.MultiDimensionArrayUtils";}MultiDimensionArrayUtils.createTwoDimensionArray=function(n,m){if(n<0||m<0){throw new IllegalArgumentException(IllegalArgumentException.ERROR,"n and m must be postive");}var arr=new Array(n);for(var i=0;i<n;i++){arr[i]=new Array(m);}return arr;};MultiDimensionArrayUtils.createThreeDimensionArray=function(n,m,k){if(n<0||m<0||k<0){throw new IllegalArgumentException(IllegalArgumentException.ERROR,"n and m and k must be postive");}var arr=new Array(n);for(var i=0;i<n;i++){arr[i]=new Array(m);for(var j=0;j<m;j++){arr[i][j]=new Array(k);}}return arr;};function ObjectPrototype(){this.jsjava_class="jsorg.eob.prototype.ObjectPrototype";}ObjectPrototype.load=function(){Object.prototype.jsjava_class="Object";Object.prototype.equals=function(o){if(o==undefined||o==null){return false;}if(this==o){return true;}if(this.toString()==o.toString()){return true;}return false;};Object.prototype.clone=function(){throw new CloneNotSupportedException(CloneNotSupportedException.ERROR,"The object,which calls the clone method,need implement the clone method by itself");};Object.prototype.getClass=function(){if(this.jsjava_class){return this.jsjava_class;}if(this instanceof Array){return "Array";}if(this instanceof Boolean){return "Boolean";}if(this instanceof Date){return "Date";}if(this instanceof Function){return "Function";}if(this instanceof Number){return "Number";}if(this instanceof RegExp){return "RegExp";}if(this instanceof String){return "String";}return "Object";};};ObjectPrototype.load();function OSUtils(){this.jsjava_class="jsorg.eob.os.OSUtils";}OSUtils.isWindows=function(){return navigator.userAgent.indexOf("Win")!=-1;};OSUtils.isWindows95=function(){return navigator.userAgent.indexOf("Win95") > -1|| navigator.userAgent.indexOf("Windows 95") > -1;};OSUtils.isWindows98=function(){return navigator.userAgent.indexOf("Win98") > -1|| navigator.userAgent.indexOf("Windows 98") > -1;};OSUtils.isWindowsME=function(){return navigator.userAgent.indexOf("Win 9x 4.90") > -1|| navigator.userAgent.indexOf("Windows ME") > -1;};OSUtils.isWindows2000=function(){return navigator.userAgent.indexOf("Windows NT 5.0") > -1|| navigator.userAgent.indexOf("Windows 2000") > -1;};OSUtils.isWindowsXP=function(){return navigator.userAgent.indexOf("Windows NT 5.1") > -1|| navigator.userAgent.indexOf("Windows XP") > -1;};OSUtils.isWindowsNT4=function(){return navigator.userAgent.indexOf("Windows NT 4.0") > -1|| navigator.userAgent.indexOf("Windows NT") > -1|| navigator.userAgent.indexOf("WinNT4.0") > -1;};OSUtils.isMac=function(){return navigator.userAgent.indexOf("Mac")!=-1;};OSUtils.isUnix=function(){return navigator.userAgent.indexOf("X11")!=-1;};OSUtils.isSun=function(){return navigator.userAgent.indexOf("SunOS")!=-1;};function RandomStringUtils(){this.jsjava_class="jsorg.apache.commons.lang.RandomStringUtils";}RandomStringUtils.random=function(count,letters,numbers){if(isNaN(count)){return;}if(count<0){return;}if(count==0){return "";}var minAlpha="a".charCodeAt(0);var maxAlpha="z".charCodeAt(0);var alphas=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"];var digits=["0","1","2","3","4","5","6","7","8","9"];if(!letters&&numbers){var str="";for(var i=0;i<count;i++){str+=digits[Math.floor(Math.random()*10)];}return str;}if(letters&&!numbers){var str="";for(var i=0;i<count;i++){str+=alphas[Math.floor(Math.random()*26)];}return str;}if(letters&&numbers||!letters&&!numbers){var str="";for(var i=0;i<count;i++){var r=Math.floor(Math.random()*2);if(r==0){str+=alphas[Math.floor(Math.random()*26)];}else if(r==1){str+=digits[Math.floor(Math.random()*10)];}}return str;}return "";};RandomStringUtils.randomAlphabetic=function(count){return RandomStringUtils.random(count,true,false);};RandomStringUtils.randomAlphanumeric=function(count){return RandomStringUtils.random(count,true,true);};RandomStringUtils.randomNumeric=function(count){return RandomStringUtils.random(count,false,true);};function StopWatch(){this.jsjava_class="jsorg.apache.commons.lang.StopWatch";this.startTime=0;this.endTime=0;}StopWatch.prototype.start=function(){this.startTime=new Date().getTime();};StopWatch.prototype.stop=function(){this.endTime=new Date().getTime();};StopWatch.prototype.getTime=function(){return this.endTime-this.startTime;};StopWatch.prototype.getMilliSeconds=function(){return this.getTime();};StopWatch.prototype.getSeconds=function(){return this.getTime()/1000;};StopWatch.prototype.getMinutes=function(){return this.getTime()/(1000*60);};StopWatch.prototype.getHours=function(){return this.getTime()/(1000*3600);};function StringPrototype(){this.jsjava_class="jsorg.eob.prototype.StringPrototype";}StringPrototype.load=function(){String.prototype.jsjava_class="String";String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g, "");};String.prototype.startsWith=function(prefix,toffset){if(toffset==undefined){toffset=0;}if(prefix==undefined){return false;}if(this.indexOf(prefix)==toffset){return true;}return false;};String.prototype.endsWith=function(suffix){if(suffix==undefined){return false;}if(this.lastIndexOf(suffix)==this.length-suffix.length){return true;}return false;};String.prototype.concat=function(str){if(str==undefined){str="";}return this+str;};String.prototype.toCharArray=function(){if(this==undefined){return null;}var length=this.length;var chars=new Array(length);for(var i=0;i<length;i++){chars[i]=this.charAt(i);}return chars;};String.prototype.compareTo=function(o){if(o==undefined||!(o instanceof String)){return false;}if(this==o){return 0;}if(this>o){return 1;}if(this<o){return -1;}};String.prototype.capitalize=function(){if(this.length==1){return this.toUpperCase();}var nstr=this.charAt(0).toUpperCase()+this.substring(1);return nstr;};};StringPrototype.load();function StringUtils(){this.jsjava_class="jsorg.apache.commons.lang.StringUtils";}StringUtils.abbreviate=function(str,offset,maxWidth){if (str == null) {return null;}if (maxWidth < 4) {maxWidth==4;}if (str.length <= maxWidth) {return str;}if (offset > str.length) {offset = str.length;}if ((str.length - offset) < (maxWidth - 3)) {offset = str.length - (maxWidth - 3);}if (offset <= 4) {return str.substring(0, maxWidth - 3) + "...";}if (maxWidth < 7) {maxWidth=7;}if ((offset + (maxWidth - 3)) < str.length) {return "..." + StringUtils.abbreviate(str.substring(offset),0, maxWidth - 3);}return "..." + str.substring(str.length - (maxWidth - 3));};StringUtils.capitalize=function(str){if(str==null||str==""){return str;}if(str.length==1){return str.toUpperCase();}var nstr=str.charAt(0).toUpperCase()+str.substring(1);return nstr;};StringUtils.isEmpty=function(str){if(str==undefined||str==""||str==null){return true;}return false;};StringUtils.isNotEmpty=function(str){return !StringUtils.isEmpty(str);};StringUtils.isBlank=function(str){if(typeof(str)=="boolean"){return false;}if(str==undefined||str==""||str==null||/^\s*$/.test(str)){return true;}return false;};StringUtils.isNotBlank=function(str){return !StringUtils.isBlank(str);};StringUtils.isAlpha=function(str){return /^[A-Za-z]+$/.test(str);};StringUtils.isAlphanumeric=function(str){return /^[A-Za-z0-9]+$/.test(str);};StringUtils.isAlphanumericSpace=function(str){if(str==""){return true;}return /^[A-Za-z0-9\s]+$/.test(str);};StringUtils.isAlphaSpace=function(str){if(str==""){return true;}return /^[A-Za-z\s]+$/.test(str);};StringUtils.isAsciiPrintable=function(str){if (str == null) {return false;}var length = str.length();for (var i = 0; i < length; i++) {var ch=str.charAt(i);ch=ch.charCodeAt(0);if(ch < 32 && ch >= 127){return false;}}return true;};StringUtils.isNumeric=function(str){return /^[0-9]+$/.test(str);};StringUtils.isNumericSpace=function(str){return /^[0-9\s]+$/.test(str);};StringUtils.isWhitespace=function(str){return /^[\s]+$/.test(str);};StringUtils.joinArray=function(arr,separator){if(StringUtils.isEmpty(separator)){return arr.join("");}return arr.join(separator);};StringUtils.joinList=function(list,separator){if(!(list instanceof Collection)){return null;}if(StringUtils.isEmpty(separator)){separator="";}var arr=list.toArray();return arr.join(separator);};StringUtils.joinIterator=function(iterator,separator){if(!iterator||!iterator.jsjava_class||iterator.jsjava_class!="jsjava.util.Iterator"){return null;}if(StringUtils.isEmpty(separator)){separator="";}iterator.moveTo(0);var list=new ArrayList();while(iterator.hasNext()){list.add(iterator.next());}var arr=list.toArray();return arr.join(separator);};StringUtils.trim=function(str){if(StringUtils.isEmpty(str)){return str;}return str.replace(/(^\s*)|(\s*$)/g, "");};StringUtils.charLength=function(str){var nstr=str.replace(/[^x00-xff]/mg,"JJ");return nstr.length;};StringUtils.byteLength=function(str){var nstr=str.replace(/[^x00-xff]/mg,"JJ");return nstr.length;};StringUtils.byteSubstring=function(str,fromIndex,toIndex){if(StringUtils.isEmpty(str)){return "";}if(isNaN(fromIndex)||isNaN(toIndex)){return "";}if(fromIndex>toIndex){return "";}var chars=str.toCharArray();var count=0;var arr=new Array();var realFromIndex=0;var realToIndex=0;for(var i=0;i<chars.length;i++){var charStr=chars[i];if(/^[^x00-xff]$/g.test(charStr)){arr[i]=[count++,count++];var diff=count-fromIndex;if(diff>=1&&diff<=2){realFromIndex=i;}var diff2=count-toIndex;if(diff2>=1&&diff2<=2){realToIndex=i;break;}if(diff2==0){realToIndex=i+1;break;}}else{arr[i]=[count++];var diff=count-fromIndex;if(diff==1){realFromIndex=i;}var diff2=count-toIndex;if(diff2==1){realToIndex=i;break;}}}return str.substring(realFromIndex,realToIndex);};function UploadFile(filePath){this.jsjava_class="jsorg.eob.document.UploadFile";this.filePath=filePath;this.imageTypes=new HashSet();this.imageTypes.add("gif");this.imageTypes.add("jpg");this.imageTypes.add("bmp");if(filePath){var dotPos=filePath.lastIndexOf(".");if(dotPos!=-1){this.suffix=filePath.substring(dotPos+1);}}this.isImageLoaded=false;if(filePath){this.loadDatum();}}UploadFile.prototype.setFile=function(filePath){this.filePath=filePath;var dotPos=filePath.lastIndexOf(".");if(dotPos!=-1){this.suffix=filePath.substring(dotPos+1);}};UploadFile.prototype.loadDatum=function(){var ufo=this;function getDatum(){if(!ufo.filePath){return [-1,-1,-1];}var arr=new Array(3);if(BrowserUtils.isIE()&&ufo.isImage()){var img=new Image;img.src=ufo.filePath;if(img.readyState!="complete"){arr[0]=-1;arr[1]=-1;arr[2]=-1;return arr;}arr[0]=img.fileSize;arr[1]=img.width;arr[2]=img.height;this.isImageLoaded=true;return arr;}else{if(BrowserUtils.isIE()){var fos=new ActiveXObject("Scripting.FileSystemObject");var file=fos.GetFile(ufo.filePath);arr[0]=file.Size;return arr;}else{netscape.security.PrivilegeManager.enablePrivilege("UniversalFileRead");var file=new java.io.File(ufo.filePath);arr[0]=file.length();arr[1]=-1;arr[2]=-1;return arr;}}}var datum=getDatum();this.fileSize=datum[0];this.imageWidth=datum[1];this.imageHeight=datum[2];};UploadFile.prototype.isImage=function(){return this.imageTypes.contains(this.suffix);};UploadFile.prototype.addImageType=function(imageType){this.imageTypes.add(imageType);};UploadFile.prototype.addImageTypes=function(imageTypes){for(var i=0;i<imageTypes.length;i++){this.imageTypes.add(imageTypes[i]);}};UploadFile.prototype.getFileSize=function(){this.loadDatum();return this.fileSize;};UploadFile.prototype.getImageWidth=function(){this.loadDatum();return this.imageWidth;};UploadFile.prototype.getImageHeight=function(){this.loadDatum();return this.imageHeight;};function URL(url){this.jsjava_class="jsjava.net.URL";this.url=url;var schemePos=url.indexOf("://");var filePos=url.indexOf("/",schemePos+3);var portPos=url.indexOf(":",schemePos+1);if(portPos>filePos){portPos=-1;}var queryPos=url.indexOf("?");var anchorPos=url.indexOf("#");this.protocol=url.substring(0,schemePos);this.host=url.substring(schemePos+3,filePos);if(portPos!=-1){this.host=url.substring(schemePos+3,portPos);}if(portPos!=-1){this.port=url.substring(portPos+1,filePos);}else{this.port=getDefaultPort(this.scheme);}function getDefaultPort(protocol){var defautPort=null;switch(protocol){case "http":defaultPort="80";break;case "ftp":defaultPort="21";break;case "gopher":defaultPort="70";break;default:defaultPort="80";break;}return defaultPort;}if(anchorPos!=-1){this.file=url.substring(filePos,anchorPos);this.ref=url.substring(anchorPos+1);}else{this.file=url.substring(filePos);this.ref=null;}if(queryPos==-1){this.path=this.file;this.query=null;}else{this.path=url.substring(filePos,queryPos);if(anchorPos!=-1){this.query=url.substring(queryPos+1,anchorPos);}else{this.query=url.substring(queryPos+1);}}if(url.indexOf("mailto:")!=-1){this.protocol="mailto";this.host=null;this.file=this.path=url.substring("mailto:".length);this.port="-1";}}URL.prototype.getDefaultPort=function(){var defautPort=null;switch(this.protocol){case "http":defaultPort="80";break;case "ftp":defaultPort="21";break;case "gopher":defaultPort="70";break;case "file":defaultPort="-1";break;case "mailto":defaultPort="-1";break;default:defaultPort="80";break;}return defaultPort;};URL.prototype.getFile=function(){return this.file;};URL.prototype.getHost=function(){return this.host;};URL.prototype.getPath=function(){return this.path;};URL.prototype.getPort=function(){return this.port;};URL.prototype.getProtocol=function(){return this.protocol;};URL.prototype.getQuery=function(){return this.query;};URL.prototype.getRef=function(){return this.ref;};URL.prototype.getUserInfo=function(){return null;};function ValidatorUtils(){this.jsjava_class="jsorg.eob.validator.ValidatorUtils";}ValidatorUtils.isNull=function(value){if(value==undefined||value==null){return true;}return false;};ValidatorUtils.isBlankOrNull=function(value){if(ValidatorUtils.isNull(value)){return true;}if((value instanceof String)||typeof(value)=="string"){if(value==""||/^\s*$/.test(value)){return true;}return false;}if(value instanceof Collection||value instanceof Map){if(value.size()==0){return true;}return false;}if(value instanceof Array){return value.length==0;}return false;};ValidatorUtils.isByte=function(value){return Byte.checkValid(value);};ValidatorUtils.isChar=function(value){return Character.checkValid(value);};ValidatorUtils.isShort=function(value){return Short.checkValid(value);};ValidatorUtils.isInt=function(value){return Integer.checkValid(value);};ValidatorUtils.isLong=function(value){return Long.checkValid(value);};ValidatorUtils.isFloat=function(value){return Float.checkValid(value);};ValidatorUtils.isDouble=function(value){return Double.checkValid(value);};ValidatorUtils.isBoolean=function(value){if(value==true||value==false||value=="true"||value=="false"){return true;}return false;};ValidatorUtils.isEmail=function(value,pattern){if(value==undefined||value==""){return false;}if(pattern==undefined||pattern==""){var defaultPattern=/^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/;return defaultPattern.test(value);}if(typeof(pattern)=="string"){pattern=new RegExp(pattern);}return pattern.test(value);};ValidatorUtils.isUrl=function(value){var regx=/^[a-zA-z]+:\/\/[^\s]*$/;return regx.test(value);};ValidatorUtils.isIP4=function(value,strict){if(strict != null  && strict == ""){if (value == "0.0.0.0")return false;else if (value == "255.255.255.255")return false;};theName = "IPaddress";var ipPattern = /^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/;var ipArray = value.match(ipPattern);if (ipArray == null){return false;}else {for (i = 1; i < 5; i++){thisSegment = parseInt(ipArray[i]);if (thisSegment > 255) {return false;}if (i == 1 && parseInt(ipArray[1]) == 0 ) {return false ;}}}return true;};ValidatorUtils.isByteInRange=function(value,min,max){if(!ValidatorUtils.isByte(value)||!ValidatorUtils.isByte(min)||!ValidatorUtils.isByte(max)){return false;}if(value>=min&&value<=max){return true;}return false;};ValidatorUtils.isShortInRange=function(value,min,max){if(!ValidatorUtils.isShort(value)||!ValidatorUtils.isShort(min)||!ValidatorUtils.isShort(max)){return false;}if(value>=min&&value<=max){return true;}return false;};ValidatorUtils.isIntInRange=function(value,min,max){if(!ValidatorUtils.isInt(value)||!ValidatorUtils.isInt(min)||!ValidatorUtils.isInt(max)){return false;}if(value>=min&&value<=max){return true;}return false;};ValidatorUtils.isLongInRange=function(value,min,max){if(!ValidatorUtils.isLong(value)||!ValidatorUtils.isLong(min)||!ValidatorUtils.isLong(max)){return false;}if(value>=min&&value<=max){return true;}return false;};ValidatorUtils.isFloatInRange=function(value,min,max){if(!ValidatorUtils.isFloat(value)||!ValidatorUtils.isFloat(min)||!ValidatorUtils.isFloat(max)){return false;}if(value>=min&&value<=max){return true;}return false;};ValidatorUtils.isDoubleInRange=function(value,min,max){if(!ValidatorUtils.isDouble(value)||!ValidatorUtils.isDouble(min)||!ValidatorUtils.isDouble(max)){return false;}if(value>=min&&value<=max){return true;}return false;};ValidatorUtils.maxLength=function(value,max){if(!(value instanceof String)&&typeof(value)!="string"){value=new String(value);}if(value.length<=max){return true;}return false;};ValidatorUtils.maxValue=function(value,max){if(!ValidatorUtils.isDouble(value)||!ValidatorUtils.isDouble(max)){return false;}if(value<=max){return true;}return false;};ValidatorUtils.minLength=function(value,min){if(!ValidatorUtils.isLong(value)||!ValidatorUtils.isLong(max)){return false;}if(value>=min){return true;}return false;};ValidatorUtils.minValue=function(value,min){if(!ValidatorUtils.isDouble(value)||!ValidatorUtils.isDouble(min)){return false;}if(value>=min){return true;}return false;};ValidatorUtils.isMask=function(value,mask){if(value==undefined||value==null){return false;}if(value==""&&mask!=undefined&&mask!=null){return true;}if((mask instanceof String)||typeof(mask)=="string"){var regx=new RegExp(mask,"gi");return regx.test(value);}if(mask instanceof RegExp){return mask.test(value);}return false;};ValidatorUtils.isNumber=function(value){return StringUtils.isNumeric(value);};ValidatorUtils.isFinite=function(value){return isFinite(value);};function WindowUtils(){this.jsjava_class="jsorg.eob.window.WindowUtils";}WindowUtils.TOP=0;WindowUtils.RIGHT=1;WindowUtils.BOTTOM=2;WindowUtils.LEFT=3;WindowUtils.TOP_LEFT=4;WindowUtils.TOP_RIGHT=5;WindowUtils.BOTTOM_LEFT=6;WindowUtils.BOTTOM_RIGHT=7;WindowUtils.CENTER=8;WindowUtils.maximize=function(winObj,isLeftTitleBar){var titlebar_height=30;if(isLeftTitleBar==true){titlebar_height=0;}var border_width=4;var availHeight=winObj.screen.availHeight + titlebar_height;var availWidth=winObj.screen.availWidth + 2 * border_width;winObj.resizeTo(availWidth,availHeight);winObj.moveBy(-border_width,-titlebar_height);};WindowUtils.getSize=function(win){var myWidth = 0, myHeight = 0;if( typeof( win.innerWidth ) == 'number' ) {myWidth = win.innerWidth;myHeight = win.innerHeight;} else if( win.document.documentElement && ( win.document.documentElement.offsetWidth || win.document.documentElement.offsetHeight ) ) {myWidth = win.document.documentElement.offsetWidth;myHeight = win.document.documentElement.offsetHeight;} else if( win.document.body && ( win.document.body.offsetWidth || win.document.body.offsetHeight ) ) {myWidth = win.document.body.offsetWidth;myHeight = win.document.body.offsetHeight;}return [myWidth,myHeight];};WindowUtils.showInPosition=function(win,align,topBarHeight){var al=align;if(isNaN(align)){al=WindowUtils.CENTER;}if(win==undefined){win=window;}if(isNaN(topBarHeight)){topBarHeight=0;}var screenWidth=screen.availWidth;var screenHeight=screen.availHeight;var arr=WindowUtils.getSize(win);var winWidth=arr[0];var winHeight=arr[1];winHeight=winHeight+topBarHeight;switch(al){case WindowUtils.TOP : win.moveTo(screenWidth/2-winWidth/2,0);break;case WindowUtils.RIGHT : win.moveTo(screenWidth-winWidth,screenHeight/2-winHeight/2);break;case WindowUtils.BOTTOM : win.moveTo(screenWidth/2-winWidth/2,screenHeight-winHeight);break;case WindowUtils.LEFT : win.moveTo(0,screenHeight/2-winHeight/2);break;case WindowUtils.TOP_LEFT : win.moveTo(0,0);break;case WindowUtils.TOP_RIGHT : win.moveTo(screenWidth-winWidth,0);break;case WindowUtils.BOTTOM_LEFT : win.moveTo(0,screenHeight-winHeight);break;case WindowUtils.BOTTOM_RIGHT : win.moveTo(screenWidth-winWidth,screenHeight-winHeight);break;case WindowUtils.CENTER : win.moveTo(screenWidth/2-winWidth/2,screenHeight/2-winHeight/2);break;default : win.moveTo(screenWidth/2-winWidth/2,screenHeight/2-winHeight/2);break;}};function XmlBrowserParser(){this.jsjava_class="jsorg.eob.xml.XmlParser";this.xmlParser=XmlParserUtils.toXmlParser();this.xmlDoc=null;}XmlBrowserParser.prototype.loadXmlFile=function(xmlfile){this.xmlDoc=this.xmlParser.load(xmlfile);};XmlBrowserParser.prototype.loadXml=function(xml){if(window.ActiveXObject){this.xmlParser.loadXML(xml);this.xmlDoc=this.xmlParser;}else if(document.implementation){this.xmlDoc=XmlParserUtils.toMozillaXmlParser().parseFromString(xml,"text/xml");}};XmlBrowserParser.prototype.toDocument=function(){return this.xmlDoc;};function XmlParserUtils(){this.jsjava_class="jsorg.eob.xml.XmlParserUtils";}XmlParserUtils.toIEXmlParser=function(){return new ActiveXObject("Microsoft.XMLDOM");};XmlParserUtils.toMozillaXmlParser=function(){return new DOMParser();};XmlParserUtils.toMozillaXmlDocument=function(){return document.implementation.createDocument("","",null);};XmlParserUtils.toXmlParser=function(){if (window.ActiveXObject){return new ActiveXObject("Microsoft.XMLDOM");}else if (document.implementation &&document.implementation.createDocument){return document.implementation.createDocument("","",null);}else{return;}};function XmlSerializerUtils(){this.jsjava_class="jsorg.eob.xml.XmlSerializerUtils";}XmlSerializerUtils.serializeToString=function(xmldom){if(xmldom==undefined){return "";}if(BrowserUtils.isIE()){return xmldom.xml;}else{return new XMLSerializer().serializeToString(xmldom,"text/html");}return "";};
