function groupsPopupResponse(){groupsSearchPopupAjax=new AjaxClass(null,"groups.php","~#~","loading",null,null,"ajx");groupsSearchResponders=[];groupsSearchResponders.searchresults=function(a){var b=document.getElementById("searchpopup");if(b){b.innerHTML=a}};groupsSearchPopupAjax.setResponders(groupsSearchResponders)}addLoadEvent(groupsPopupResponse);function opensearchpopup(c,f,g,b){if(!g){g=260}var i;var h=document.getElementById("baseDiv");if(h){i=h.offsetLeft;i+=170}else{i=0}var d=document.getElementById("searchpopup");if(d){var j=getScrollXY();var a=document.getElementById("popupload");if(a){d.innerHTML='<div class="loadingsmall">'+a.innerHTML+"</div>"}if(f.clientY>350){y=f.clientY+j[1]-315}else{y=f.clientY+j[1]+15}d.style.visibility="visible";d.style.display="block";d.style.position="absolute";d.style.left=i+"px";d.style.top=y+"px";d.style.zIndex="400";d.style.padding="5px";d.style.border="1px solid #000";d.style.backgroundColor="#fff";d.style.width="785px";if(!b){b=""}groupsSearchPopupAjax.fire("action=searchresults&s="+c+"&submit=Search+Groups&"+b);return true}}function getScrollXY(){var b=0,a=0;if(typeof(window.pageYOffset)=="number"){a=window.pageYOffset;b=window.pageXOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){a=document.body.scrollTop;b=document.body.scrollLeft}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){a=document.documentElement.scrollTop;b=document.documentElement.scrollLeft}}}return[b,a]}function highLightClose(){var a=document.getElementById("closeX");if(a){a.src="http://smimgs.com/images/bullets/close.png"}}function dehighLightClose(){var a=document.getElementById("closeX");if(a){a.src="http://smimgs.com/images/bullets/close.png"}}function clearDiv(a){var b=document.getElementById(a);if(b){b.innerHTML=""}};