obips.ConfirmDialog=function(){};obips.ConfirmDialog.resourceFile="uicomponents/common/common.xml";obips.ConfirmDialog.Model=function(c,b,a,e,d){if(!d){obips.ConfirmDialog.Model.baseConstructor.call(this,c,b,a,e,obips.ResourceManager.getSingleton().getURL(obips.ConfirmDialog.resourceFile,"uicomponents/common/title_info.png").url)}else{obips.ConfirmDialog.Model.baseConstructor.call(this,c,b,a,e,d)}};extend(obips.ConfirmDialog.Model,obips.TextDialog.Model);obips.ConfirmDialog.Model.prototype.showYesNo=function(){this.bShowYesNo=true};obips.ConfirmDialog.Model.prototype.showRadio=function(){this.bShowRadio=true};obips.ConfirmDialog.Viewer=function(c,a,b){obips.ConfirmDialog.Viewer.baseConstructor.call(this,c,a);if(this.model.bShowRadio){this.showRadios(b)}this.floatingWindowManager.display(this);if(this.model.bShowYesNo){obips.Dialog.Viewer.updateButtonText(this.okButton,this.resourceManager.getResource(obips.Dialog.resourceFile,"kmsgUICDialogYes").getString());obips.Dialog.Viewer.updateButtonText(this.cancelButton,this.resourceManager.getResource(obips.Dialog.resourceFile,"kmsgUICDialogNo").getString())}};extend(obips.ConfirmDialog.Viewer,obips.TextDialog.Viewer);obips.ConfirmDialog.Viewer.prototype.createController=function(){this.controller=new obips.ConfirmDialog.Controller(this)};obips.ConfirmDialog.Viewer.prototype.showRadios=function(d){this.radioForm=document.createElement("form");this.radioForm.setAttribute("id","idEditLayoutsChoiceRadio");this.bodyDiv.appendChild(this.radioForm);for(var c=0;c<d.length;c++){var b=document.createElement("input");b.setAttribute("type","radio");b.setAttribute("name","radioButton");b.setAttribute("value",d[c]);var a=document.createElement("label");a.innerHTML=d[c];if(c==0){b.checked=true}this.radioForm.appendChild(b);this.radioForm.appendChild(a);this.radioForm.appendChild(document.createElement("br"))}};obips.ConfirmDialog.Controller=function(a){obips.ConfirmDialog.Controller.baseConstructor.call(this,a)};extend(obips.ConfirmDialog.Controller,obips.TextDialog.Controller);obips.ConfirmDialog.Controller.prototype.cancelDialog=function(){this.updateModel();this.closeDialog();this.viewer.model.callback.functionPointer.call(this.viewer.model.callback.thisContext,null)};obips.ConfirmDialog.Controller.prototype.updateModel=function(){if(this.viewer.model.bShowRadio){var b=document.getElementById("idEditLayoutsChoiceRadio");this.viewer.model.formValue=b.radioButton[0].value;for(var a=0;a<b.radioButton.length;a++){if(b.radioButton[a].checked){this.viewer.model.formValue=b.radioButton[a].value;break}}}};