var oSrc=""; /*********************************** component art dialog (popup) **************************/ function showPopup(theDomId,theFrmSrc,theFrmWidth,theFrmHeight) { if(Popup.get_isShowing() && oSrc ==theFrmSrc) { Popup.Close(); } else { oSrc = theFrmSrc; currentDate=theDomId; //var theIframe = $get(Dialog1.Id+"_IFrame") var theIframe = document.getElementById("PopupFrame"); if(theIframe != null){ theIframe.src = theFrmSrc; theIframe.style.border = '0px'; theIframe.style.width = theFrmWidth; theIframe.style.height = theFrmHeight; } //theDialogDiv.style.width = theFrmWidth + 30 +'px'; Popup.ModalMaskImage= "/Images/general/bgModal.png"; Popup.Modal=false; Popup.AnimationDirectionElement = theDomId; Popup.AnimationDuration = 1000; Popup.TransitionDuration = 500; Popup.set_showTransition=3; Popup.set_closeTransition=3; Popup.AnimationSlide = 4; Popup.set_animationType('live'); Popup.set_animationPath('Direct'); Popup.set_alignment('MiddleCentre'); Popup.Show(); } }