function htmlEncode(a){return $("<div/>").text(a).html()}function htmlDecode(a){return $("<div/>").html(a).text()}function replaceAll(a,b,c){var d="",e,f=0,g=0;while((e=a.indexOf(b,f))!=-1){d+=a.substring(f,e)+c,f=e+b.length;if(g++>20)break}return f==0?a:(d+=a.substring(f),d)}function popUpWindow(a,b,c,d,e,f){popUpWin&&(popUpWin.closed||popUpWin.close());var g=(screen.width-d)/2,h=(screen.height-e)/2;return popUpWin=open(a,"popUpWin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable="+f+",copyhistory=no,width="+d+",height="+e+",left="+g+", top="+h+",screenX="+g+",screenY="+h+""),!1}var siteRoot=document.getElementById("SiteRootPath").href;$(document).ready(function(){$(".init-focus").select(),$(".popup-link").click(function(){return popUpWindow(this.href,0,0,520,470)})});var popUpWin=0
