function handleEditSubmit(){var e,t,i;if(myBookmarkDialogEdit.element.style.visibility=="visible"){var r=document.getElementById("existinggroup"),u=document.getElementById("newgroup"),o=document.getElementById("bookmark1"),n=0,f=!0;if(o.checked?n=r.options[r.selectedIndex].value:u.value==""?(window.alert(txtGiveGroupName),f=!1):(e=encodeURI(u.value),n=Kluwer.Elevation.Components.BookmarkComponent.CreateNewCategory(e).value),t="",f){for(i=0;i<objCheckBoxes.length;i++)if(objCheckBoxes[i].checked==!0&&(n==-1&&(n=Kluwer.Elevation.Components.BookmarkComponent.GetDefaultCategoryId().value),t=Kluwer.Elevation.Components.BookmarkComponent.UpdateLink(objCheckBoxes[i].id.substring(8),n),t.value!=""))break;t.value!=""?alert(t.value):(myBookmarkDialogEdit.hide(),window.location=window.location.href)}}}function handleConfirmYes(){if(deleteLink)for(var n=0;n<objCheckBoxes.length;n++)objCheckBoxes[n].checked==!0&&Kluwer.Elevation.Components.BookmarkComponent.DeleteLink(objCheckBoxes[n].id.substring(8));else Kluwer.Elevation.Components.BookmarkComponent.DeleteCategory(catId),catId=0;myBookmarkDialogDelete.hide();window.location=window.location.href}function handleConfirmNo(){myBookmarkDialogDelete.hide()}function UpdateLink(n){var i,t;for(objCheckBoxes=document.getElementById(n).getElementsByTagName("input"),i=!1,t=0;t<objCheckBoxes.length;t++)if(objCheckBoxes[t].checked==!0){i=!0;break}i?myBookmarkDialogEdit.show():window.alert(txtPrintCheckAtLeastOneItem)}function EraseLink(n){var i,t;for(deleteLink=!0,objCheckBoxes=document.getElementById(n).getElementsByTagName("input"),i=!1,t=0;t<objCheckBoxes.length;t++)if(objCheckBoxes[t].checked==!0){i=!0;break}i?myBookmarkDialogDelete.show():window.alert(txtPrintCheckAtLeastOneItem)}function EraseCat(n){deleteLink=!1;catId=n;myBookmarkDialogDelete.show()}function UpdateCat(n,t,i){var u=document.getElementById(t).value,r=Kluwer.Elevation.Components.BookmarkComponent.UpdateCategory(n,u,i);r.value!=""?alert(r.value):window.location=window.location.href}function initBookmarks(){typeof txtBMOk=="undefined"&&(txtBMOk="");typeof txtBMCancel=="undefined"&&(txtBMCancel="");typeof txtYes=="undefined"&&(txtYes="");typeof txtNo=="undefined"&&(txtNo="");var n=function(){this.cancel()};myBookmarkDialogEdit=new YAHOO.widget.Dialog("dialogBookmarkComponentEdit",{width:"600px",visible:!1,fixedcenter:!isIPad,draggable:!1,modal:!0,zIndex:5e3,dragonly:!0,close:!0,contstraintoviewport:!1,postmethod:"form",buttons:[{text:txtBMOk,handler:handleEditSubmit},{text:txtBMCancel,handler:n}]});myBookmarkDialogEdit.render();myBookmarkDialogDelete=new YAHOO.widget.Dialog("dialogBookmarkComponentDelete",{width:"600px",visible:!1,fixedcenter:!isIPad,draggable:!1,modal:!0,zIndex:500,dragonly:!0,close:!0,contstraintoviewport:!1,postmethod:"form",buttons:[{text:txtYes,handler:handleConfirmYes},{text:txtNo,handler:handleConfirmNo}]});myBookmarkDialogDelete.render()}function HideContactDiv(n,t){var r,e;n.indexOf("ctl00_MainContentPlaceHolder_")==-1&&(n="ctl00_MainContentPlaceHolder_"+n);var o=document.getElementById(n),i=o.selectedIndex,u=document.getElementById("extra"),f=document.getElementById("ctl00_MainContentPlaceHolder_btnSend");for(i==0?(u.style.display="none",f.disabled=!0):(u.style.display="block",f.disabled=!1),r=0;r<t;r++)e=document.getElementById("question"+r),e.style.display=r==i?"block":"none";i==0?(ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valCompQuestion"),!0),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqLocation"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqInformation"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqSearchTerms"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqInfokind"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqCost"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqLaw"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqQuestion1"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqLocation"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqProblem"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqOther"),!1)):i==1?(ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqLocation"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqInformation"),!0),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqSearchTerms"),!0),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqInfokind"),!0),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqCost"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqLaw"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqQuestion1"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqLocation"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqProblem"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqOther"),!1)):i==2?(ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqLocation"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqInformation"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqSearchTerms"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqInfokind"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqCost"),!0),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqLaw"),!0),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqQuestion1"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqLocation"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqProblem"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqOther"),!1)):i==3?(ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqLocation"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqInformation"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqSearchTerms"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqInfokind"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqCost"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqLaw"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqQuestion1"),!0),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqLocation"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqProblem"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqOther"),!1)):i==4?(ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqLocation"),!0),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqInformation"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqSearchTerms"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqInfokind"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqCost"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqLaw"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqQuestion1"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqLocation"),!0),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqProblem"),!0),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqOther"),!1)):i==5?(ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqLocation"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqInformation"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqSearchTerms"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqInfokind"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqCost"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqLaw"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqQuestion1"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqLocation"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqProblem"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqOther"),!1)):i==6&&(ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqLocation"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqInformation"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqSearchTerms"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqInfokind"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqCost"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqLaw"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqQuestion1"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqLocation"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqProblem"),!1),ValidatorEnable(document.getElementById("ctl00_MainContentPlaceHolder_valReqOther"),!0))}function tabViewEzineObject(n){YAHOO.util.Event.onAvailable(n,this.handleOnAvailable,this)}function ResizeLeftColumnNewsView(){var n=document.getElementById("leftColumn"),t,i,r;n&&!isIPad&&(t=document.getElementById("searchNavigators"),t&&(i=100,r=t.clientHeight+i,n.style.height=r+10+"px",n.style.top=i+"px"))}function initOrderCheckboxes(n){!orderXmlDoc&&n&&(xhttp=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),xhttp.open("GET",n,!1),xhttp.send(null),orderXmlDoc=xhttp.responseXML)}function setInitialOrderCheckboxStates(){var n,u,t,f,e,i,r,o;if(orderXmlDoc&&(n=null,u=orderXmlDoc.documentElement.selectSingleNode("InitialStates/Checked"),u!=null&&u.childNodes[0]&&(n=u.childNodes[0].nodeValue.split(";")),t=null,f=orderXmlDoc.documentElement.selectSingleNode("InitialStates/Disabled"),f!=null&&f.childNodes[0]&&(t=f.childNodes[0].nodeValue.split(";")),n!=null&&n.length!=0||t!=null&&t.length!=0))for(e=document.getElementById("middleColumn").getElementsByTagName("input"),i=0;i<e.length;i++)e[i].type=="checkbox"&&(r=e[i],o=r.id.substring(r.id.indexOf("radModules")+10),n!=null&&n.indexOf(o)>=0&&(r.checked=!0),t!=null&&t.indexOf(o)>=0&&(r.disabled=!0))}function checkOrder(n,t){var n=n,t=t,r=document.getElementById("middleColumn").getElementsByTagName("input"),s,l,h,v,a,f,y,p,w,b,e,i,o,c,u;if(r&&(s=r.length,s)&&orderXmlDoc){for(h=0;h<s;h++)if(r[h].type=="checkbox"&&r[h].id.indexOf("radModules"+t)>0){l=r[h];break}if(l){for(handleCheckBoxEvents(l,t,orderXmlDoc),v=orderXmlDoc.getElementsByTagName("Module"),a=0;a<v.length;a++)if(f=v[a],y=f.getElementsByTagName("Name")[0].childNodes[0].nodeValue,t==y){if(f.getElementsByTagName("CheckedTrue")[0]&&f.getElementsByTagName("CheckedTrue")[0].childNodes[0])for(p=f.getElementsByTagName("CheckedTrue")[0].childNodes[0].nodeValue,e=p.split(";"),i=0;i<s;i++)for(o=r[i].id,c=o.substring(o.indexOf("radModules")+10),u=0;u<e.length;u++)c==e[u]&&(r[i].disabled=!r[i].disabled,l.checked||(r[i].checked=!1));if(f.getElementsByTagName("CheckedFalse")[0]&&f.getElementsByTagName("CheckedFalse")[0].childNodes[0])for(w=f.getElementsByTagName("CheckedFalse")[0].childNodes[0].nodeValue,e=w.split(";"),i=0;i<s;i++)for(o=r[i].id,c=o.substring(o.indexOf("radModules")+10),u=0;u<e.length;u++)c==e[u]&&r[i].checked&&(r[i].checked=!r[i].checked);if(f.getElementsByTagName("DisabledTrue")[0]&&f.getElementsByTagName("DisabledTrue")[0].childNodes[0])for(b=f.getElementsByTagName("DisabledTrue")[0].childNodes[0].nodeValue,e=b.split(";"),i=0;i<s;i++)for(o=r[i].id,c=o.substring(o.indexOf("radModules")+10),u=0;u<e.length;u++)c==e[u]&&(r[i].disabled=l.checked)}processEnabledIfNothingSelectedInColumnOrder(n,t)}}}function handleCheckBoxEvents(n,t,i){var c=i.documentElement.selectNodes("Modules/Module[Name='"+t+"']/OnChecked[(not(@ifvalue)) or (@ifvalue='') or (@ifvalue='"+n.checked+"')]"),s,f,l,r,u,h,e,o,a;if(c)for(s=0;s<c.length;s++)if((f=c[s],f.childNodes[0])&&(l=f.childNodes[0].nodeValue.split(";"),l.length!=0)){r=null;switch(f.getAttribute("setcheckedstate")){case"true":r=!0;break;case"false":r=!1;break;case"checkedstate":r=n.checked;break;case"disabledstate":r=n.disabled;break;case"!checkedstate":r=!n.checked;break;case"!disabledstate":r=!n.disabled}u=null;switch(f.getAttribute("setdisabledstate")){case"true":u=!0;break;case"false":u=!1;break;case"checkedstate":u=n.checked;break;case"disabledstate":u=n.disabled;break;case"!checkedstate":u=!n.checked;break;case"!disabledstate":u=!n.disabled}if(r!=null||u!=null)for(h=document.getElementById("middleColumn").getElementsByTagName("input"),e=0;e<h.length;e++)h[e].type=="checkbox"&&(o=h[e],a=o.id.substring(o.id.indexOf("radModules")+10),l.indexOf(a)>=0&&(r!=null&&(o.checked=r),u!=null&&(o.disabled=u)))}}function processEnabledIfNothingSelectedInColumnOrder(n,t){var n=n,c=document.getElementById("middleColumn").getElementsByTagName("input"),l,e,o,s,h,r,i,f,u;if(c&&(l=c.length,l)&&orderXmlDoc&&(e=0,o=orderXmlDoc.documentElement.selectSingleNode("Modules/Module[Name='"+t+"']/Column"),e=o.text?o.text:o.innerText?o.innerText:o.textContent,e!=0))if(s=!1,u=document.getElementById("ctl00_MainContentPlaceHolder_radModules"+t),u&&u.checked&&(s=!0),s)for(r=orderXmlDoc.documentElement.selectNodes("Modules/Module[EnabledIfNothingSelectedInColumn='"+e+"']/Name"),i=0;i<r.length;i++)f="",f=r[i].text?r[i].text:r[i].innerText?r[i].innerText:r[i].textContent,f!=""&&f!=t&&(u=document.getElementById("ctl00_MainContentPlaceHolder_radModules"+f),u&&(u.disabled=!0,u.checked=!1));else{for(h=!1,r=orderXmlDoc.documentElement.selectNodes("Modules/Module[Column='"+e+"']/Name"),i=0;i<r.length;i++)if(f="",f=r[i].text?r[i].text:r[i].innerText?r[i].innerText:r[i].textContent,f!=""&&(u=document.getElementById("ctl00_MainContentPlaceHolder_radModules"+f),u&&u.checked)){h=!0;break}if(!h)for(r=orderXmlDoc.documentElement.selectNodes("Modules/Module[EnabledIfNothingSelectedInColumn='"+e+"']/Name"),i=0;i<r.length;i++)f="",f=r[i].text?r[i].text:r[i].innerText?r[i].innerText:r[i].textContent,f!=""&&(u=document.getElementById("ctl00_MainContentPlaceHolder_radModules"+f),u&&(u.disabled=!1))}}function escapeJQueryMetaChars(n){return n.replace(/([ #;?%&,.+*~\':"!^$[\]()=>|\/@])/g,"\\$1")}function BookmarkQuery(n,t,i,r,u,f){var h="",o,s,e;for(h=f!=undefined?f:"showPrintItems",o=!1,s=document.getElementById(h).getElementsByTagName("input"),e=0;e<s.length;e++)if(s[e].checked==!0){o=!0;break}o?(r!=""&&ns_onclick(this,i,"",r,"clickout"),multiActive=u,$("#BookmarkComponentDialog").modal("show")):window.alert(txtPrintCheckAtLeastOneItem)}function ClearSelection(){var n="",t=$("#showPrintItems input");t.length!=0&&(t.each(function(t,i){$(i).prop("checked")==!0&&(n=n+$(i).val()+";")}),n==""?window.alert(txtPrintCheckAtLeastOneItem):$.ajax({type:"GET",url:"SelectDeselect.aspx",cache:!1,data:{clearselection:!0,idlist:n}}).done(function(){window.location.reload(!0)}))}function DisableAllInputFields(n,t){var i=document.getElementById(n).getElementsByTagName("input"),u,r;if(i)if(u=i.length,u)for(r=0;r<u;r++)i[r].disabled=t;else i.disabled=t}function initTrialCheckboxes(n){var i,t,r;if(trialCheckboxes!=undefined)for(i=trialCheckboxes.split(";"),t=0;t<i.length;t++)r=document.getElementById("ctl00_MainContentPlaceHolder_"+i[t]),r&&r.setAttribute("disabled",!0);!trialXmlDoc&&n&&(xhttp=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),xhttp.open("GET",n,!1),xhttp.send(null),trialXmlDoc=xhttp.responseXML)}function checkTrial(n,t,i){var n=n,i=i,r=document.getElementById("middleColumn").getElementsByTagName("input"),tt,k,o,w,g,v,y,p,d,l,u,s,b,ut,nt,ft,a,f,h,c,e;if(n==3){if(!r)return;if(o=r.length,o)if(v=0,y=0,trialXmlDoc){for(p=trialXmlDoc.getElementsByTagName("TrialModule"),l=0;l<o;l++)if(r[l].id.indexOf(i)>0){d=r[l];break}for(u=0;u<p.length;u++)if(s=p[u],b=s.getElementsByTagName("Name")[0].childNodes[0].nodeValue,i==b){if(s.getElementsByTagName("CheckedTrue")[0]&&s.getElementsByTagName("CheckedTrue")[0].childNodes[0])for(tt=s.getElementsByTagName("CheckedTrue")[0].childNodes[0].nodeValue,a=tt.split(";"),f=0;f<o;f++)for(h=r[f].id,c=h.substring(h.indexOf("radModules")+10),e=0;e<a.length;e++)c==a[e]&&(r[f].disabled=!r[f].disabled,d.checked||(r[f].checked=!1));if(s.getElementsByTagName("CheckedFalse")[0]&&s.getElementsByTagName("CheckedFalse")[0].childNodes[0]){var it=s.getElementsByTagName("CheckedFalse")[0].childNodes[0].nodeValue,rt=trialCheckboxes.split(";"),a=it.split(";");for(f=0;f<o;f++)for(h=r[f].id,c=h.substring(h.indexOf("radModules")+10),e=0;e<a.length;e++)if(c==a[e])for(r[f].checked&&(r[f].checked=!r[f].checked),k=0;k<rt.length;k++)rt[k]=="radModules"+c&&(r[f].disabled=!0)}}}else{if(i=="MAXCYLO"){for(u=0;u<o;u++)r[u].type=="checkbox"&&r[u].id.indexOf(i)>0&&r[u].checked&&(v=1);if(v==1)for(u=0;u<o;u++)r[u].type=="checkbox"&&r[u].id.indexOf(i)<=0&&(r[u].checked=!1)}if(i=="MAXJRZL"||i=="MAXPRZL"){for(u=0;u<o;u++)r[u].type=="checkbox"&&r[u].id.indexOf("MAXJRZL")>0&&r[u].checked&&(v=1),r[u].type=="checkbox"&&r[u].id.indexOf("MAXPRZL")>0&&r[u].checked&&(y=1);if(v==1||y==1)for(u=0;u<o;u++)r[u].type=="checkbox"&&r[u].id.indexOf("MAXCYLO")>0&&(r[u].checked=!1),r[u].id.indexOf("MAXSOLB")>0&&(r[u].checked=!0);if(v==0&&y==0)for(u=0;u<o;u++)r[u].type=="checkbox"&&r[u].id.indexOf("MAXSOLB")>0&&(r[u].checked=!1)}}else return}if(n==12){if(!r)return;if(o=r.length,o){if(v=0,y=0,i=="IMMOPRO"||i=="IMMORES")for(u=0;u<o;u++)r[u].checked=r[u].type=="checkbox"&&r[u].id.indexOf(i)>0?r[u].checked?!0:!1:!1}else return}if(n==28){if(!r)return;if(o=r.length,o){if(w=!1,g=document.getElementById("ctl00_MainContentPlaceHolder_radModules"+i),g&&g.checked&&(w=!0),v=0,y=0,trialXmlDoc){for(p=trialXmlDoc.getElementsByTagName("TrialModule"),l=0;l<o;l++)if(r[l].id.indexOf(i)>0){d=r[l];break}for(u=0;u<p.length;u++)if(s=p[u],b=s.getElementsByTagName("Name")[0].childNodes[0].nodeValue,i==b){if(s.getElementsByTagName("CheckedFalse")[0]&&s.getElementsByTagName("CheckedFalse")[0].childNodes[0]){var it=s.getElementsByTagName("CheckedFalse")[0].childNodes[0].nodeValue,rt=trialCheckboxes.split(";"),a=it.split(";");for(f=0;f<o;f++)for(h=r[f].id,c=h.substring(h.indexOf("radModules")+10),e=0;e<a.length;e++)c==a[e]&&r[f].checked&&(r[f].checked=!r[f].checked)}if(s.getElementsByTagName("Includes")[0]&&s.getElementsByTagName("Includes")[0].childNodes[0])for(ut=s.getElementsByTagName("Includes")[0].childNodes[0].nodeValue,nt=ut.split(";"),f=0;f<o;f++)for(h=r[f].id,c=h.substring(h.indexOf("radModules")+10),e=0;e<nt.length;e++)c==nt[e]&&(r[f].disabled=w,r[f].checked=w);if(s.getElementsByTagName("DisabledTrue")[0]&&s.getElementsByTagName("DisabledTrue")[0].childNodes[0])for(ft=s.getElementsByTagName("DisabledTrue")[0].childNodes[0].nodeValue,a=ft.split(";"),f=0;f<o;f++)for(h=r[f].id,c=h.substring(h.indexOf("radModules")+10),e=0;e<a.length;e++)c==a[e]&&(r[f].disabled=w)}}}else return}n==23&&handleTrialCheckBoxEvents(t,trialXmlDoc)}function processEnabledIfNothingSelectedInColumnTrial(n,t){var n=n,h=document.getElementById("middleColumn").getElementsByTagName("input"),c,e,o,s,r,i,u,f;if(n==28){if(!h)return;if(c=h.length,c){if(trialXmlDoc&&(e=0,ColumnNode=trialXmlDoc.documentElement.selectSingleNode("TrialModule[Name='"+t+"']/Column"),e=ColumnNode.text?ColumnNode.text:ColumnNode.innerText?ColumnNode.innerText:ColumnNode.textContent,e!=0))if(o=!1,f=document.getElementById("ctl00_MainContentPlaceHolder_radModules"+t),f&&f.checked&&(o=!0),o)for(r=trialXmlDoc.documentElement.selectNodes("TrialModule[EnabledIfNothingSelectedInColumn='"+e+"']/Name"),i=0;i<r.length;i++)u="",u=r[i].text?r[i].text:r[i].innerText?r[i].innerText:r[i].textContent,u!=""&&u!=t&&(f=document.getElementById("ctl00_MainContentPlaceHolder_radModules"+u),f&&(f.disabled=!0,f.checked=!1));else{for(s=!1,r=trialXmlDoc.documentElement.selectNodes("TrialModule[Column='"+e+"']/Name"),i=0;i<r.length;i++)if(u="",u=r[i].text?r[i].text:r[i].innerText?r[i].innerText:r[i].textContent,u!=""&&(f=document.getElementById("ctl00_MainContentPlaceHolder_radModules"+u),f.checked)){s=!0;break}if(s==!1)for(r=trialXmlDoc.documentElement.selectNodes("TrialModule[EnabledIfNothingSelectedInColumn='"+e+"']/Name"),i=0;i<r.length;i++)u="",u=r[i].text?r[i].text:r[i].innerText?r[i].innerText:r[i].textContent,u!=""&&(f=document.getElementById("ctl00_MainContentPlaceHolder_radModules"+u),f&&(f.disabled=!1))}}else return}}function handleTrialCheckBoxEvents(n,t){var u=document.getElementById("ctl00_MainContentPlaceHolder_radModules"+n),c=t.documentElement.selectNodes("TrialModule[Name='"+n+"']/OnChecked[(not(@ifvalue)) or (@ifvalue='') or (@ifvalue='"+u.checked+"')]"),s,f,l,i,r,h,e,o,a;if(c)for(s=0;s<c.length;s++)if((f=c[s],f.childNodes[0])&&(l=f.childNodes[0].nodeValue.split(";"),l.length!=0)){i=null;switch(f.getAttribute("setcheckedstate")){case"true":i=!0;break;case"false":i=!1;break;case"checkedstate":i=u.checked;break;case"disabledstate":i=u.disabled;break;case"!checkedstate":i=!u.checked;break;case"!disabledstate":i=!u.disabled}r=null;switch(f.getAttribute("setdisabledstate")){case"true":r=!0;break;case"false":r=!1;break;case"checkedstate":r=u.checked;break;case"disabledstate":r=u.disabled;break;case"!checkedstate":r=!u.checked;break;case"!disabledstate":r=!u.disabled}if(i!=null||r!=null)for(h=document.getElementById("middleColumn").getElementsByTagName("input"),e=0;e<h.length;e++)h[e].type=="checkbox"&&(o=h[e],a=o.id.substring(o.id.indexOf("radModules")+10),l.indexOf(a)>=0&&(i!=null&&(o.checked=i),r!=null&&(o.disabled=r)))}}function toggleGroupCheckBox(n,t,i){var f=document.getElementById(t).checked,e=document.getElementById("hidden_"+n),r=document.getElementById("hiddenchecked_"+n),u;f==!1?r.value--:r.value++;u=document.getElementById(n);u!=undefined&&(u.checked=e.value==r.value?!0:!1);SetText(document.getElementById(i).getElementsByTagName("input"))}function CheckBoxListChecked(n,t){var u,f,i;t.IsValid=!1;var e=document.getElementById("question1"),o=document.getElementById("question4"),r="",s=document.getElementById("ctl00_MainContentPlaceHolder_valReqInfokind"),h=document.getElementById("ctl00_MainContentPlaceHolder_valReqLocation");if(e.style.display!="none"?(r="ctl00_MainContentPlaceHolder_cblInfokind",h.isValid=!0):o.style.display!="none"&&(r="ctl00_MainContentPlaceHolder_cblLocation",s.isValid=!0),u=document.getElementById(r),u)for(f=u.getElementsByTagName("input"),i=0;i<f.length;i++)f[i].checked&&(t.IsValid=!0);else t.IsValid=!1}function CheckBoxChecked(n,t){t.IsValid=!1;checkCostClientId.indexOf("ctl00_MainContentPlaceHolder_")==-1&&(checkCostClientId="ctl00_MainContentPlaceHolder_"+checkCostClientId);var i=document.getElementById(checkCostClientId);i?i.checked&&(t.IsValid=!0):t.IsValid=!1}function EnableDisableSendButton(n,t){var i=document.getElementById(n),r=document.getElementById(t);i!=undefined&&r!=undefined&&(r.disabled=i.checked==!0?!1:!0)}function CheckEnter(n,t,i){var f,r,u;t.keyCode==13&&(t.returnvalue=!1,t.cancel=!0,f=window.event?window.event.keyCode:t.which,f==13&&(i!=null&&(queryString=document.getElementById(i).value,Kluwer.Elevation.Components.SearchBoxComponent.SetQuerySession(queryString)),r=document.getElementById(n),r!=null&&(u=document.getElementById(i+"autocomplete"),u&&hideAutoComplete(u),r.click(),event.keyCode=0)))}var DTEXT,orderXmlDoc,multiActive,trialXmlDoc;LegacyAnnotationStartModify=function(n){var t=$("#tab2").is(":visible")?"#tab2":"#tab1",i=$(t+" #AnnotationsAdminComponentDialog-"+n);i.modal("show");$(".modal-backdrop").remove()};LegacyAnnotationDoModify=function(n,t){var i=$("#tab2").is(":visible")?"#tab2":"#tab1",r=$(i+" #annotation-"+t+" input[name='title']"),u=$(i+" #annotation-"+t+" textarea[name='comment']"),f=$(i+" #annotation-"+t+" input[name='shared']"),e=r.serialize()+"&"+u.serialize()+"&"+f.serialize();$.ajax({type:"POST",url:"/secure/AnnotationActions.aspx?method=modify&admin=true&docid="+n+"&annotationId="+t,data:e,cache:!1,success:function(){location.reload()}})};LegacyAnnotationDelete=function(n,t){var i="/secure/AnnotationActions.aspx?method=delete&admin=true&docidDelete="+n+"&annotationIdDelete="+t;$.get(i,function(){location.reload()})};YAHOO.util.Event.onDOMReady(initBookmarks);YAHOO.widget.DataTable.forAllRecords||(YAHOO.widget.DataTable.prototype.forAllRecords=function(n,t){if(YAHOO.lang.isFunction(n)){t||(t=this);for(var r=this.getRecordSet(),u=r.getLength(),i=0;i<u;i++)if(n.call(t,r.getRecord(i),i)===!1)return}});DTEXT=YAHOO.namespace("YAHOO.widget.DataTableExtension");DTEXT.ymodExpandedRowClass||(DTEXT.ymodExpandedRowClass="yui-dt-ext-expandedRow",DTEXT.ymodExpandedDataRowClass="yui-dt-ext-expandedDataRow");YAHOO.widget.DataTable.expandCollapseRow||(YAHOO.widget.DataTable.prototype.beforeRowExpand=new YAHOO.util.CustomEvent("beforeRowExpandEvent"),YAHOO.widget.DataTable.prototype.afterRowExpand=new YAHOO.util.CustomEvent("afterRowExpandEvent"),YAHOO.widget.DataTable.prototype.beforeRowCollapse=new YAHOO.util.CustomEvent("beforeRowCollapseEvent"),YAHOO.widget.DataTable.prototype.afterRowCollapse=new YAHOO.util.CustomEvent("afterRowCollapseEvent"),YAHOO.widget.DataTable.prototype.expandCollapseRow=function(n){try{var t=n.nextSibling,i=t==null||!YAHOO.util.Dom.hasClass(n,DTEXT.ymodExpandedRowClass);i?this.expandRow(n):this.collapseRow(n)}catch(r){}},YAHOO.widget.DataTable.prototype.expandRow=function(n){var f,e,i;try{if(f=n.nextSibling,e=f==null||!YAHOO.util.Dom.hasClass(n,DTEXT.ymodExpandedRowClass),e){if(i=!0,i=this.beforeRowExpand.fire(n),!i)return;var t=document.createElement("tr"),r=document.createElement("td"),u=document.createElement("div");r.colSpan=n.childNodes.length;YAHOO.util.Dom.addClass(n,DTEXT.ymodExpandedRowClass);YAHOO.util.Dom.addClass(t,DTEXT.ymodExpandedDataRowClass);YAHOO.util.Dom.hasClass(n,"yui-dt-odd")?YAHOO.util.Dom.addClass(t,"yui-dt-odd"):YAHOO.util.Dom.hasClass(n,"yui-dt-even")&&YAHOO.util.Dom.addClass(t,"yui-dt-even");YAHOO.util.Dom.addClass(u,"yui-dt-liner");r.appendChild(u);t.appendChild(r);n.nextSibling!=null?n.parentNode.insertBefore(t,n.nextSibling):n.parentNode.appendChild(t);this.afterRowExpand.fire(n,t,u)}}catch(o){}},YAHOO.widget.DataTable.prototype.collapseRow=function(n){var t,r,i;try{if(t=n.nextSibling,r=t!=null&&YAHOO.util.Dom.hasClass(n,DTEXT.ymodExpandedRowClass),r){if(i=!0,i=this.beforeRowCollapse.fire(),!i)return;n.parentNode.removeChild(t);YAHOO.util.Dom.removeClass(n,DTEXT.ymodExpandedRowClass);this.afterRowCollapse.fire()}}catch(u){}});additionalRecipients2UpdateClick=function(){var n=document.getElementById("SelectedButton");return n.value="updateAdditionalRecipients",!0};tipmailUpdateClick=function(){var n=document.getElementById("SelectedButton");return n.value="updateTabTipmail",!0};_getSelectedNodes=function(n){for(var i=[],t=0;t<n.children.length;t++)n.children[t].highlightState==1?i.push(n.children[t]):n.children[t].highlightState==2&&(i=i.concat(_getSelectedNodes(n.children[t])));return i};getSelectedNodes=function(n){var t=[];return t=t.concat(_getSelectedNodes(n.root)),t.length?t:null};ezineUpdateSelectedIds=function(n){var f=document.getElementById("SelectedButton"),r,t,u,i;if(f.value="update",r=document.getElementById("SelectedIds"),t=getSelectedNodes(n),YAHOO.lang.isNull(t))r.value="";else{for(u=[],i=0;i<t.length;i++)u.push(t[i].refId);r.value=u.join(",")}return!0};ezineUpdateSelectedIdsTab1=function(n){var f=document.getElementById("SelectedButton"),r,t,u,i;if(f.value="updateTabEzine1",r=document.getElementById("SelectedIds"),t=getSelectedNodes(n),YAHOO.lang.isNull(t))r.value="";else{for(u=[],i=0;i<t.length;i++)u.push(t[i].refId);r.value=u.join(",")}return!0};ezineUpdateSelectedIdsTab2=function(n){var f=document.getElementById("SelectedButton"),r,t,u,i;if(f.value="updateTabEzine2",r=document.getElementById("SelectedIds"),t=getSelectedNodes(n),YAHOO.lang.isNull(t))r.value="";else{for(u=[],i=0;i<t.length;i++)u.push(t[i].refId);r.value=u.join(",")}return!0};ezineCancelClick=function(){var n=document.getElementById("SelectedButton");return n.value="cancel",!0};ShowOrHideEzineSettingsTab=function(n,t){var i=document.getElementById(t),r=document.getElementById(n),u=navigator.userAgent.indexOf("Firefox")!=-1;i.style.display=r.checked?u?"table-row":"":"none"};setSelectedNodes=function(n,t){var i,r,u;if(t!=""){i=[];i=t.split(",");for(r in n._nodes)if(!(r in Array.prototype))for(u=0;u<i.length;u++)if(i[u]==n._nodes[r].refId||i[u]==n._nodes[r].data.id){n._nodes[r].highlight();break}}};tabViewEzine2Object=function(n){YAHOO.util.Event.onAvailable(n,this.handleOnAvailable,this)};initPageEzineSettings2=function(){tabViewEzine2Object.prototype.handleOnAvailable=function(){var n=new YAHOO.widget.TabView("tabViewEzineSettings2")};var n=new tabViewEzine2Object("tabViewEzineSettings2")};initPageEzineSettings=function(){tabViewEzineObject.prototype.handleOnAvailable=function(){var n=new YAHOO.widget.TabView("tabViewEzineSettings")};var n=new tabViewEzineObject("tabViewEzineSettings")};String.prototype.startsWith=function(n){return this.match("^"+n)==n};String.prototype.endsWith=function(n){return this.match(n+"$")==n};String.prototype.contains=function(n){return this.indexOf(n)!=-1};String.prototype.replaceAll=function(n,t){return this.replace(new RegExp(n,"g"),t)};Object.keys||(Object.keys=function(n){var t=[];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.push(i);return t});Array.indexOf||(Array.prototype.indexOf=function(n){for(var t=0;t<this.length;t++)if(this[t]==n)return t;return-1});document.implementation.hasFeature("XPath","3.0")&&(XMLDocument=Document,XMLDocument.prototype.selectNodes=function(n,t){var i;t||(t=this);var f=this.createNSResolver(this.documentElement),r=this.evaluate(n,t,f,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),u=[];for(i=0;i<r.snapshotLength;i++)u[i]=r.snapshotItem(i);return u},XMLDocument.prototype.selectSingleNode=function(n,t){t||(t=this);var i=this.selectNodes(n,t);return i.length>0?i[0]:null},Element.prototype.selectNodes=function(n){if(this.ownerDocument.selectNodes)return this.ownerDocument.selectNodes(n,this);throw"For XML Elements Only";},Element.prototype.selectSingleNode=function(n){if(this.ownerDocument.selectSingleNode)return this.ownerDocument.selectSingleNode(n,this);throw"For XML Elements Only";});multiActive=!1;ChangeHistoryTab=function(n){var r=document.getElementById("tab1_1"),u=document.getElementById("tab1_2"),f=document.getElementById("tab1_3"),e=document.getElementById("tab2_1"),o=document.getElementById("tab2_2"),s=document.getElementById("tab2_3"),i,t;n==1?(r.setAttribute("class","searchResultTabLeftActive searchResultFirst"),r.setAttribute("className","searchResultTabLeftActive searchResultFirst"),u.setAttribute("class","searchResultTabActive"),u.setAttribute("className","searchResultTabActive"),f.setAttribute("class","searchResultTabRightActive"),f.setAttribute("className","searchResultTabRightActive"),e.setAttribute("class","searchResultTabLeftInactive"),e.setAttribute("className","searchResultTabLeftInactive"),o.setAttribute("class","searchResultTabInactive"),o.setAttribute("className","searchResultTabInactive"),s.setAttribute("class","searchResultTabRightInactive"),s.setAttribute("className","searchResultTabRightInactive")):(r.setAttribute("class","searchResultTabLeftInactive searchResultFirst"),r.setAttribute("className","searchResultTabLeftInactive searchResultFirst"),u.setAttribute("class","searchResultTabInactive"),u.setAttribute("className","searchResultTabInactive"),f.setAttribute("class","searchResultTabRightInactive"),f.setAttribute("className","searchResultTabRightInactive"),e.setAttribute("class","searchResultTabLeftActive"),e.setAttribute("className","searchResultTabLeftActive"),o.setAttribute("class","searchResultTabActive"),o.setAttribute("className","searchResultTabActive"),s.setAttribute("class","searchResultTabRightActive"),s.setAttribute("className","searchResultTabRightActive"));i=document.getElementById("tab1");t=document.getElementById("tab2");n==1?(typeof registerRecentlyViewedClick!="undefined"&&i&&i.style.display=="none"&&registerRecentlyViewedClick(),i!=undefined&&(i.style.display="block"),t!=undefined&&(t.style.display="none")):(typeof registerSearchHistoryClick!="undefined"&&t&&(t.style.display=="none"||t.style.display=="")&&registerSearchHistoryClick(),i!=undefined&&(i.style.display="none"),t!=undefined&&(t.style.display="block"))};SetAllCheckBoxes=function(n,t){var i=document.getElementById(n).getElementsByTagName("input"),u,f,r;if(i){if(u=i.length,f=!AllCheckBoxesChecked(i),u)for(r=0;r<u;r++)i[r].type=="checkbox"&&(i[r].checked=f);else i.checked=f;SetText(i,t)}};AllCheckBoxesChecked=function(n){var i,t;if(!n)return!1;for(i=n.length,t=0;t<i;t++)if(n[t].type=="checkbox"){if(n[t].name=="shared")continue;if(!n[t].checked)return!1}return!0};SetText=function(n,t){var u=!1,r,i,f;for(n&&n.toString().indexOf("[object")!=-1||(n=document.getElementById(n).getElementsByTagName("input")),t||(t=""),r=document.getElementsByTagName("input"),i=0;i<r.length;i++)(r[i].type=="submit"||r[i].type=="button")&&(r[i].name.indexOf("SelectAllTop"+t)!=-1||r[i].name.indexOf("SelectAllBottom"+t)!=-1)&&(u=!0,SetButtonText(n,r[i],t));u||(f=document.getElementById("selectAll"+t),SetButtonText(n,f,t))};SetButtonText=function(n,t,i){var r=AllCheckBoxesChecked(n),u=r==!0?window.txtDeselectAll:window.txtSelectAll;i=="ResultList"&&(u=r==!0?window.txtDeselectAllResultlist:window.txtSelectAllResultlist);ReplaceButtonText(t,u)};ReplaceButtonText=function(n,t){n&&(n.value?n.value=t:n.innerHTML=t)};toggleGroupItemCheckBoxes=function(n,t,i){var e=document.getElementById(i).checked,r=document.getElementById(n).getElementsByTagName("input"),f,u;if(r){for(f=r.length,u=0;u<f;u++)r[u].type=="checkbox"&&r[u].id.indexOf("item_"+t+"_")!=-1&&(r[u].checked=e);SetText(r)}};toggleGroupCheckBox=function(n,t,i){var f=document.getElementById(t).checked,e=document.getElementById("hidden_"+n),r=document.getElementById("hiddenchecked_"+n),u;f==!1?r.value--:r.value++;u=document.getElementById(n);u!=undefined&&(u.checked=e.value==r.value?!0:!1);SetText(document.getElementById(i).getElementsByTagName("input"))};removeNavHistorySelection=function(n,t){var e=GetXMLHttp(),u="",r=document.getElementById(n).getElementsByTagName("input"),i,f;if(r){for(i=0;i<r.length;i++)r[i].checked==!0&&r[i].value!=""&&(u=u==""?r[i].value:u+","+r[i].value);u==""?window.alert(txtPrintCheckAtLeastOneItem):(f=t+u,document.location.href=f)}};var yuiTreeViews=[],yuiTreeViewExpands=[],yuiTreeViewEspTreeNames=[],yuiTreeViewSelected=[];ytvExpandNodes=function(n){var i,t;if(yuiTreeViewExpands[n.id]&&yuiTreeViewExpands[n.id]instanceof Array&&yuiTreeViewExpands[n.id].length>0)for(i in n._nodes)for(t=0;t<yuiTreeViewExpands[n.id].length;t++)if(yuiTreeViewExpands[n.id][t]==n._nodes[i].data.id&&!n._nodes[i].expanded){n._nodes[i].expand();yuiTreeViewExpands[n.id].splice(t,1);break}};ytvSetSelectedNodes=function(n){var i,t;if(yuiTreeViewSelected[n.id]&&yuiTreeViewSelected[n.id]instanceof Array&&yuiTreeViewSelected[n.id].length>0)for(i in n._nodes)for(t=0;t<yuiTreeViewSelected[n.id].length;t++)if(yuiTreeViewSelected[n.id][t]==n._nodes[i].data.id&&n._nodes[i].highlightState==0){n._nodes[i].highlight();yuiTreeViewSelected[n.id].splice(t,1);break}};loadYuiTreeViewDataForNode=function(n,t){var e=n.tree.id,r=-1,i,u,f;if(undefined!=n.data.id&&(r=n.data.id),i="",undefined!=yuiTreeViewEspTreeNames&&(i=yuiTreeViewEspTreeNames[e]),u="YuiTreeViewActions.aspx?option=getsubnodes&esptreename="+i+"&id="+r,n.children.length>0){t();return}f={cache:!1,success:function(oResponse){var oResults=eval("("+oResponse.responseText+")"),i,j,tempNode;if(oResults.ResultSet&&oResults.ResultSet.Result&&oResults.ResultSet.Result.length)if(YAHOO.lang.isArray(oResults.ResultSet.Result))for(i=0,j=oResults.ResultSet.Result.length;i<j;i++)tempNode=new YAHOO.widget.TextNode(oResults.ResultSet.Result[i].Label,n,!1),tempNode.data={id:oResults.ResultSet.Result[i].Id},tempNode.isLeaf=oResults.ResultSet.Result[i].IsLeaf.toLowerCase()=="true",n.propagateHighlightDown&&n.highlightState==1&&(tempNode.highlightState=1),n.propagateHighlightUp&&(tempNode.propagateHighlightUp=!0),n.propagateHighlightDown&&(tempNode.propagateHighlightDown=!0);else tempNode=new YAHOO.widget.TextNode(oResults.ResultSet.Result,n,!1);else n.iconMode=1;oResponse.argument.fnLoadComplete();ytvExpandNodes(n.tree);ytvSetSelectedNodes(n.tree)},failure:function(n){YAHOO.log("Failed to process XHR transaction.","info","example");n.argument.fnLoadComplete()},argument:{node:n,fnLoadComplete:t},timeout:7e3};YAHOO.util.Connect.asyncRequest("GET",u,f)};ytvCollapseAll=function(n){yuiTreeViews[n.id]&&yuiTreeViews[n.id].collapseAll()};ytvExpandAll=function(n){yuiTreeViews[n.id]&&yuiTreeViews[n.id].expandAll()}