function openProfilerWindow(B,A){var C=radopen(B,A);setProfilerSize(C);ProfilerWindow=C}function ResizeProfiler(){if(ProfilerWindow!=null){setProfilerSize(ProfilerWindow)}var A,D,C,B;C=document.getElementById("searchoption_inner");if(C!=null){B=document.getElementById("divTest");A=findPosX(B);D=findPosY(B);document.getElementById("searchoption_inner").style.position="absolute";document.getElementById("searchoption_inner").style.left=A;document.getElementById("searchoption_inner").style.top=D}}function findPosX(A){var B=0;if(A.offsetParent){while(1){B+=A.offsetLeft;if(!A.offsetParent){break}A=A.offsetParent}}else{if(A.x){B+=A.x}}return B}function findPosY(B){var A=0;if(B.offsetParent){while(1){A+=B.offsetTop;if(!B.offsetParent){break}B=B.offsetParent}}else{if(B.y){A+=B.y}}return A}function setProfilerSize(B){var A=getInnerWindowHeight()*0.9;if(B.IsPinned()){B.TogglePin()}B.SetSize(975,A);B.SetModal(true);B.Center();B.TogglePin()}function openRadWindow(B,A,C){var D=radopen(B,B);if(D.IsPinned()){D.TogglePin()}D.SetSize(C,A);D.SetModal(true);D.Center();D.TogglePin()}function closeRadWindow(A){A=null;ProfilerWindow=null}function playFadeOut(B){if(!IsElementNull(B)){var A=$get(B);if(!IsElementNull(A)){AjaxControlToolkit.Animation.FadeOutAnimation.play(A,0.2,25,0,1,true)}}}function IsElementNull(A){if(typeof (A)==="undefined"||A==null){return true}return false}function onFailure(A){}function nodeClicking(B,A){var D=$find("RadComboBox1");var C=A.get_node();D.set_text(C.get_text());D.hideDropDown()}function StopPropagation(A){if(!A){A=window.event}A.cancelBubble=true}function ValidateChecked(C,B,A){if(!IsElementNull(C)){var E=C.id.toLowerCase().indexOf("validator");if(E>-1){var D=$get(C.id.substring(0,E))}if(!IsElementNull(D)){if(!D.checked){D.className="checkboxRequired";B.IsValid=false}else{D.className=""}}}};