function submitForm(n){var t=n.ownerDocument.createElement("input");t.style.display="none",t.type="submit",n.appendChild(t).click(),n.removeChild(t)}function process_form(n){var t="",i=GetElementByClientId("formaction");i!=null&&(i.value=n),t==""?submitForm(document.forms[0]):errors.showError(t)}function encodeMyHtml(n){var t=n;return t=stringreplace(t,"=","%3F"),t=stringreplace(t,"+","%2B"),t=stringreplace(t,"?","%3F"),t=stringreplace(t,"&","%26"),t=stringreplace(t,"@","%40")}function PreviewChanges(n){window.open(pageName+"?Mode=Preview&ArticleID="+n)}function PreviewChangesFromWF(n){window.open("default.aspx?Mode=Preview&ArticleID="+n+"&pinwf=1")}function FontHelp(){window.open("FontHelp.htm","Help","toolbar=no,width=300,height=450,resizable, scrollbars")}function SetAction(n){GetElementByClientId("action").value=n}function ResubmitFormWithEdit(n){location.href=pageName+"?Mode=BusyEditing&ArticleID="+n}function ResubmitForm(n){location.href=pageName+"?ArticleID="+n}function AddComments(n,t){var i;i="/Workflow/WorkflowComments.aspx?ArticleID="+n+"&ItemRecordId="+t,window.open(i,"Comments","toolbar=no,width=820,height=600,resizable, scrollbars")}function GoToAttributes(n,t){location.href="/ArticleAttributeEdit.aspx?Function=Workflow&ArticleID="+n+"&ItemRecordId="+t}function ResubmitFormAfterCheckin(n){location.href=pageName+"?ArticleID="+n}function getDocHeight(n){var t=0,i,r;return n.body&&(n.body.scrollHeight&&(t=i=n.body.scrollHeight),n.body.offsetHeight&&(t=r=n.body.offsetHeight),i&&r?t=Math.max(i,r):!i&&r?t=r:i&&!r&&(t=i)),t}function getDocWidth(n){var t=0,i,r;return n.body&&(n.body.scrollWidth&&(t=i=n.body.scrollWidth),n.body.offsetWidth&&(t=r=n.body.offsetWidth),i&&r?t=Math.max(i,r):!i&&r?t=r:i&&!r&&(t=i)),t}function ResizeParentFrame(n){var i=window.frames[n],t=document.getElementById?document.getElementById(n):document.all?document.all[n]:null,r,u;t&&i&&(t.style.height="auto",r=getDocHeight(i.document),u=getDocWidth(i.document),r&&(t.style.height=r+"px"),u&&(t.style.width=u+"px"))}function loadIframe(n,t){return window.frames[n]?(window.frames[n].location=t,!1):!0}function ExecParentWndScript(sScript,close){parentWnd&&(parentWnd.closed||(parentWnd.execScript?parentWnd.execScript(sScript):eval("self.opener."+sScript),close&&setTimeout("window.close",2e3)))}function getSelectedButton(n){for(var t=0;t<n.length;t++)if(n[t].checked)return t;return 0}function isvalidemail(n){return n.length>0?n.indexOf("@")!=-1&&n.indexOf(".")!=-1?!0:!1:!0}function is_checked(n){var t,i;if(!n)return!1;if(n.length){for(i=n.length,t=0;t<i;t++)if(n[t].checked)return!0}else return n.checked}function get_checkedID(n){var t,i;if(!n)return-1;if(n.length){for(i=n.length,t=0;t<i;t++)if(n[t].checked)return n[t].value}else if(n.checked)return n.value}function isblank(n){for(var i,t=0;t<n.length;t++)if(i=n.charAt(t),i!=" "&&i!="\n"&&i!="\t")return!1;return!0}function MoveFieldUpDown(n,t){var r=0,i=0;if((i=n.options.selectedIndex,!(i<0))&&n.options[i].value!=0){if(t=="U"){if(i>0&&n.options[i-1].value==0){alert("You cannot move a question between sections");return}}else if(n.options.length>i+1&&n.options[i+1].value==0){alert("You cannot move a question between sections");return}if(OldValue=n.options[i].value,OldText=n.options[i].text,OldStyle=n.options[i].style.cssText,t=="U"){if(i==0)return;r=i-1,nValue=n.options[r].value,nText=n.options[r].text,n.options[i]=new Option(nText,nValue),n.options[i].style.cssText=n.options[r].style.cssText,n.options[r].value=OldValue,n.options[r].text=OldText,n.options[r].style.cssText=OldStyle,n.options[r].selected=!0}if(t=="D"){if(n.options.length==i+1)return;r=i+1,nValue=n.options[r].value,nText=n.options[r].text,n.options[i]=new Option(nText,nValue),n.options[i].style.cssText=n.options[r].style.cssText,n.options[r].value=OldValue,n.options[r].text=OldText,n.options[r].style.cssText=OldStyle,n.options[r].selected=!0}}}function move(n,t){for(var r,i=0;i<n.options.length;i++)n.options[i].selected&&n.options[i].value!=""&&(r=new Option,r.value=n.options[i].value,r.text=n.options[i].text,r.style.cssText=n.options[i].style.cssText,t.options[t.options.length]=r,n.options[i].value="",n.options[i].text="");BumpUp(n)}function moveall(n,t){for(var r,i=0;i<n.options.length;i++)r=new Option,r.value=n.options[i].value,r.text=n.options[i].text,r.style.cssText=n.options[i].style.cssText,t.options[t.options.length]=r,n.options[i].value="",n.options[i].text="";BumpUp(n)}function remove(n){for(var i,t=0;t<n.options.length;t++)n.options[t].selected&&n.options[t].value!=""&&(i=new Option,i.value=n.options[t].value,i.text=n.options[t].text,i.style.cssText=n.options[t].style.cssText,n.options[t].value="",n.options[t].text="");BumpUp(n)}function BumpUp(n){for(var t,r,i=0;i<n.options.length;i++)if(n.options[i].value==""){for(t=i;t<n.options.length-1;t++)n.options[t].value=n.options[t+1].value,n.options[t].text=n.options[t+1].text;r=i;break}r<n.options.length&&(n.options.length-=1,BumpUp(n))}function showHideCombo(n,t,i,r,u){var h,f=new Array(5),c,s,o,e;for(f[0]=new Array(2),f[1]=new Array(0),f[2]=new Array(0),f[3]=new Array(0),f[4]=new Array(0),f[5]=new Array(0),f[0][0]="projectdetails.aspx",f[0][1]="cboProjectTemplate",f[0][2]="cboChooseType",f[1][0]="projecthistory.aspx",f[2][0]="deptmembers.aspx",f[3][0]="securitygroup.aspx",f[4][0]="busunitmembers.aspx",f[5][0]="project_timeline.aspx",c=location.pathname.toLowerCase(),s=!1,e=0;e<f.length;e++)if(c.indexOf(f[e][0])>0)for(s=!0,o=1;o<f[e].length;o++)document.forms[0].elements[f[e][o]]&&showHideElement(document.forms[0].elements[f[e][o]],n,t,i,r,u);if(!s)for(e=0;e<document.forms[0].length;e++)h=document.forms[0].elements[e],showHideElement(h,n,t,i,r,u)}function showHideElement(n,t,i,r,u,f){var e=0,o=0,c,s,h,l;if(n.type&&n.type!=null&&n.type.substring(0,6)=="select"){for(c=n;c.tagName!="BODY";)e+=c.offsetLeft,o+=c.offsetTop,c=c.offsetParent;s=o,h=e,o=parseInt(s)+parseInt(n.offsetHeight),e=parseInt(h)+parseInt(n.offsetWidth),l=0,(t>=h&&t<=e&&i>=s&&i<=o||t+r>=h&&t+r<=e&&i>=s&&i<=o||t>=h&&t<=e&&i+u>=s&&i+u<=o||t+r>=h&&t+r<=e&&i+u>=s&&i+u<=o||h>=t&&h<=t+r&&s>=i&&s<=i+u||e>=t&&e<=t+r&&s>=i&&s<=i+u||h>=t&&h<=t+r&&o>=i&&o<=i+u||e>=t&&e<=t+r&&o>=i&&o<=i+u||t>=h&&t<=e&&i<=s&&i+u>=o||t>=h&&t<=e&&i>=s&&i+u<=o||t+r>=h&&t+r<=e&&i<=s&&i+u>=o||t+r>=h&&t+r<=e&&i>=s&&i+u<=o||i>=s&&i<=o&&t<=h&&t+r>=e||i>=s&&i<=o&&t>=h&&t+r<=e||i+u>=s&&i+u<=o&&t<=h&&t+r>=e||i+u>=s&&i+u<=o&&t>=h&&t+r<=e)&&(l=1),l==1&&(n.style.visibility=f)}}function menuOpenWnd(n,t,i){newWnd!=null&&newWnd.close(),newWnd=window.open(n,t,i),newWnd.focus();return}function menuChangeImage(n,t){document.images[n]&&(document.images[n].src=t.src)}function menuChangeBGImage(n,t){document.getElementById(n)&&document.getElementById(n).style&&(document.getElementById(n).style.backgroundImage="url("+t.src+")")}function stringreplace(n,t,i){for(var r=n,u=r.indexOf(t);u>-1;)r=r.replace(t,i),u=r.indexOf(t,u+i.length+1);return r}function CallSearch(n,t,i){var f,r,y,u,h,a,c,s,e,o;if(f=document.getElementById("Module"+t+"_strSearchKeyword"+t).value,isblank(f)){alert("Please enter your keywords");return}var k=document.getElementById("Module"+t+"_radioSearchOption_0"),d=document.getElementById("Module"+t+"_radioSearchOption_1"),v=document.getElementById("Module"+t+"_radioSearchOption_2");if(v&&v.checked&&(i=1),r="''",i==1){var p=document.getElementById("Module"+t+"_textNewWindowHeight"),w=document.getElementById("Module"+t+"_textNewWindowWidth"),b=document.getElementById("Module"+t+"_textNewWindiwResize"),l=0;r="'toolbar=yes",p&&IsNumber(p.value)&&(r=r+",height="+p.value,l=1),w&&IsNumber(w.value)&&(r=r+",width="+w.value,l=1),b&&(b.value=="True"?(r=r+",resizable=yes",l=1):b.value=="False"&&(r=r+",resizable=no",l=1)),l==1&&(r=r+",scrollbars=1")}if(v&&v.checked){r=r+",toolbar=1,menubar=1,titlebar=1,location=1'",url="http://www.google.com.au/search?hl=en&q="+escape(encodeMyHtml(f))+"&meta=cr%3DcountryAU",window.open(url,"_blank",r,"true");return}if(i==1&&(r=r+"'"),y=document.getElementById("BaseDefault"),y)u=y.href.substring(0,y.href.lastIndexOf("/")+1)+"PerformSearch.aspx";else{if(h=document.getElementsByTagName("script"),a="",u="",h.length>0)for(c=0;c<h.length;c++)if(h[c].getAttribute&&h[c].getAttribute("src")&&(a=h[c].getAttribute("src"),a.toLowerCase().indexOf(pageName)>=0)){u=a.substring(0,a.length-pageName.length)+"../../PerformSearch.aspx";break}u==""&&(u="/PerformSearch.aspx")}if(s=document.getElementById("Module"+t+"_selSearchSection"),s&&s.selectedIndex>=0?(e=s.options[s.selectedIndex].value,o=s.options[s.selectedIndex].text):(e="",o=""),k&&k.checked){i==1?window.open(u+"?ArticleID="+n+"&ModuleID="+t+"&Keywords="+escape(encodeMyHtml(f))+"&SiteSection="+escape(encodeMyHtml(e))+"&SiteSectionDescr="+escape(encodeMyHtml(o))+"&multiSite=false","_blank",r,"true"):location.href=u+"?ArticleID="+n+"&ModuleID="+t+"&Keywords="+escape(encodeMyHtml(f))+"&SiteSection="+escape(encodeMyHtml(e))+"&SiteSectionDescr="+escape(encodeMyHtml(o))+"&multiSite=false";return}if(d&&d.checked){i==1?window.open(u+"?ArticleID="+n+"&ModuleID="+t+"&Keywords="+escape(encodeMyHtml(f))+"&SiteSection="+escape(encodeMyHtml(e))+"&SiteSectionDescr="+escape(encodeMyHtml(o))+"&multiSite=true","_blank",r,"true"):location.href=u+"?ArticleID="+n+"&ModuleID="+t+"&Keywords="+escape(encodeMyHtml(f))+"&SiteSection="+escape(encodeMyHtml(e))+"&SiteSectionDescr="+escape(encodeMyHtml(o))+"&multiSite=true";return}i==1?window.open(u+"?ArticleID="+n+"&ModuleID="+t+"&Keywords="+escape(encodeMyHtml(f))+"&SiteSection="+escape(encodeMyHtml(e))+"&SiteSectionDescr="+escape(encodeMyHtml(o)),"_blank",r,"true"):location.href=u+"?ArticleID="+n+"&ModuleID="+t+"&Keywords="+escape(encodeMyHtml(f))+"&SiteSection="+escape(encodeMyHtml(e))+"&SiteSectionDescr="+escape(encodeMyHtml(o))}function HandleSearch(n,t,i,r){if(n.keyCode==13)return CallSearch(t,i,r),!document.all&&document.getElementById&&(n.preventDefault(),n.stopPropagation()),n.cancelBubble=!0,n.returnValue=!1,!1}function trim(n){while(n.substring(0,1)==" ")n=n.substring(1,n.length);while(n.substring(n.length-1,n.length)==" ")n=n.substring(0,n.length-1);return n}function SendXMLHttpRequest(n,t){var i=null;i=document.getElementById("loadingDiv"),i!=null&&(i.innerHTML="<img src='/images/spinner.gif' alt='loading..please wait' /><label> loading... please wait<\/label>"),XmlHttpRequestResponseHandlerFunction=t;try{this.XmlHttpRequestInstance=new ActiveXObject("Msxml2.XMLHTTP")}catch(r){try{XmlHttpRequestInstance=new ActiveXObject("Microsoft.XMLHTTP")}catch(u){XmlHttpRequestInstance=!1}}if(XmlHttpRequestInstance||typeof XMLHttpRequest=="undefined"||(XmlHttpRequestInstance=new XMLHttpRequest),!XmlHttpRequestInstance&&window.createRequest)try{XmlHttpRequestInstance=window.createRequest()}catch(r){XmlHttpRequestInstance=!1}XmlHttpRequestInstance?(XmlHttpRequestInstance.open("GET",n,!0),XmlHttpRequestInstance.onreadystatechange=ReceiveXMLHttpResponse,XmlHttpRequestInstance.send(null)):alert("Cannot Initiate HTTP Request.")}function ReceiveXMLHttpResponse(ResponseHandlerFunction){XmlHttpRequestInstance.readyState==4&&(XmlHttpRequestInstance.status==200?(eval(XmlHttpRequestResponseHandlerFunction+"('"+XmlHttpRequestInstance.responseText+"')"),setTimeout(loadingComplete,2e3)):alert("Bad HTTP Request"))}function loadingComplete(){var n=null;n=document.getElementById("loadingDiv"),n!=null&&(n.innerHTML="")}function AjaxRequest(selectedFolderID,articleListControl){var ajaxResponsePageName=GetRoot()+"AjaxRequest.aspx";jsGlobalArticleListControl=articleListControl,SendXMLHttpRequest(ajaxResponsePageName+"?Type=ArticlesForFolder&FolderID="+eval(selectedFolderID),"AjaxPopulateArticleList")}function AjaxPopulateArticleList(n){var i=[],f,t=0,r=1,u=document.getElementById(jsGlobalArticleListControl);for(u.options.length=0,i=n.split("||||"),f=i.length,u.options[0]=new Option("(none)","0",!1,!1);t<f;)i[t]!=null&&i[t].toString().length>0&&(name=i[t].toString().split("|||")[0].toString(),value=i[t].toString().split("|||")[1].toString(),u.options[r]=new Option(name,value,!1,!1),r=r+1),t=t+1}function OpenWindow(n){var t,i,r,u;n!=""&&(screen.width>800?(t=205,i=186,r=810,u=475):(t=205,i=185,r=582,u=312),n.toLowerCase().indexOf(".aspx")>-1&&(n=n.indexOf("?")>-1?n+"&Embed=Y":n+"?Embed=Y"),window.open(n,"","menubar=yes, scrollbars=yes, status=no, titlebar=yes, toolbar=no, resizable=yes, left="+t+", top="+i+", width="+r+", height="+u))}function assignImgSubmitButton(n){if(n.length!=0){if(sCtrlID==null||sCtrlID==""){alert("Missing control ID, please try again!");return}document.getElementById(sCtrlID+"imgSubmitButton")&&(document.getElementById(sCtrlID+"imgSubmitButton").src=n,document.getElementById(sCtrlID+"hidSubmitButtonImage").value=n,self.focus())}}function GetElementByClientId(n){return document.getElementById(GetClientId(n))}function GetClientId(n){var i,t;return(t=n,document.getElementById(t)!=null)?t:(i="ctl00_ContentPlaceHolderMain",t=i+"_"+n,document.getElementById(t)!=null)?t:(i="ctl00_ContentPlaceHolderMainNoAjax",t=i+"_"+n,document.getElementById(t)!=null?t:void 0)}function GetRoot(){return window.location.protocol+"//"+window.location.host+"/"}function CopyURLToClipboard(n,t){navigator.appName=="Microsoft Internet Explorer"&&navigator.appVersion>="4.0"?(Copied=n.createTextRange(),Copied.execCommand("RemoveFormat"),Copied.execCommand("Copy"),alert("User Friendly URL copied to Clipboard")):alert("Your browser security does not support clipboard access: Here is your url \n"+t)}function getQueryVariable(n){for(var u=window.location.search.substring(1),r=u.split("&"),i,t=0;t<r.length;t++)if(i=r[t].split("="),i[0].toLowerCase()==n.toLowerCase())return i[1]}function confirmDelete(){var n=confirm("Are you sure you wish to delete this record?");return n?!0:!1}function ClearTextSelection(){var n=window.getSelection?window.getSelection():document.selection;n&&(n.removeAllRanges?n.removeAllRanges():n.empty&&n.empty())}function MakeValidUrlSegmentForArticle(n){var t=n.trim();return t=t.replace(/'/gi,""),t=t.replace(/[^\w-_\/]/gi,"-"),t=t.replace(/\-+/g,"-"),t=t.replace(/-$/g,""),t=t.replace(/^-/g,""),t.toLowerCase()}function MakeValidUrlSegment(n){var t=n.trim();return t=t.replace(/'/gi,""),t=t.replace(/[^\w-_]/gi,"-"),t=t.replace(/\-+/g,"-"),t=t.replace(/-$/g,""),t=t.replace(/^-/g,""),t.toLowerCase()}function getInternetExplorerVersion(){var i=-1,n,t;return navigator.appName=="Microsoft Internet Explorer"?(n=navigator.userAgent,t=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})"),t.exec(n)!=null&&(i=parseFloat(RegExp.$1))):navigator.appName=="Netscape"&&(n=navigator.userAgent,t=new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})"),t.exec(n)!=null&&(i=parseFloat(RegExp.$1))),i}function configureTabs(n){function i(n){var i=n.closest("[role='tablist']"),t;return i.find("li[aria-selected='true']").attr("aria-selected","false").find("a.selected").removeClass("selected").find("span.sr-only").text(" - Show below"),n.addClass("selected").parent().attr("aria-selected","true").find("span.sr-only").text(" - Currently showing"),i.find("a").each(function(){var t=$(this).attr("href");$(t).hide().attr("aria-expanded","false").attr("aria-hidden","true")}),t=n.attr("href"),t&&$(t).show().attr("aria-expanded","true").attr("aria-hidden","false"),!1}containerEl=$(n);var t=containerEl.find("ul.tabs").first();t.attr("role","tablist"),t.find("li").each(function(n){var r=$(this),t=r.find("a"),u=t.attr("href").replace("#",""),f=t.attr("id")||"tabtitle"+n,i=$("#"+u);i.length<1&&(i=containerEl.find("[id$='"+u+"']"),u=i[0].id,i.length>0&&t.attr("href","#"+i[0].id)),r.attr("role","tab").attr("aria-controls",u).attr("aria-labelledby",f),t.attr("role","presentation").attr("id",f),n==0?(r.attr("aria-selected","true"),t.addClass("selected"),i.attr("aria-expanded","true").attr("aria-hidden","false"),/Currently showing/i.test(t.text())||t.append('<span class="sr-only"> - Currently showing<\/span>')):(r.attr("aria-selected","false"),t.removeClass("selected"),i.attr("aria-expanded","false").attr("aria-hidden","true").css("display","none"),/Show below/i.test(t.text())||t.append('<span class="sr-only"> - Show below<\/span>')),i.attr("role","tabpanel").attr("aria-labelledby",f).addClass("tab_content")}),t.find("li a").click(function(n){return n.preventDefault(),i($(this))});containerEl.on("setActiveTab",function(n,t){var u=$(this),r=u.find("[href='"+t+"']"),f=r.closest("[role='tablist']");i(r)})}function setupSectionToggles(){$("[data-togglectrl]").each(function(){function i(n,t){n.prop("checked")?t.show():t.hide()}var n=$(this),r=n.data("togglectrl"),t=$(r);i(t,n),t.change(n,function(n){i($(this),n.data)})})}function submitForm(n){var t=n.ownerDocument.createElement("input");t.style.display="none",t.type="submit",n.appendChild(t).click(),n.removeChild(t)}function process_form(n){var t="";GetElementByClientId("formaction").value=n,t==""?submitForm(document.forms[0]):alert(t)}function CallSearch(n,t,i){var f,r,y,u,h,a,c,s,e,o;if(f=GetElementByClientId("Module"+t+"_strSearchKeyword"+t).value,isblank(f)){alert("Please enter your keywords");return}var k=GetElementByClientId("Module"+t+"_radioSearchOption_0"),d=GetElementByClientId("Module"+t+"_radioSearchOption_1"),v=GetElementByClientId("Module"+t+"_radioSearchOption_2");if(v&&v.checked&&(i=1),r="''",i==1){var p=GetElementByClientId("Module"+t+"_textNewWindowHeight"),w=GetElementByClientId("Module"+t+"_textNewWindowWidth"),b=GetElementByClientId("Module"+t+"_textNewWindiwResize"),l=0;r="'toolbar=yes",p&&IsNumber(p.value)&&(r=r+",height="+p.value,l=1),w&&IsNumber(w.value)&&(r=r+",width="+w.value,l=1),b&&(b.value=="True"?(r=r+",resizable=yes",l=1):b.value=="False"&&(r=r+",resizable=no",l=1)),l==1&&(r=r+",scrollbars=1")}if(v&&v.checked){r=r+",toolbar=1,menubar=1,titlebar=1,location=1'",url="http://www.google.com.au/search?hl=en&q="+escape(encodeMyHtml(f))+"&meta=cr%3DcountryAU",window.open(url,"_blank",r,"true");return}if(i==1&&(r=r+"'"),y=GetElementByClientId("BaseDefault"),y)u=y.href.substring(0,y.href.lastIndexOf("/")+1)+"PerformSearch.aspx";else{if(h=document.getElementsByTagName("script"),a="",u="",h.length>0)for(c=0;c<h.length;c++)if(h[c].getAttribute&&h[c].getAttribute("src")&&(a=h[c].getAttribute("src"),a.toLowerCase().indexOf(pageName)>=0)){u=a.substring(0,a.length-pageName.length)+"../../PerformSearch.aspx";break}u==""&&(u="/PerformSearch.aspx")}if(s=document.getElementById(GetClientId("Module"+t+"_selSearchSection")),s&&s.selectedIndex>=0?(e=s.options[s.selectedIndex].value,o=s.options[s.selectedIndex].text):(e="",o=""),k&&k.checked){i==1?window.open(u+"?ArticleID="+n+"&ModuleID="+t+"&Keywords="+escape(encodeMyHtml(f))+"&SiteSection="+escape(encodeMyHtml(e))+"&SiteSectionDescr="+escape(encodeMyHtml(o))+"&multiSite=false","_blank",r,"true"):location.href=u+"?ArticleID="+n+"&ModuleID="+t+"&Keywords="+escape(encodeMyHtml(f))+"&SiteSection="+escape(encodeMyHtml(e))+"&SiteSectionDescr="+escape(encodeMyHtml(o))+"&multiSite=false";return}if(d&&d.checked){i==1?window.open(u+"?ArticleID="+n+"&ModuleID="+t+"&Keywords="+escape(encodeMyHtml(f))+"&SiteSection="+escape(encodeMyHtml(e))+"&SiteSectionDescr="+escape(encodeMyHtml(o))+"&multiSite=true","_blank",r,"true"):location.href=u+"?ArticleID="+n+"&ModuleID="+t+"&Keywords="+escape(encodeMyHtml(f))+"&SiteSection="+escape(encodeMyHtml(e))+"&SiteSectionDescr="+escape(encodeMyHtml(o))+"&multiSite=true";return}i==1?window.open(u+"?ArticleID="+n+"&ModuleID="+t+"&Keywords="+escape(encodeMyHtml(f))+"&SiteSection="+escape(encodeMyHtml(e))+"&SiteSectionDescr="+escape(encodeMyHtml(o)),"_blank",r,"true"):location.href=u+"?ArticleID="+n+"&ModuleID="+t+"&Keywords="+escape(encodeMyHtml(f))+"&SiteSection="+escape(encodeMyHtml(e))+"&SiteSectionDescr="+escape(encodeMyHtml(o))}function encodeMyHtml(n){var t=n;return t=stringreplace(t,"=","%3D"),t=stringreplace(t,"+","%2B"),t=stringreplace(t,"?","%3F"),t=stringreplace(t,"&","%26"),t=stringreplace(t,"@","%40")}function CallNews(n,t){var r=document.getElementById(GetClientId("BaseDefault")),i;i=r?r.href.substring(0,r.href.lastIndexOf("/")+1)+pageName:location.href,t==1?window.open(i+"?ArticleID="+n):location.href=i+"?ArticleID="+n}function CallNewsUserFriendly(n,t){var r=document.getElementById(GetClientId("BaseDefault")),i;i=r?r.href.substring(0,r.href.lastIndexOf("/")+1):location.href,t==1?window.open(i+n):location.href=i+n}function CallAdvert(n){window.open(n)}function SetAction(n){GetElementByClientId("action").value=n}function ResubmitFormWithEdit(n){location.href=pageName+"?Mode=BusyEditing&ArticleID="+n}function ResubmitForm(n){location.href=pageName+"?ArticleID="+n}function PrintForm(n){var i=window,e=i.document,r="<iframe id='printHiddenFrame' name='printHiddenFrame' width='0' height='0'><\/iframe>",u='<frameset name=test onload=\'printMe.focus();printMe.print();\' rows="100%"><frame name=printMe src="'+n+'"><\/frameset>',t,f;i.printHiddenFrame==null?document.body.insertAdjacentHTML?(e.body.insertAdjacentHTML("beforeEnd",r),t=i.printHiddenFrame.document,t.open(),t.write(u),t.close()):typeof document.body.innerHTML!="undefined"?(document.body.innerHTML+=r,t=i.printHiddenFrame.document,t.open(),t.write(u),t.close()):(f=window.open(n,"Print","toolbar=no,width=700,height=600,resizable, scrollbars"),f.setTimeout("window.print();window.close();",1e3)):(i.printHiddenFrame.focus(),i.printHiddenFrame.print())}function CheckKey(n){if(n.keyCode==13)return!document.all&&document.getElementById&&(n.preventDefault(),n.stopPropagation()),n.cancelBubble=!0,n.returnValue=!1,!1}function HandleSearch(n,t,i,r){if(n.keyCode==13)return CallSearch(t,i,r),!document.all&&document.getElementById&&(n.preventDefault(),n.stopPropagation()),n.cancelBubble=!0,n.returnValue=!1,!1}function getURLparameter(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i="[\\?&]"+n+"=([^&#]*)",r=new RegExp(i,"i"),t=r.exec(window.location.href);return t==null?"":t[1]}function ReferFriendOpen(n,t,i){window.open(i+"?Article="+t+"&"+n,"Help","toolbar=no,width=580px,height=810px,resize=yes,scrollbar=yes")}function getDocHeight(n){var t=0,i,r;return n.body&&(n.body.scrollHeight&&(t=i=n.body.scrollHeight),n.body.offsetHeight&&(t=r=n.body.offsetHeight),i&&r?t=Math.max(i,r):!i&&r?t=r:i&&!r&&(t=i)),t}function getDocWidth(n){var t=0,i,r;return n.body&&(n.body.scrollWidth&&(t=i=n.body.scrollWidth),n.body.offsetWidth&&(t=r=n.body.offsetWidth),i&&r?t=Math.max(i,r):!i&&r?t=r:i&&!r&&(t=i)),t}function ResizeParentFrame(n){var u=window.frames[n],t=document.getElementById?document.getElementById(GetClientId(n)):document.all?document.all[n]:null,i,r;t&&u&&(t.style.height="auto",t.contentDocument!=null?(i=getDocHeight(t.contentDocument),r=getDocWidth(t.contentDocument)):t.Document&&(i=getDocHeight(t.Document),r=getDocWidth(t.Document)),i&&(t.style.height=i+"px"),r&&(t.style.width=r+"px"))}function loadIframe(n,t){return window.frames[n]?(window.frames[n].location=t,!1):!0}function ExecParentWndScript(sScript,close){parentWnd&&(parentWnd.closed||(parentWnd.execScript?parentWnd.execScript(sScript):window.parent.eval(sScript),close&&setTimeout("window.close",2e3)))}function CallArticle(n){location.href=pageName+"?ArticleID="+n}function CallURL(n){location.href=n}function isvalidemail(n){return n.length>0?n.indexOf("@")!=-1&&n.indexOf(".")!=-1?!0:!1:!0}function is_checked(n){var t,i;if(!n)return!1;if(n.length){for(i=n.length,t=0;t<i;t++)if(n[t].checked)return!0}else return n.checked}function isblank(n){for(var i,t=0;t<n.length;t++)if(i=n.charAt(t),i!=" "&&i!="\n"&&i!="\t")return!1;return!0}function menuOpenWnd(n,t,i){newWnd!=null&&newWnd.close(),newWnd=window.open(n,t,i),newWnd.focus();return}function menuChangeImage(n,t){document.images[n]&&(document.images[n].src=t.src)}function menuChangeBGImage(n,t){document.getElementById(GetClientId(n))&&document.getElementById(GetClientId(n)).style&&(document.getElementById(GetClientId(n)).style.backgroundImage="url("+t.src+")")}function stringreplace(n,t,i){for(var r=n,u=r.indexOf(t);u>-1;)r=r.replace(t,i),u=r.indexOf(t,u+i.length+1);return r}function BodyOnLoadJS(){goSetHeightinCMDefault()}function goSetHeightinCMDefault(){parent!=window&&parent.setIframeHeightinCMDefault("AnotherWebsiteFrame")}function setIframeHeightinCMDefault(n){var t,r,i,u,f;if(document.getElementById(GetClientId(n))!=null)t=document.getElementById(GetClientId(n));else if(parent.document.getElementById(GetClientId(n))!=null)t=parent.document.getElementById(GetClientId(n));else for(i=parent.parent,t=i.document.getElementById(GetClientId(n));i!=top&&t!=null;)t=i.document.getElementById(GetClientId(n)),i=i.parent;t&&(t.contentDocument!=null?r=t.contentDocument:t.Document&&(r=t.Document),t&&(u=getDocHeight(r),f=getDocWidth(r),u&&(t.height=u+"px"),f&&(t.width=f+"px")))}function setActiveStyleSheet(n){for(var t,r,i=0;t=document.getElementsByTagName("link")[i];i++)t.getAttribute("rel").indexOf("style")!=-1&&t.getAttribute("title")&&(t.disabled=!0,t.getAttribute("title")==n&&(t.disabled=!1))}function getActiveStyleSheet(){for(var n,t=0;n=document.getElementsByTagName("link")[t];t++)if(n.getAttribute("rel").indexOf("style")!=-1&&n.getAttribute("title")&&!n.disabled)return n.getAttribute("title");return null}function IsNumber(n){var i=new RegExp(/^[\d]+$/),t=!0;return i.test(n)||(t=!1),t}function IsAlphabets(n){var i=new RegExp(/^[a-zA-Z\s]+$/),t=!0;return i.test(n)||(t=!1),t}function IsAlphaNumeric(n){var i=new RegExp(/^([\w\d\s]+)$/),t=!0;return i.test(n)||(t=!1),t}function IsPersonName(n){var i=new RegExp(/^[a-zA-Z\-\'\s]+$/),t=!0;return i.test(n)||(t=!1),t}function IsDate(n){var i=new RegExp(/^(0[1-9]|[12][0-9]|3[01])[-\/.]([1-9]|0[1-9]|1[012])[-\/.](19|20)\d\d$/),t=!0;return i.test(n)||(t=!1),t}function ApproveArticleComment(n,t,i,r){$.ajax({type:"GET",url:"/ArticleCommentsHandler.ashx",data:{action:"Approve",commentid:t,urlID:i},cache:!1,dataType:"json",success:function(n){if(n.isSuccess=="True"){var u=document.getElementById("CommentApprove"+t),i=document.getElementById("CommentDelete"+t);$(u).hide(),$(i).find("img").attr("alt","Delete this comment"),$(i).attr("title","Delete this comment"),r=="true"?$(i).html("Delete this comment"):$(i).find("img").attr("src","images/bin_lighter.gif")}else alert("Error while approving the comment")},error:function(n){alert("Error: "+n.responseText)}})}function DeleteArticleComment(n,t,i){confirm("Are you sure you want to delete this comment?")&&$.ajax({type:"GET",url:"/ArticleCommentsHandler.ashx",data:{action:"Delete",commentid:t,urlID:i},cache:!1,dataType:"json",success:function(t){t.isSuccess=="True"?$(n).hide():alert("Error while deleting the comment")},error:function(n){alert("Error: "+n.responseText)}})}function OpenEvent(n,t,i,r){r==null&&(r=""),location.href=t=="B"?r+"EventViewBookingDetails.aspx?ReturnURL=MyAccount/MyCalendar.aspx&Bck=Y&EventID="+n+"&StyleFolder="+i:t=="T"||t=="C"?r+"EventViewTrainingDetails.aspx?ReturnURL=MyAccount/MyCalendar.aspx&Bck=Y&EventID="+n+"&StyleFolder="+i+"&DisplayType="+t:r+"EventView.aspx?ReturnURL=MyAccount/MyCalendar.aspx&Bck=Y&EventID="+n+"&StyleFolder="+i}function openAddToFavourite(n,t,i,r){window.open("MyAccount/MyFavouritesAdd.aspx?AID="+n+"&FID="+t+"&EID="+i+"&SID="+r,"Favourites","HEIGHT=200,WIDTH=300,TOOLBAR=NO,SCROLLBARS=NO")}function addToFavouritesBAK(n,t,i,r,u){window.open("//"+n+"/MyAccount/MyFavouritesAdd.aspx?AID="+t+"&FID="+i+"&EID="+r+"&SID="+u,"PageRate","HEIGHT=280,WIDTH=320,TOOLBAR=NO,SCROLLBARS=NO")}function OpenArticle(n,t){t==1?window.open(n):location.href=n}function compareURL(n,t){var i,r;return n=n+"/",t=t+"/",i=new String,i=n,r=new String,r=t,n.toString().length>t.toString().length&&(i=t.toString(),r=n.toString()),i=i.substring(i.indexOf("//")+2),r=r.substring(r.indexOf("//")+2),i=i.substring(0,i.indexOf("/")),r=r.substring(0,r.indexOf("/")),i.toLowerCase()==r.toLowerCase()}function CallForgottenPassword(n){var f=document.getElementById(GetClientId("BaseDefault")),t,i,u,r,e;if(f)t=f.href.substring(0,f.href.lastIndexOf("/")+1)+"CMForgottenPassword.aspx";else{if(i=document.getElementsByTagName("script"),u="",t="",i.length>0)for(r=0;r<i.length;r++)if(i[r].getAttribute&&i[r].getAttribute("src")&&(u=i[r].getAttribute("src"),u.toLowerCase().indexOf(pageName)>=0)){t=u.substring(0,u.length-pageName.length)+"../../CMForgottenPassword.aspx";break}t==""&&(t="/CMForgottenPassword.aspx")}e=GetElementByClientId("Module"+n+"_strLoginName"+n),location.href=e?t+"?UserName="+e.value:t}function GetElementByClientId(n){return document.getElementById(GetClientId(n))}function GetClientId(n){var i,t;return(t=n,document.getElementById(t)!=null)?t:document.forms[0].elements.hdnMasterPageControl!=null&&(i=document.forms[0].elements.hdnMasterPageControl.value,t=i+"_"+n,document.getElementById(t)!=null)?t:document.forms[0].elements.hdnContentPlaceHolderMain!=null&&(i=document.forms[0].elements.hdnContentPlaceHolderMain.value,t=i+"_"+n,document.getElementById(t)!=null)?t:document.forms[0].elements.hdnContentPlaceHolderMainNoAjax!=null&&(i=document.forms[0].elements.hdnContentPlaceHolderMainNoAjax.value,t=i+"_"+n,document.getElementById(t)!=null)?t:void 0}function PreviewChangesFromWF(n){window.open("default.aspx?Mode=Preview&ArticleID="+n+"&pinwf=1")}function getInternetExplorerVersion(){var i=-1,n,t;return navigator.appName=="Microsoft Internet Explorer"?(n=navigator.userAgent,t=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})"),t.exec(n)!=null&&(i=parseFloat(RegExp.$1))):navigator.appName=="Netscape"&&(n=navigator.userAgent,t=new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})"),t.exec(n)!=null&&(i=parseFloat(RegExp.$1))),i}function OnClientLoad(){}function replaceEventURL(n){var i="",t=n.split("/event/");return t==undefined&&(t=n.split("/Event/")),t!==undefined&&t.length>0&&(i="/event/"+t[1]),i}var parentWnd=self.opener,pageName="default.aspx",clickObj=null,FTB_HelperFilesParameters,newWnd;USETEXTLINKS=1,indexOfEntries=[],nEntries=0,doc=document,browserVersion=0,selectedFolder=0,FTB_HelperFilesParameters="tabid=1 ",newWnd=null;var XmlHttpRequestInstance=!1,XmlHttpRequestResponseHandlerFunction="",jsGlobalArticleListControl="";typeof jQuery=="undefined"||$(function(){$(".edit-buttons .admin-pill").length>0?$("#AdminMenu").length>0&&$(".edit-buttons:first").addClass("admin-menu-on"):$("#AdminMenu").length>0&&$("#AdminMenu").before('<div class="edit-buttons view-page pg1 admin-menu-on"><div class="logos"><a href="/" title="Go to Homepage" class="hex">Home<\/a><a href="/adminhomepage.aspx" title="Go to Dashboard" class="elcomlogo">Home<\/a><\/div><div class="admin-pill standalone"><div class="inner"><a title="Go to Dashboard" href="/adminhomepage.aspx" class="dashboard-button">Dashboard<\/a><\/div><\/div><\/div>')}),$(document).ready(function(){document.getElementById("AdminMenu")&&$("#main-menu-toggle").click(function(n){n.preventDefault(),$("#AdminBar").toggle()})});var parentWnd=self.opener,clickObj=null,pageName="default.aspx";newWnd=null,$(document).ready(function(){$('a[href*="/event/"]').each(function(){var n=$(this).attr("href"),t=replaceEventURL(n);$(this).removeAttr("href"),$(this).attr("href",t)}),$('a[href*="/Event/"]').each(function(){var n=$(this).attr("href"),t=replaceEventURL(n);$(this).removeAttr("href"),$(this).attr("href",t)})})