function RadMultiPage(id){ this.Container=document.getElementById(id); this.PageViews=[]; for (var i=0; i<this.Container.childNodes.length; i++){if (this.Container.childNodes[i].tagName&&this.Container.childNodes[i].tagName.toLowerCase() == "\x64\x69\x76"){ this.PageViews[this.PageViews.length]=this.Container.childNodes[i]; }} this.O=document.getElementById(id+"\x5f\x53\x65\x6c\x65\x63\x74\x65\x64"); }RadMultiPage.prototype.GetSelectedIndex= function (){return this.O.value; } ; RadMultiPage.prototype.SelectPageById= function (id){if (id == "\x4e\x75\x6c\x6c"){return; }id=this.Container.id+"\x5f"+id; var selected=-1; for (var i=0; i<this.PageViews.length; i++){if (this.PageViews[i].id == id){ this.PageViews[i].style.display="\x62\x6c\x6f\x63\x6b"; selected=i; }else { this.PageViews[i].style.display="\x6e\x6f\x6e\x65"; }} this.O.value=selected; } ; RadMultiPage.prototype.SelectPageByIndex= function (index){if (index>=this.PageViews.length){return; }for (var i=0; i<this.PageViews.length; i++){ this.PageViews[i].style.display=i == index?"\x62\x6c\x6f\x63\x6b": "\x6e\x6f\x6e\x65"; } this.O.value=index; } ;
