function SiteSearch() {
	if (document.frmSearch.SearchText.value != "") {
		return true;
	}
	else {
		return false;
	}
}

function divShimSetVisible(id,state) {
     var DivRef = document.getElementById("ChildUL"+id);
     var IfrRef = document.getElementById('DivShim');
     if (state==1) {
        DivRef.style.display = "block";
         var l_obj = DivRef;
         while (l_obj && l_obj.style)
         {
            l_obj.style.zIndex = 1000;
            l_obj = l_obj.parentNode;
         }

          IfrRef.style.width = DivRef.offsetWidth + "px";
         IfrRef.style.height = DivRef.offsetHeight + "px";
         var l_AbsOffset = getAbsoluteOffset(DivRef);
         IfrRef.style.top = l_AbsOffset[1] + "px";
         IfrRef.style.left = l_AbsOffset[0] + "px";
         IfrRef.style.display = "block";
         IfrRef.style.zIndex = 1;
   }
   else {
         DivRef.style.display = "none";
          IfrRef.style.display = "none";
   }
}
function getAbsoluteOffset(in_Source) {
   var l_Left = 0;
   var l_Top = 0;
   while (in_Source)
   {
      if (in_Source.offsetLeft) l_Left += in_Source.offsetLeft;
      if (in_Source.offsetTop) l_Top += in_Source.offsetTop;
      in_Source = in_Source.offsetParent;
   }
   return [l_Left, l_Top];
}

