﻿String.prototype.endsWith=function(a){if(this.length<a.length)return false;var s=this.substring(this.length-a.length,this.length);return(s==a)};String.prototype.startsWith=function(a){return(this.indexOf(a)==0)};String.prototype.trimStart=function(){var a=/\s*((\S+\s*)*)/;return this.replace(a,"$1")};String.prototype.trimEnd=function(){var a=/((\s*\S+)*)\s*/;return this.replace(a,"$1")};String.prototype.trim=function(){return this.trimStart().trimEnd()};String.prototype.isNullOrEmpty=function(){return((this==null)||(this.trim()==""))};String.prototype.removeFromEnd=function(a){if(this.endsWith(a)){return this.substring(0,this.length-a.length)}return this};function ffm_PopupController(a,b,c,d,e,f,g,h,i,j){this._status=a;this._toolbar=b;this._location=c;this._menubar=d;this._directories=e;this._resizable=f;this._scrollbars=g;this._height=h;this._width=i;this._windowname=j}ffm_PopupController.prototype.Open=function(a){var b="width="+this._width;b+=",height="+this._height;b+=",status="+this._status;b+=",toolbar="+this._toolbar;b+=",location="+this._location;b+=",menubar="+this._menubar;b+=",directories="+this._directories;b+=",resizable="+this._resizable;b+=",scrollbars="+this._scrollbars;try{my_window=window.open(a,this._windowname,b)}catch(err){}if(my_window!=null)my_window.focus()};function GetParentNode(a,b){if(a!=null){var c=a.parentNode;if(c!=null){if(c.nodeName.toUpperCase()==b.toUpperCase()){return c}else{return GetParentItem(c,b)}}}return null}function SetSelectedListItem(a,b,c){var d=GetParentNode(a,"li");var e=GetParentNode(d,"ul");if(d!=null&&e!=null){var f=e.getElementsByTagName("li");if(f!=null){for(var i=0;i<f.length;i++)f[i].className=c}d.className=b}}function ShowElementAtList(a,b){var o;for(var i=0;i<b.length;i++){o=document.getElementById(b[i]);if(o!=null){o.style.display="none"}}o=document.getElementById(a);if(o!=null)o.style.display="block"}