 ASPxClientPopupControl.prototype.CreateWindows=function(windowsNames){for(var i=0;i<windowsNames.length;i++){var window=new ASPxClientPopupWindow(this,i,windowsNames[i]);_aspxArrayPush(this.windows,window);}}
ASPxClientPopupControl.prototype.RaiseCloseUp=function(index){var window=index<0?null:this.GetWindow(index);if(!this.CloseUp.IsEmpty()){var args=new ASPxClientPopupWindowEventArgs(false,window);this.CloseUp.FireEvent(this,args);}}
ASPxClientPopupControl.prototype.RaisePopUp=function(index){var window=index<0?null:this.GetWindow(index);if(!this.PopUp.IsEmpty()){var args=new ASPxClientPopupWindowEventArgs(false,window);this.PopUp.FireEvent(this,args);}}
ASPxClientPopupControl.prototype.RaiseResize=function(index){var window=index<0?null:this.GetWindow(index);if(!this.Resize.IsEmpty()){var args=new ASPxClientPopupWindowEventArgs(false,window);this.Resize.FireEvent(this,args);}}
ASPxClientPopupControl.prototype.GetHeight=function(){return this.GetWindowHeight(null);}
ASPxClientPopupControl.prototype.GetWidth=function(){return this.GetWindowWidth(null);}
ASPxClientPopupControl.prototype.SetSize=function(width,height){this.SetWindowSize(null,width,height);}
ASPxClientPopupControl.prototype.GetWindowHeight=function(window){var index=(window!=null)?window.index:-1;var element=this.GetWindowElement(index);var mainCell=this.GetWindowMainCell(element);return mainCell.offsetHeight;}
ASPxClientPopupControl.prototype.GetWindowWidth=function(window){var index=(window!=null)?window.index:-1;var element=this.GetWindowElement(index);var mainCell=this.GetWindowMainCell(element);return mainCell.offsetWidth;}
ASPxClientPopupControl.prototype.SetWindowSize=function(window,width,height){var index=(window!=null)?window.index:-1;this.SetClientWindowSize(index,width,height);var iFrame=this.GetWindowIFrame(index);if(_aspxIsExists(iFrame))_aspxSetStyleSize(iFrame,width,height);}
ASPxClientPopupControl.prototype.IsVisible=function(){return this.InternalIsWindowVisible(-1);}
ASPxClientPopupControl.prototype.GetContentHTML=function(){return this.GetWindowContentHTML(null);}
ASPxClientPopupControl.prototype.SetContentHTML=function(html){this.SetWindowContentHTML(null,html);}
ASPxClientPopupControl.prototype.GetContentUrl=function(){return this.GetWindowContentUrl(null);}
ASPxClientPopupControl.prototype.SetContentUrl=function(url){this.SetWindowContentUrl(null,url);}
ASPxClientPopupControl.prototype.RefreshContentUrl=function(){this.RefreshWindowContentUrl(null);}
ASPxClientPopupControl.prototype.Show=function(){this.ShowWindow(null);}
ASPxClientPopupControl.prototype.ShowAtElement=function(htmlElement){this.ShowWindowAtElement(null,htmlElement);}
ASPxClientPopupControl.prototype.ShowAtElementByID=function(id){var htmlElement=document.getElementById(id);this.ShowWindowAtElement(null,htmlElement);}
ASPxClientPopupControl.prototype.ShowAtPos=function(x,y){this.ShowWindowAtPos(null,x,y);}
ASPxClientPopupControl.prototype.Hide=function(){this.HideWindow(null);}
ASPxClientPopupControl.prototype.IsWindowVisible=function(window){var index=(window!=null)?window.index:-1;return this.InternalIsWindowVisible(index);}
ASPxClientPopupControl.prototype.GetWindow=function(index){return(0<=index&&index<this.windows.length)?this.windows[index]:null;}
ASPxClientPopupControl.prototype.GetWindowByName=function(name){for(var i=0;i<this.windows.length;i++)if(this.windows[i].name==name)return this.windows[i];return null;}
ASPxClientPopupControl.prototype.GetWindowCount=function(){return this.GetWindowCountCore();}
ASPxClientPopupControl.prototype.ShowWindow=function(window){var index=(window!=null)?window.index:-1;this.DoShowWindowAtPos(index,__aspxInvalidPosition,__aspxInvalidPosition,false,false,true);}
ASPxClientPopupControl.prototype.ShowWindowAtElement=function(window,htmlElement){var index=(window!=null)?window.index:-1;var popupElementBackup=this.GetPopupElement(index);this.SetPopupElementInternal(index,htmlElement);this.ShowWindow(window);this.SetPopupElementInternal(index,popupElementBackup);}
ASPxClientPopupControl.prototype.ShowWindowAtElementByID=function(window,id){var htmlElement=document.getElementById(id);this.ShowWindowAtElement(window,htmlElement);}
ASPxClientPopupControl.prototype.ShowWindowAtPos=function(window,x,y){var index=(window!=null)?window.index:-1;this.DoShowWindowAtPos(index,x,y,true,false,true);}
ASPxClientPopupControl.prototype.HideWindow=function(window){var index=(window!=null)?window.index:-1;this.DoHideWindow(index);}
ASPxClientPopupControl.prototype.GetWindowContentHTML=function(window){var index=(window!=null)?window.index:-1;var element=this.GetWindowContentElement(index);return(element!=null)?element.innerHTML:"";}
ASPxClientPopupControl.prototype.SetWindowContentHTML=function(window,html){var index=(window!=null)?window.index:-1;var element=this.GetWindowContentElement(index);if(element!=null){element.innerHTML=html;this.ResizeWindowIFrame(index);}}
ASPxClientPopupControl.prototype.GetWindowContentUrl=function(window){var index=(window!=null)?window.index:-1;if(!this.IsWindowVisible(window))return this.GetWindowContentIFrameUrl(index);var element=this.GetWindowContentIFrameElement(index);return(element!=null)?element.src:"";}
ASPxClientPopupControl.prototype.SetWindowContentUrl=function(window,url){var index=(window!=null)?window.index:-1;var element=this.GetWindowContentIFrameElement(index);this.SetWindowContentIFrameUrl(index,url);var src=(__aspxIE&&!this.IsWindowVisible(window))?this.SSLSecureBlankUrl:url;if(element==null)this.CreateWidnowContentIFrameElement(index,src);else element.src=url}
ASPxClientPopupControl.prototype.RefreshWindowContentUrl=function(window){this.SetWindowContentUrl(window,this.GetWindowContentUrl(window));}
ASPxClientPopupControl.GetPopupControlCollection=function(){return aspxGetPopupControlCollection();}
ASPxClientPopupControl.prototype.CreateWidnowContentIFrameElement=function(index,src){var content=this.GetWindowContentElement(index);var iframeParent=content;content.innerHTML="";var iframe=this.CreateContentIFrameElement(index,src);var iframeDiv=null;if(!__aspxIE){iframeDiv=this.CreateContentIFrameDivElement(index);content.appendChild(iframeDiv);iframeParent=iframeDiv;}iframeParent.appendChild(iframe);if(!__aspxIE){if(__aspxOpera)iframe.style.height="100%";else iframe.style.height=iframeDiv.clientHeight+"px";}return iframe;}
ASPxClientPopupControl.prototype.CreateContentIFrameElement=function(index,src){var iframe=document.createElement("IFRAME");iframe.id=this.GetWindowContentIFrameElementId(index);iframe.scrolling="auto";iframe.frameBorder=0;iframe.style.width="100%";iframe.style.height=__aspxIE?"100%":"0px";iframe.src=src;return iframe;}
ASPxClientPopupControl.prototype.CreateContentIFrameDivElement=function(index){var iframeDiv=document.createElement("DIV");iframeDiv.id=this.GetWindowContentIFrameDivElementID(index);iframeDiv.style.width="100%";iframeDiv.style.height="100%";return iframeDiv;}
ASPxClientPopupControl.prototype.SetWindowContentIFrameUrl=function(index,url){if(0<=index&&index<this.contentUrlArray.length)this.contentUrlArray[index]=url;else this.contentUrl=url;}
ASPxClientPopupControl.prototype.GetWindowHeaderTextCell=function(index){return this.GetWindowChild(index,"_PWH"+index+"T");}
ASPxClientPopupControl.prototype.GetWindowHeaderImageCell=function(index){return this.GetWindowChild(index,"_PWH"+index+"I");}
ASPxClientPopupControl.prototype.GetWindowFooterTextCell=function(index){return this.GetWindowChild(index,"_PWF"+index+"T");}
ASPxClientPopupControl.prototype.GetWindowFooterImageCell=function(index){return this.GetWindowChild(index,"_PWF"+index+"I");}
ASPxClientPopupControl.prototype.GetWindowHeaderImageUrl=function(index){var element=this.GetWindowHeaderImageCell(index);if(element!=null){var img=_aspxGetChildByTagName(element,"IMG",0);if(img!=null)return img.src;}return "";}
ASPxClientPopupControl.prototype.SetWindowHeaderImageUrl=function(index,url){var element=this.GetWindowHeaderImageCell(index);if(element!=null){var img=_aspxGetChildByTagName(element,"IMG",0);if(img!=null)img.src=url;}}
ASPxClientPopupControl.prototype.GetWindowFooterImageUrl=function(index){var element=this.GetWindowFooterImageCell(index);if(element!=null){var img=_aspxGetChildByTagName(element,"IMG",0);if(img!=null)return img.src;}return "";}
ASPxClientPopupControl.prototype.SetWindowFooterImageUrl=function(index,url){var element=this.GetWindowFooterImageCell(index);if(element!=null){var img=_aspxGetChildByTagName(element,"IMG",0);if(img!=null)img.src=url;}}
ASPxClientPopupControl.prototype.GetWindowHeaderNavigateUrl=function(index){var element=this.GetWindowHeaderTextCell(index);if(element!=null){var link=_aspxGetChildByTagName(element,"A",0);if(link!=null)return link.href;}
element=this.GetWindowHeaderImageCell(index);if(element!=null){var link=_aspxGetChildByTagName(element,"A",0);if(link!=null)return link.href;}return "";}
ASPxClientPopupControl.prototype.SetWindowHeaderNavigateUrl=function(index,url){var element=this.GetWindowHeaderTextCell(index);if(element!=null){var link=_aspxGetChildByTagName(element,"A",0);if(link!=null)link.href=url;}
var element=this.GetWindowHeaderImageCell(index);if(element!=null){var link=_aspxGetChildByTagName(element,"A",0);if(link!=null)link.href=url;}}
ASPxClientPopupControl.prototype.GetWindowFooterNavigateUrl=function(index){var element=this.GetWindowFooterTextCell(index);if(element!=null){var link=_aspxGetChildByTagName(element,"A",0);if(link!=null)return link.href;}
element=this.GetWindowFooterImageCell(index);if(element!=null){var link=_aspxGetChildByTagName(element,"A",0);if(link!=null)return link.href;}return "";}
ASPxClientPopupControl.prototype.SetWindowFooterNavigateUrl=function(index,url){var element=this.GetWindowFooterTextCell(index);if(element!=null){var link=_aspxGetChildByTagName(element,"A",0);if(link!=null)link.href=url;}
var element=this.GetWindowFooterImageCell(index);if(element!=null){var link=_aspxGetChildByTagName(element,"A",0);if(link!=null)link.href=url;}}
ASPxClientPopupControl.prototype.GetWindowHeaderText=function(index){var element=this.GetWindowHeaderTextCell(index);if(element!=null){var link=_aspxGetChildByTagName(element,"A",0);if(link!=null)return link.innerHTML;else return element.innerHTML;}return "";}
ASPxClientPopupControl.prototype.SetWindowHeaderText=function(index,text){var element=this.GetWindowHeaderTextCell(index);if(element!=null){var link=_aspxGetChildByTagName(element,"A",0);if(link!=null)link.innerHTML=text;else element.innerHTML=text;}}
ASPxClientPopupControl.prototype.GetWindowFooterText=function(index){var element=this.GetWindowFooterTextCell(index);if(element!=null){var link=_aspxGetChildByTagName(element,"A",0);if(link!=null)return link.innerHTML;else return element.innerHTML;}return "";}
ASPxClientPopupControl.prototype.SetWindowFooterText=function(index,text){var element=this.GetWindowFooterTextCell(index);if(element!=null){var link=_aspxGetChildByTagName(element,"A",0);if(link!=null)link.innerHTML=text;else element.innerHTML=text;}}
ASPxClientPopupControl.prototype.GetHeaderImageUrl=function(){return this.GetWindowHeaderImageUrl(-1);}
ASPxClientPopupControl.prototype.SetHeaderImageUrl=function(value){this.SetWindowHeaderImageUrl(-1,value);}
ASPxClientPopupControl.prototype.GetFooterImageUrl=function(){return this.GetWindowFooterImageUrl(-1);}
ASPxClientPopupControl.prototype.SetFooterImageUrl=function(value){this.SetWindowFooterImageUrl(-1,value);}
ASPxClientPopupControl.prototype.GetHeaderNavigateUrl=function(){return this.GetWindowHeaderNavigateUrl(-1);}
ASPxClientPopupControl.prototype.SetHeaderNavigateUrl=function(value){this.SetWindowHeaderNavigateUrl(-1,value);}
ASPxClientPopupControl.prototype.GetFooterNavigateUrl=function(){return this.GetWindowFooterNavigateUrl(-1);}
ASPxClientPopupControl.prototype.SetFooterNavigateUrl=function(value){this.SetWindowFooterNavigateUrl(-1,value);}
ASPxClientPopupControl.prototype.GetHeaderText=function(){return this.GetWindowHeaderText(-1);}
ASPxClientPopupControl.prototype.SetHeaderText=function(value){this.SetWindowHeaderText(-1,value);}
ASPxClientPopupControl.prototype.GetFooterText=function(){return this.GetWindowFooterText(-1);}
ASPxClientPopupControl.prototype.SetFooterText=function(value){this.SetWindowFooterText(-1,value);}
ASPxClientPopupControlCollection.prototype.HideAllWindows=function(){this.DoHideAllWindows(null,"",true);}
ASPxClientPopupWindow=_aspxCreateClass(null,{constructor:function(popupControl,index,name){this.popupControl=popupControl;this.index=index;this.name=name;},GetHeaderImageUrl:function(){return this.popupControl.GetWindowHeaderImageUrl(this.index);},SetHeaderImageUrl:function(value){this.popupControl.SetWindowHeaderImageUrl(this.index,value);},GetFooterImageUrl:function(){return this.popupControl.GetWindowFooterImageUrl(this.index);},SetFooterImageUrl:function(value){this.popupControl.SetWindowFooterImageUrl(this.index,value);},GetHeaderNavigateUrl:function(){return this.popupControl.GetWindowHeaderNavigateUrl(this.index);},SetHeaderNavigateUrl:function(value){this.popupControl.SetWindowHeaderNavigateUrl(this.index,value);},GetFooterNavigateUrl:function(){return this.popupControl.GetWindowFooterNavigateUrl(this.index);},SetFooterNavigateUrl:function(value){this.popupControl.SetWindowFooterNavigateUrl(this.index,value);},GetHeaderText:function(){return this.popupControl.GetWindowHeaderText(this.index);},SetHeaderText:function(value){this.popupControl.SetWindowHeaderText(this.index,value);},GetFooterText:function(){return this.popupControl.GetWindowFooterText(this.index);},SetFooterText:function(value){this.popupControl.SetWindowFooterText(this.index,value);}});ASPxClientPopupWindowEventArgs=_aspxCreateClass(ASPxClientEventArgs,{constructor:function(processOnServer,window){this.constructor.prototype.constructor.call(this);this.window=window;}});