var popupOpen=false;var popupContentVisible=false;var contentHeight=false;var popupOpacity=false;var popupDrag=false;function popupInit(){contentHeight=new Fx.Style("popupContent","height",{duration:500,wait:false});popupOpacity=new Fx.Style("popupContainer","opacity",{duration:500,wait:false});popupOpacity.set(0);$("popupContainer").style.display="block"}function popupAjaxExternal(url,target){ajaxloading(target);new Ajax(url,{method:"get",update:target,evalScripts:true}).request()}function popupAjax(url){popupLoading();popupShow();popupHideContent();new Ajax(url,{method:"get",update:"popupContent",evalScripts:true,onComplete:function(){popupDoneLoading();popupShowContent()}}).request()}function popupAjaxConfirm(url,msg){if(confirm(msg)){popupLoading();popupShow();popupHideContent();new Ajax(url,{method:"get",update:"popupContent",evalScripts:true,onComplete:function(){popupDoneLoading();popupShowContent()}}).request()}}function popupPOST(url,formname){popupLoading();popupShow();popupHideContent();var var1=$(formname).toQueryString();new Ajax(url,{method:"post",data:var1,update:"popupContent",evalScripts:true,onComplete:function(){popupDoneLoading();popupShowContent()}}).request()}function popupGET(url,formname){popupLoading();popupShow();popupHideContent();var var1=$(formname).toQueryString();new Ajax(url,{method:"get",data:var1,update:"popupContent",evalScripts:true,onComplete:function(){popupDoneLoading();popupShowContent()}}).request()}function popupLoad(title,url){popupSetTitle(title);popupShow();popupHideContent();popupLoading();new Ajax(url,{method:"get",update:"popupContent",evalScripts:true,onComplete:function(){popupDoneLoading();popupShowContent()}}).request()}function popupLoading(){document.getElementById("popupLoader").innerHTML='<img src="../../images/loadingr1.gif" width="32px" />'}function popupDoneLoading(){document.getElementById("popupLoader").innerHTML='<img src="../../images/close.png" width="32px" />'}function popupShow(){if(popupOpen==false){popupOpacity.start(1);popupOpen=true;popupShowContent()}}function popupSetTitle(title){document.getElementById("popupTitle").innerHTML=title}function popupClose(){if(popupOpen){popupHideContent();popupOpacity.start(0);popupOpen=false}}function popupHideContent(){if(popupOpen){if(popupContentVisible){contentHeight.start(0);popupContentVisible=false}}}function popupShowContent(){if(popupOpen){if(popupContentVisible==false){contentHeight.start(362);popupContentVisible=true}}}function popupShowHideContent(){if(popupOpen){if(popupContentVisible){popupHideContent()}else{popupShowContent()}}};
