Ext.ux.SlickCardLayout=Ext.extend(Ext.layout.CardLayout,{setActiveItem:function(a){a=this.container.getComponent(a);if(this.activeItem!=a){if(this.activeItem){this.activeItem.hide()}this.activeItem=a;this.layout();a.show();a.getEl().slideIn()}}});Ext.Container.LAYOUTS.slickcard=Ext.ux.SlickCardLayout;Ext.layout.ToolbarLayout=Ext.extend(Ext.layout.ContainerLayout,{onLayout:function(c,a){if(!this.leftTr){a.addClass("x-toolbar-layout-ct");a.createChild([{tag:"table",cls:"x-toolbar-left",cellspacing:0,cn:{tag:"tbody",cn:{tag:"tr"}}},{tag:"table",cls:"x-toolbar-right",cellspacing:0,cn:{tag:"tbody",cn:{tag:"tr"}}}]);this.leftTr=a.child(".x-toolbar-left tr",true);this.rightTr=a.child(".x-toolbar-right tr",true)}else{this.align=this.container.initialConfig.align;while(this.leftTr.lastChild){this.leftTr.removeChild(this.leftTr.lastChild)}while(this.rightTr.lastChild){this.rightTr.removeChild(this.rightTr.lastChild)}}var e=c.items.items;for(var b=0,d=e.length;b<d;b++){this.renderItem(e[b],b,a)}},getNextCell:function(a){return(((a.align=="right")||(this.container.align=="right")||(this.align=="right"))?this.rightTr:this.leftTr).appendChild(document.createElement("td"))},renderItem:function(b,a,d){if(b){if(b.isFill){this.align="right"}else{if(b instanceof Ext.Element){this.getNextCell().appendChild(b.dom)}else{if(b.rendered){if(this.renderOnLayout){b.el.remove();delete b.el;b.rendered=false}else{this.getNextCell(b).appendChild(b.el.dom)}}else{b.render(this.getNextCell(b))}}}}}});Ext.Container.LAYOUTS.toolbar=Ext.layout.ToolbarLayout;Ext.Toolbar=function(a){if(Ext.isArray(a)){a={items:a,layout:"toolbar"}}else{a=Ext.apply({layout:"toolbar"},a);if(a.buttons){a.items=a.buttons}}Ext.Toolbar.superclass.constructor.call(this,a)};(function(){var a=Ext.Toolbar;Ext.extend(a,Ext.Container,{defaultType:"tbbutton",trackMenus:true,autoCreate:{cls:"x-toolbar x-small-editor"},onRender:function(b,c){this.el=b.createChild(Ext.apply({id:this.id},this.autoCreate),c)},add:function(){var c=arguments,e=c.length;for(var b=0;b<e;b++){var d=c[b];if(d.isFormField){this.addField(d)}else{if(d.render){this.addItem(d)}else{if(typeof d=="string"){if(d=="separator"||d=="-"){this.addSeparator()}else{if(d==" "){this.addSpacer()}else{if(d=="->"){this.addFill()}else{this.addText(d)}}}}else{if(d.tag){this.addDom(d)}else{if(d.tagName){this.addElement(d)}else{if(typeof d=="object"){if(d.xtype){this.addItem(Ext.ComponentMgr.create(d,"button"))}else{this.addButton(d)}}}}}}}}},addSeparator:function(){return this.addItem(new a.Separator())},addSpacer:function(){return this.addItem(new a.Spacer())},addFill:function(){this.addItem(new a.Fill())},addElement:function(b){var c=new a.Item({el:b});this.addItem(c);return c},addItem:function(b){Ext.Toolbar.superclass.add.apply(this,arguments);return b},addButton:function(f){if(Ext.isArray(f)){var g=[];for(var c=0,e=f.length;c<e;c++){g.push(this.addButton(f[c]))}return g}var d=f;if(!(f instanceof a.Button)){d=f.split?new a.SplitButton(f):new a.Button(f)}this.initMenuTracking(d);this.addItem(d);return d},initMenuTracking:function(b){if(this.trackMenus&&b.menu){b.on({menutriggerover:this.onButtonTriggerOver,menushow:this.onButtonMenuShow,menuhide:this.onButtonMenuHide,scope:this})}},addText:function(b){var c=new a.TextItem(b);this.addItem(c);return c},insertButton:function(d,e){if(Ext.isArray(e)){var f=[];for(var b=0,c=e.length;b<c;b++){f.push(this.insertButton(d+b,e[b]))}return f}if(!(e instanceof a.Button)){e=new a.Button(e)}Ext.Toolbar.superclass.insert.call(this,d,e);return e},addDom:function(b){var c=new a.Item({autoEl:b});this.addItem(c);return c},addField:function(b){this.addItem(b);return b},onDisable:function(){this.items.each(function(b){if(b.disable){b.disable()}})},onEnable:function(){this.items.each(function(b){if(b.enable){b.enable()}})},onButtonTriggerOver:function(b){if(this.activeMenuBtn&&this.activeMenuBtn!=b){this.activeMenuBtn.hideMenu();b.showMenu();this.activeMenuBtn=b}},onButtonMenuShow:function(b){this.activeMenuBtn=b},onButtonMenuHide:function(b){delete this.activeMenuBtn}});Ext.reg("toolbar",Ext.Toolbar);a.Item=Ext.extend(Ext.BoxComponent,{hideParent:true,enable:Ext.emptyFn,disable:Ext.emptyFn,focus:Ext.emptyFn});Ext.reg("tbitem",a.Item);a.Separator=Ext.extend(a.Item,{onRender:function(b,c){this.el=b.createChild({tag:"span",cls:"ytb-sep"},c)}});Ext.reg("tbseparator",a.Separator);a.Spacer=Ext.extend(a.Item,{onRender:function(b,c){this.el=b.createChild({tag:"div",cls:"ytb-spacer"},c)}});Ext.reg("tbspacer",a.Spacer);a.Fill=Ext.extend(a.Item,{render:Ext.emptyFn,isFill:true});Ext.reg("tbfill",a.Fill);a.TextItem=Ext.extend(a.Item,{constructor:function(b){if(typeof b=="string"){b={autoEl:{cls:"ytb-text",html:b}}}else{b.autoEl={cls:"ytb-text",html:b.text||""}}a.TextItem.superclass.constructor.call(this,b)},setText:function(b){if(this.rendered){this.el.dom.innerHTML=b}else{this.autoEl.html=b}}});Ext.reg("tbtext",a.TextItem);a.Button=Ext.extend(Ext.Button,{hideParent:true,onDestroy:function(){a.Button.superclass.onDestroy.call(this);if(this.container){this.container.remove()}}});Ext.reg("tbbutton",a.Button);a.SplitButton=Ext.extend(Ext.SplitButton,{hideParent:true,onDestroy:function(){a.SplitButton.superclass.onDestroy.call(this);if(this.container){this.container.remove()}}});Ext.reg("tbsplit",a.SplitButton);a.MenuButton=a.SplitButton})();Ext.namespace("Ext.ux");Ext.ux.Image=Ext.extend(Ext.BoxComponent,{src:Ext.BLANK_IMAGE_URL,autoEl:{tag:"img",cls:"tng-managed-image",src:Ext.BLANK_IMAGE_URL},initComponent:function(){Ext.ux.Image.superclass.initComponent.apply(this,arguments)},onRender:function(){Ext.ux.Image.superclass.onRender.apply(this,arguments);if(!Ext.isEmpty(this.src)&&(this.src!==Ext.BLANK_IMAGE_URL)){this.setSrc(this.src)}this.relayEvents(this.el,["click","dblclick","mousedown","mouseup","mouseover","mousemove","mouseout","keypress","keydown","keyup"])},setSrc:function(a){this.el.dom.src=a}});Ext.reg("image",Ext.ux.Image);Ext.ux.FormGroup=Ext.extend(Ext.Panel,{collapsible:true,animCollapse:false,titleCollapse:false,hideCollapseTool:true,baseCls:"form-group"});Ext.reg("formgroup",Ext.ux.FormGroup);Ext.namespace("Ext.ux.form");Ext.ux.form.XMetaForm=Ext.extend(Ext.form.FormPanel,{autoInit:true,loadingText:"Loading...",savingText:"Saving...",buttonMinWidth:90,fileUpload:false,initComponent:function(){this.items=this.items||{};Ext.apply(this,{items:this.items});if("function"==typeof this.getButton){this.buttons=this.getButtons()}Ext.ux.form.XMetaForm.superclass.initComponent.apply(this,arguments);this.addEvents("cancel","ok");this.form.on({beforeaction:{scope:this,fn:this.beforeAction},actioncomplete:{scope:this,fn:function(a,b){if("load"===b.type&&b.result.metaData){this.onMetaChange(this,b.result.metaData)}else{if("submit"==b.type){this.updateBoundData()}}}}});this.form.trackResetOnLoad=true},beforeAction:function(a,b){b.success=function(d){var c=this.processResponse(d);if(c===true||!c.success||!c.data){this.failureType=Ext.form.Action.LOAD_FAILURE;this.form.afterAction(this,false);return}this.form.afterAction(this,true);this.form.clearInvalid();this.form.setValues(c.data)}},bind:function(a){this.data=a;this.form.setValues(this.data)},getButtons:function(){var a=[];if(this.createButtons.isArray){Ext.each(this.createButtons,function(c){var b;switch(c){case"meta":b=this.getButton(c,{handler:this.load.createDelegate(this,[{params:{meta:true}}])});break;case"load":b=this.getButton(c,{scope:this,handler:this.load});break;case"defaults":b=this.getButton(c,{scope:this,handler:this.setDefaultValues});break;case"reset":b=this.getButton(c,{scope:this,handler:this.reset});break;case"save":case"submit":b=this.getButton(c,{handler:this.submit.createDelegate(this,[{params:{cmd:"setPref"}}])});break;case"ok":b=this.getButton(c,{scope:this,handler:this.onOk});break;case"cancel":b=this.getButton(c,{scope:this,handler:this.onCancel});break}if(b){Ext.apply(b,{minWidth:this.buttonMinWidth});a.push(b)}},this)}return a},getOptions:function(a){var b={url:this.url,method:this.method||"post"};Ext.apply(b,a);b.params=Ext.apply(this.baseParams||{},a.params||{});return b},getValues:function(){var a={};this.form.items.each(function(b){a[b.name]=b.getValue()});return a},load:function(a){var b=this.getOptions(a||{});if(this.loadingText){b.waitMsg=this.loadingText}this.form.load(b)},onCancel:function(){this.fireEvent("cancel",this)},doConfig:function(a){if(!Ext.isEmpty(a)){this.buildPlugins(a);var b=a.items;if(!Ext.isEmpty(b)){this.doConfig(b)}else{if(!Ext.isEmpty(a.regex)){a.regex=new RegExp(a.regex)}if("checkbox"===a.xtype){Ext.apply(a,{boxLabel:" ",checked:a.defaultValue})}}}return a},buildPlugins:function(b){var a=b.plugins;if(!Ext.isEmpty(a)){delete b.plugins;var c=[];Ext.each(a,function(d){if(typeof d.init!=="function"){c.push(Ext.ComponentMgr.create(d))}});b.plugins=c}},onMetaChange:function(a,b){this.removeAll();Ext.apply(this,b.formConfig||{});var c=this.doConfig(b.fields||b.items||b.elements);Ext.each(c,function(d){this.add(d)},this);this.doLayout();if(this.monitorValid){this.startMonitoring()}},bindHandler:function(){if(!this.bound){return false}var c=true;this.findBy(function(e){if(e.isFormField===true&&!e.isValid(true)){c=false;return false}});if(this.buttons){for(var a=0,b=this.buttons.length;a<b;a++){var d=this.buttons[a];if(d.formBind===true&&d.disabled===c){d.setDisabled(!c)}}}this.fireEvent("clientvalidation",this,c)},onOk:function(){this.updateBoundData();this.fireEvent("ok",this)},afterRender:function(){Ext.ux.form.XMetaForm.superclass.afterRender.apply(this,arguments);this.form.waitMsgTarget=this.getEl();if(true===this.autoInit){this.load({params:{meta:true}})}else{if("object"==typeof this.autoInit){this.load(this.autoInit)}}},removeAll:function(){var a=this.body.up("div.x-panel-bwrap").prev();if(a){a.applyStyles({border:"none"})}this.items.each(this.remove,this);this.form.items.clear()},reset:function(){this.form.reset()},setDefaultValues:function(){this.form.items.each(function(a){a.setValue(a.defaultValue)})},isValid:function(a,d){var c=true;var b=this.findBy(function(e){if(e.isXType("field")){return true}});Ext.each(b,function(e){if(e.isValid(d)===false){c=false;if(a===false){return false}}});return c},submit:function(a){if(this.isValid(true,false)===true){var b=this.getOptions(a||{});if(this.savingText){b.waitMsg=this.savingText}this.form.submit(b)}},updateBoundData:function(){if(this.data){Ext.apply(this.data,this.getValues())}}});Ext.reg("xmetaform",Ext.ux.form.XMetaForm);Ext.namespace("Ext.ux");Ext.ux.BasicWizard=Ext.extend(Ext.Panel,{backBtnText:"Back",nextBtnText:"Continue",endBtnText:"Finish",animate:true,frame:false,useTrail:true,headerConfig:{},replayTo:null,replayBtnTxt:"Replay",activeIndex:0,toolbarLocation:"bottom",initComponent:function(){this.cards=this.initCards(this.items);this.cardCount=this.cards.items.length;this.headComp=new Ext.ux.WizardHeader(Ext.apply(this.headerConfig,{steps:this.cardCount}));Ext.apply(this,{layout:"border",defaults:{border:false},items:[this.headComp,this.cards]});var a=new Ext.Toolbar();if(this.toolbarLocation==="top"){this.tbar=a}else{if(this.toolbarLocation==="bottom"){this.bbar=a}}Ext.ux.BasicWizard.superclass.initComponent.apply(this,arguments);Ext.ux.BasicWizard.FINISH=0;Ext.ux.BasicWizard.REPLAY=1;Ext.ux.BasicWizard.FINISH_MODE=-1;this.addEvents("finish","replay","navigate","beforenav","afternav","beforefinish","beforereplay")},initCards:function(a){return new Ext.Container({autoEl:{tag:"div"},layout:this.animate?"slickcard":"card",activeItem:this.activeIndex,region:"center",hideBorders:true,defaults:{frame:this.frame,autoScroll:true,bodyStyle:"padding:15px"},items:this.itemsInit(a)})},itemsInit:function(b){var a=[];if(b){Ext.each(b,function(d){var c=this.buildPage(d);a.push(new Ext.Panel(c))},this)}if(a.length>=1){return a}else{return{}}},buildPage:function(a){if(!Ext.isEmpty(a)){this.buildPlugins(a);var b=a.items;if(!Ext.isEmpty(b)){this.buildPage(b)}}return a},buildPlugins:function(b){var a=b.plugins;if(!Ext.isEmpty(a)){delete b.plugins;var c=[];Ext.each(a,function(d){if(typeof d.init!=="function"){c.push(Ext.ComponentMgr.create(d))}});b.plugins=c}},onRender:function(){Ext.ux.BasicWizard.superclass.onRender.apply(this,arguments);this.backBtn=new Ext.Toolbar.Button({disabled:true,id:"move-page-back",text:this.backBtnText||"Back",handler:this.navigate.createDelegate(this,[-1])});this.nextBtn=new Ext.Toolbar.Button({disabled:true,id:"move-page-next",text:this.nextBtnText||"Continue",handler:this.navigate.createDelegate(this,[1])});if(this.replayTo!==null&&(typeof this.replayTo==="number")){this.replayBtn=new Ext.Toolbar.Button({disabled:true,id:"replay-wiz",text:this.replayBtnTxt,handler:this.replay.createDelegate(this,[this.replayTo])})}this.buildToolbar()},afterRender:function(){Ext.ux.BasicWizard.superclass.afterRender.apply(this,arguments);this.start(this.activeIndex)},updateTrails:function(a){if(this.useTrail===true){var b=(a.title||a.trailText);b=b?" - "+b:"";this.headComp.updateStep(this.next||this.activeIndex,b)}},start:function(a){this.backBtn.setDisabled(a===0);this.nextBtn.setText(this.nextBtnText);this.nextBtn.setDisabled((this.cardCount>1)?false:true);if(this.replayBtn){this.replayBtn.disable()}new Ext.util.DelayedTask().delay(500,function(){this.updateTrails(this.getActiveCard())},this)},getToolbar:function(){var a=(!this.getBottomToolbar())?this.getTopToolbar():this.getBottomToolbar();return a},buildToolbar:function(){var a=this.getToolbar();a.add("->",this.backBtn,"","-","",this.nextBtn,this.replayBtn||"");a.doLayout()},getCard:function(b){var a=this.cards.getLayout();if(Ext.isEmpty(b)){return a.activeItem}return a.container.getComponent(b)},getActiveCard:function(){return this.getCard()},getNext:function(b){if(Ext.isEmpty(b)){var a=this.getActiveCard().index;if(Ext.isEmpty(a)||isNaN(a)){throw this.getXType()+" requires 'pages' to have a numeric index property. User provided : "+a}return parseInt(a,10)+this.dir}else{return parseInt(b,10)}},hasNext:function(){var a=this.getCard(this.getNext());if(Ext.isEmpty(a)){return false}return true},moveNext:function(){var b=this.cards.getLayout();b.setActiveItem(this.next);var a=b.activeItem;a.doLayout();this.updateTrails(a);this.fireEvent("afternav",this.dir)},navigate:function(b,a){this.dir=b;if(this.fireEvent("beforenav",b,a)!==false){this.onNavigate(a);this.fireEvent("navigate",b,a)}},onNavigate:function(b){var c=this.nextBtn;var a=this.backBtn;var d=this.replayBtn;this.next=this.getNext(b);a.setDisabled(this.next===0);if(this.dir!==1){this.moveNext();if(c.disabled&&(this.next===this.cardCount-2)){c.enable()}else{if(d&&!d.disabled){d.disable()}if((this.endBtnText!=this.nextBtnText)&&(c.getText()==this.endBtnText)){c.setText(this.nextBtnText)}}}else{if(this.next==this.cardCount-1){c.setText(this.endBtnText);if(d){d.enable()}this.moveNext()}else{if(this.next==this.cardCount){this.finish()}else{this.moveNext()}}}},finish:function(){if(this.fireEvent("beforefinish")!==false){this.nextBtn.disable();if(this.replayBtn){this.replayBtn.disable()}Ext.ux.BasicWizard.FINISH_MODE=Ext.ux.BasicWizard.FINISH;this.onFinish();this.fireEvent("finish")}},onFinish:Ext.emptyFn,replay:function(a){if(this.fireEvent("beforereplay")!==false){this.nextBtn.disable();this.replayBtn.disable();Ext.ux.BasicWizard.FINISH_MODE=Ext.ux.BasicWizard.REPLAY;this.onReplay(a);this.doReplay(a);this.fireEvent("replay",a)}},doReplay:function(a){this.start(a);this.navigate(1,a)},onReplay:Ext.emptyFn});Ext.reg("basicwizard",Ext.ux.BasicWizard);Ext.namespace("Ext.ux");Ext.ux.Wizard=Ext.extend(Ext.ux.BasicWizard,{autoInit:false,url:null,loadingText:"Loading ...",savingText:"Saving ...",fileUpload:false,reviewEntries:false,westConfig:{width:0},helpBtn:{tooltip:"Help",text:"Help",iconCls:"help-btn"},monitorValid:true,initComponent:function(){this.prev={};Ext.ux.Wizard.superclass.initComponent.apply(this,arguments);this.westComp=new Ext.ux.WizardWest(Ext.apply(this.westConfig,{region:"west"}));this.add(this.westComp);this.cards.onMetaChange=this.onMetaChange.createDelegate(this);if(this.reviewEntries===true){this.reviewTpl=new Ext.XTemplate('<table width="100%" border="0">','<tpl for=".">','<tr class="{[xindex % 2 === 0 ? "x-wizard-field-review-plain" : "x-wizard-field-review-gray"]}">','<td class="x-wizard-field-review" valign="middle">{field}</td>','<td class="x-wizard-field-review" valign="middle">{value}</td>',"</tr>","</tpl>","</table>").compile()}this.addEvents("help","metachange");this.on({scope:this,afternav:this.afternav,beforenav:this.beforenav,beforefinish:this.beforefinish});if(this.helpBtn){Ext.apply(this.helpBtn,{scope:this,handler:this.help})}},initCards:function(b){var a=this;if(this.autoInit!==false){Ext.apply(this.autoInit.params||{},{meta:true})}return new Ext.ux.form.XMetaForm({loadingText:this.loadingText,savingText:this.savingText,layout:this.animate?"slickcard":"card",activeItem:this.activeIndex||0,region:"center",frame:this.frame,fileUpload:this.fileUpload,monitorValid:this.monitorValid,defaults:{border:false,autoHeight:true,autoScroll:true,bodyStyle:"padding:10px; position:relative;"},autoInit:this.autoInit,url:((typeof this.autoInit=="object")?this.autoInit.url:this.url||""),items:this.itemsInit(b),bindHandler:function(){if(!this.bound){return false}var c=this.isValid.call(a.getActiveCard(),false,true);if(!a.getToolbar().disabled&&(a.nextBtn.disabled===c)){a.nextBtn.setDisabled(!c)}this.fireEvent("clientvalidation",this,c)}})},itemsInit:function(b){var a=Ext.ux.Wizard.superclass.itemsInit.apply(this,arguments);if(this.reviewEntries===true&&Ext.isArray(a)){a.push({index:this.cardCount||a.length,trailText:"Confirmation"})}return a},buildPage:function(a){if(!Ext.isEmpty(a)){this.buildPlugins(a);var b=a.items;if(!Ext.isEmpty(b)){this.buildPage(b)}else{if(!Ext.isEmpty(a.regex)){a.regex=new RegExp(a.regex)}if("checkbox"===a.xtype){Ext.apply(a,{boxLabel:" ",checked:a.defaultValue})}}}return a},buildToolbar:function(){var a=this.getToolbar();a.add(this.helpBtn||"","->",this.backBtn,"","-","",this.nextBtn,"");a.doLayout()},updateTrails:function(a){Ext.ux.Wizard.superclass.updateTrails.apply(this,arguments);if(this.useTrail===true){this.westComp.updateStep(this.next||this.activeIndex)}},afterRender:function(){Ext.ux.Wizard.superclass.afterRender.apply(this,arguments);if(this.autoInit!==false){this.getToolbar().disable()}},onMetaChange:function(b,e){var d=this.cards;var a=d.getLayout().activeItem;if(a.index){d.items.each(function(g){if(g.index>a.index){this.items.remove(g)}},d)}else{d.removeAll();a=null}var c=e.pages||e.cards;Ext.each(c,function(g){if(a){g.index=(g.index+a.index)+1;if(this.nextBtn.getText()===this.endBtnText){this.nextBtn.setText(this.nextBtnText)}}else{a=g.isActiveItem?g.index:0}},this);this.cardCount=d.items.getCount()+c.length;var f=Ext.applyIf(this.itemsInit(c),e.formConfig||{});Ext.each(f,function(g){d.add(g)});d.doLayout();d.getLayout().setActiveItem(a);this.getToolbar().enable();this.cardCount=d.items.getCount();this.headComp.setStepCount(this.cardCount);this.start(a);this.fireEvent("metachange",b,e)},getCardValues:function(c,d){var e={};var b=this.getCard(c);var a=b.findBy(function(f){return f.isFormField===true});Ext.each(a,function(f){var j=undefined;if(d===true){j=f.initialConfig.reviewLabel;if(j===undefined){var k=f.getEl();j=(k?k.up("div.x-form-item").child("label",true).innerHTML:undefined);if(j===undefined){j=Ext.util.Format.capitalize(f.hiddenName||f.name)}}}else{j=f.hiddenName||f.name}if(j.indexOf(":")!==-1){j=j.substring(0,j.indexOf(":"))}if(j!==undefined){var h=f.getValue();e[j]=h;if(d===true&&f.isXType("combo")===true){if(f.findRecord&&f.valueField){if((typeof h.indexOf==="function")&&h.indexOf(",")!=-1){var i=h.split(",");var l=[];Ext.each(i,function(m){var n=f.findRecord(f.valueField,m);if(n){l.push(n.data[f.displayField])}});h=l.join(", ")}else{var g=f.findRecord(f.valueField,h);if(g){h=g.data[f.displayField]}}}e[j]=h}}});return e},getValues:function(a){var b={};this.cards.items.each(function(c){Ext.apply(b,this.getCardValues(c.index,a))},this);return b},sequenceCtrl:function(a){var d=null;var c=a.sequenceCtrl;if(c){var b=this.getCardValues(a.index);Ext.each(c,function(e){d=e.values[b[e.key]]},this)}return d},getNext:function(d){if(d!==undefined){return parseInt(d,10)}var e=this.getActiveCard();var b=parseInt(e.index,10);var c=this.sequenceCtrl(e);if(this.dir===-1){var a=this.prev[b];if(Ext.isEmpty(a)){c=b+this.dir}else{c=a}}else{if(this.dir===1){if(Ext.isEmpty(c)){c=b+this.dir}else{this.prev[c]=b}}}return c},validateCard:function(){if(this.dir===1){var a=this.getActiveCard();return this.cards.isValid.call(a,true,false)}return true},validate:function(){return this.cards.isValid(true,false)},beforenav:function(){return this.validateCard()},afternav:function(){var a=this.cards.items;if((this.next==a.length-1)&&(this.reviewEntries===true)){this.showReview()}},beforefinish:function(){return this.validate()},submit:function(a){var c;if(typeof this.autoInit==="object"){c=this.autoInit}c=Ext.apply(c||{},{params:this.baseParams});c=Ext.apply(c,a||{});c.url=c.url||this.url;var d=c.success;delete c.success;var b=c.failure;delete c.failure;this.getToolbar().disable();this.cards.submit(Ext.apply({success:function(e,f){this.getToolbar().enable();this.nextBtn.disable();if(this.replayBtn){this.replayBtn.disable()}this.reset();if(d){d.call(this,e,f,Ext.ux.BasicWizard.FINISH_MODE)}},failure:function(e,f){this.getToolbar().enable();if(b){b.call(this,e,f,Ext.ux.BasicWizard.FINISH_MODE)}},scope:this},c))},reset:function(){var a=this.cards;Ext.each(a.findBy(function(b){return b.isFormField===true}),function(b){b.reset()})},showReview:function(){if(this.reviewEntries===true){if(this.reviewPanel===undefined){var a=this.getActiveCard();var b=this.getReviewStore();this.reviewDataViewer=new Ext.DataView({tpl:this.reviewTpl,store:b,autoHeight:true,itemSelector:""});this.reviewPanel=new Ext.ux.FormGroup({title:"Review Entries",collapsible:false,items:{height:400,autoScroll:true,items:this.reviewDataViewer}});a.add(this.reviewPanel);a.doLayout()}else{this.reviewDataViewer.setStore(this.getReviewStore());this.reviewDataViewer.refresh()}}},getReviewStore:function(){var c=this.getValues(true);var b=[];for(var a in c){if(c.hasOwnProperty(a)){if(typeof c[a]==="function"){continue}b.push([a,c[a]])}}return new Ext.data.SimpleStore({id:0,data:b,fields:["field","value"]})},replay:function(a){if(this.fireEvent("beforereplay")!==false){this.nextBtn.disable();this.replayBtn.disable();Ext.ux.BasicWizard.FINISH_MODE=Ext.ux.BasicWizard.REPLAY;this.onReplay(a);this.fireEvent("replay",a)}},doReplay:function(a){this.reset();Ext.ux.Wizard.superclass.doReplay.apply(this,arguments)},help:function(){var a=this.getActiveCard();this.onHelp(a);this.fireEvent("help",a)},onHelp:Ext.emptyFn});Ext.reg("wizard",Ext.ux.Wizard);Ext.namespace("Ext.ux");Ext.ux.WizardHeader=Ext.extend(Ext.BoxComponent,{height:55,region:"north",titleText:"",titleImg:Ext.BLANK_IMAGE_URL,stepText:"Step {0} of {1} {2}",autoEl:{tag:"div",cls:"x-wizard-header",children:[{tag:"div",cls:"x-wizard-header-title",children:[{tag:"img",align:"center"},{tag:"span",cls:"x-wizard-header-title-txt"}]},{tag:"div",cls:"x-wizard-header-step"}]},onRender:function(b,a){Ext.ux.WizardHeader.superclass.onRender.call(this,b,a);this.stepTemplate=new Ext.Template(this.stepText);this.stepTemplate.compile();var c=this.el.dom.firstChild;this.titleTxtEl=new Ext.Element(c.lastChild);this.stepEl=new Ext.Element(c.nextSibling);this.titleImgEl=new Ext.Element(c.firstChild);this.titleImgEl.dom.src=this.titleImg;this.titleTxtEl.update(this.titleText)},updateStep:function(a,c){var b=this.stepTemplate.apply({0:a+1,1:this.steps,2:c});this.stepEl.update(b)},addSteps:function(a){this.steps=parseInt(this.steps,10)+a},setStepCount:function(a){this.steps=a}});Ext.namespace("Ext.ux");Ext.ux.WizardWest=Ext.extend(Ext.Container,{width:0,autoEl:{tag:"div"},style:"padding-top:20px",layout:"table",layoutConfig:{columns:1},defaults:{style:"padding:5px 7px"},images:[],initComponent:function(){var a=[];Ext.each(this.images,function(b){a.push(new Ext.ux.Image({src:b,disabled:true}))},this);Ext.apply(this,{items:a});Ext.ux.WizardWest.superclass.initComponent.apply(this,arguments)},updateStep:function(c){var b=this.items;var a=b.itemAt(c);if(a&&b.getCount()>=1){a.enable();b.each(function(d){if(a!==d){d.disable()}})}}});var CBFormWizard=function(a){var b=0;Ext.each(a.items,function(c){Ext.apply(c,{index:b,layout:"form",header:false,labelWidth:350,defaults:{width:300}});b++});win=new Ext.Window({layout:"fit",width:800,modal:true,closeAction:"hide",shadow:"frame",shadowOffset:4,constrain:true,height:500,center:true,title:"Charity Bank Application Form Helper",items:{xtype:"wizard",animate:false,height:500,replayTo:1,helpBtn:null,replayBtn:null,savingText:"creating Form for download ...",reviewEntries:false,url:"dunny",headerConfig:{titleText:a.title,titleImg:a.image},items:a.items,listeners:{help:function(c){Ext.Msg.alert("Card ["+c.index+"] is active")},beforefinish:function(f,g,h,i,j){this.submit({success:function(c,d,e){},failure:function(d,e,k){var c=d.getValues();for(prop in c){Ext.util.Format.htmlEncode(c[prop])}ewin=new Ext.Window({width:250,height:100,title:"Download form",plain:true,padding:10,html:"<h2>Please click <a href='http://cbforms.phola.com/formfetch.aspx?form="+a.form+"&"+Ext.urlEncode(c)+"'>here</a> to download your form</h2>"});ewin.show()}})},replay:function(c){this.submit({success:function(d,e,f){this.doReplay(c)}})}}}});win.show()};Ext.ns("Forms");Forms.IntroFieldSet=function(){var a=[{xtype:"fieldset",title:"Welcome to The Charity Bank Form Helper",autoHeight:true,labelWidth:350,width:750,items:[{html:"<li>Please go through the helper and fill in the appropriate fields. Once complete you will be able to download a full copy of the form. Please review this, fill in any additional fields, sign and return to the postal address on the form.</li>",width:730,border:false,baseCls:"introtext"},{html:"<li>Separate forms are available for individuals, charities or corporates / institutions. If this is the incorrect form please close this window and choose the relevant form for you / your organisation. If you are unsure about which form is appropriate, please call our Deposits Team on 017320 774040.</li>",width:730,border:false,baseCls:"introtext"},{html:"<li>If you do not have the information you need with you while completing this form, it is possible to miss out these sections, print out the form and then fill in the remainder by hand.</li>",width:730,border:false,baseCls:"introtext"},{html:'<li>Important Note: to download a completed copy of the form you need Adobe Reader 8 or 9.  If you have an earlier version of Adobe Reader you must download the latest version <a href="http://get.adobe.com/uk/reader/" target="_blank">here</a> or close this window and download a form to complete by hand. </li>',width:730,border:false,baseCls:"introtext"}]}];return a};Ext.ns("Forms");Forms.Intro1=function(){var a=[Forms.IntroFieldSet(),{html:"Please indicate the term of the deposit you would like to open:",width:450,border:false,baseCls:"formtext",style:"padding:0px;",bodyStyle:"padding:0px;"},{xtype:"radiogroup",fieldLabel:"Term",items:[{boxLabel:"12 months",name:"term",inputValue:"12"},{boxLabel:"36 months",name:"term",inputValue:"36"}]},{fieldLabel:"We would like to open the account with &pound; (minimum &pound;1,000)",name:"open",xtype:"textfield"}];return a};Ext.ns("Forms");Forms.Intro2=function(){var a=[Forms.IntroFieldSet(),{html:"We would like to open the following account:",width:450,border:false,baseCls:"formtext",style:"padding:0px;",bodyStyle:"padding:0px;"},{xtype:"radiogroup",fieldLabel:"Term",width:400,items:[{boxLabel:"30 days notice",name:"Notice",inputValue:"30"},{boxLabel:"90 days notice",name:"Notice",inputValue:"90"},{boxLabel:"365 days notice",name:"Notice",inputValue:"365"}]},{fieldLabel:"We would like to open the account with &pound; (minimum &pound;10)",name:"open",xtype:"textfield"},{html:"Monthly Saving Option",width:450,border:false,baseCls:"formtext",style:"padding:0px;",bodyStyle:"padding:0px;"},{fieldLabel:"We would like to make regular monthly payments of &pound;",name:"monthly",xtype:"textfield"},{fieldLabel:"We have completed and enclosed a direct debit mandate form",name:"check1",xtype:"checkbox",inputValue:"On"}];return a};Ext.ns("Forms");Forms.Intro25=function(){var a=[Forms.IntroFieldSet(),{html:"We would like to open the following account:",width:450,border:false,baseCls:"formtext",style:"padding:0px;",bodyStyle:"padding:0px;"},{xtype:"radiogroup",fieldLabel:"Term",width:400,items:[{boxLabel:"30 days notice",name:"notice",inputValue:"30"},{boxLabel:"90 days notice",name:"notice",inputValue:"90"},{boxLabel:"365 days notice",name:"notice",inputValue:"365"}]},{fieldLabel:"We would like to open the account with &pound; (minimum &pound;10)",name:"open",xtype:"textfield"},{html:"Monthly Saving Option",width:450,border:false,baseCls:"formtext",style:"padding:0px;",bodyStyle:"padding:0px;"},{fieldLabel:"We would like to make regular monthly payments of &pound;",name:"monthly",xtype:"textfield"},{fieldLabel:"We have completed and enclosed a direct debit mandate form",name:"tick1",xtype:"checkbox",inputValue:"On"}];return a};Ext.ns("Forms");Forms.Intro3=function(){var a=[Forms.IntroFieldSet(),{fieldLabel:"I would like to open the account with &pound;",name:"open",xtype:"textfield"}];return a};Ext.ns("Forms");Forms.Intro4=function(){var a=[Forms.IntroFieldSet(),{html:'<div style="font-size:14px;">We would like to open the following account:<br><br/></div>',width:450,border:false,style:"padding:0px;",bodyStyle:"padding:0px;"},{fieldLabel:"6 months",name:"notice",xtype:"checkbox"},{fieldLabel:"12 months",name:"notice",xtype:"checkbox"},{fieldLabel:"36 months",name:"notice",xtype:"checkbox"},{fieldLabel:"60 months",name:"notice",xtype:"checkbox"},{fieldLabel:"I/We would like to open the account with &pound;",name:"open",xtype:"textfield"},{fieldLabel:"We would like to make regular monthly payments of &pound;",name:"open",xtype:"textfield"},{fieldLabel:"We have completed and enclosed a direct debit mandate form",name:"check1",xtype:"checkbox"}];return a};Ext.ns("Forms");Ext.ns("Forms.Applicant");Forms.Applicant.ISADetails1=function(){var a=[{fieldLabel:"Mr/Mr/Ms/Other",name:"title",xtype:"textfield"},{fieldLabel:"Full name",name:"name",xtype:"textfield"},{fieldLabel:"Permanent residential address",name:"address1",xtype:"textfield"},{fieldLabel:"Address line 2",name:"address2",xtype:"textfield"},{fieldLabel:"Address line 3",name:"address3",xtype:"textfield"},{fieldLabel:"Address line 4",name:"address4",xtype:"textfield"},{fieldLabel:"Post code",name:"postcode",xtype:"textfield",regexText:"Please enter a valid UK Postcde",width:100},{fieldLabel:"How long at that address",name:"time",xtype:"textfield",width:100},{html:"If less than three years, supply previous address(es) on separate sheet of paper (applies to all signatories).<br/>",width:730,border:false,baseCls:"notetext"},{fieldLabel:"TeleContact phone number (home)",name:"tel",xtype:"textfield",width:200,allowBlank:true},{fieldLabel:"Mobile",name:"mobile",xtype:"textfield",width:200,allowBlank:true},{fieldLabel:"Email address",name:"email",xtype:"textfield",width:200,allowBlank:true},{xtype:"compositefield",anchor:"-20",msgTarget:"side",fieldLabel:"Date of birth",items:[{xtype:"displayfield",value:"Day"},{xtype:"numberfield",width:40,name:"1day",fieldLabel:"day"},{xtype:"displayfield",value:"Month"},{xtype:"numberfield",width:40,name:"1month",fieldLabel:"Month"},{xtype:"displayfield",value:"Year"},{xtype:"numberfield",width:40,name:"1year",fieldLabel:"Year"}]},{fieldLabel:"Country and place of birth",name:"place",xtype:"textfield",width:200,allowBlank:true},{fieldLabel:"National Insurance number",name:"ni",xtype:"textfield",width:200,allowBlank:true},{fieldLabel:"Where did you hear about Carity Bank?",name:"hearabout",xtype:"textfield"}];return a};Ext.ns("Forms");Ext.ns("Forms.Applicant");Forms.Applicant.ISADetails2=function(){var a=[{fieldLabel:"ISA Manager",name:"manager",xtype:"textfield"},{fieldLabel:"ISA Account Number",name:"accno",xtype:"textfield"},{fieldLabel:"Address",name:"2address",xtype:"textfield"},{fieldLabel:"Post code",name:"postcode",xtype:"textfield",regexText:"Please enter a valid UK Postcde",width:100},{fieldLabel:"Amount to transfer to Charity Bank",name:"amount",xtype:"textfield",width:100}];return a};Ext.ns("Forms");Ext.ns("Forms.Applicant");Forms.Applicant.SmallStepsDetails1=function(){var a=[{fieldLabel:"Mr/Mr/Ms/Other",name:"1title",xtype:"textfield",allowBlank:true},{fieldLabel:"Full name",name:"1name",xtype:"textfield",allowBlank:true},{fieldLabel:"Permanent residential address",name:"1address1",xtype:"textfield",allowBlank:true},{fieldLabel:"Address line 2",name:"1address2",xtype:"textfield",allowBlank:true},{fieldLabel:"Address line 3",name:"1address3",xtype:"textfield",allowBlank:true},{fieldLabel:"Address line 4",name:"1address4",xtype:"textfield",allowBlank:true},{fieldLabel:"Post code",name:"1postcode",xtype:"textfield",regexText:"Please enter a valid UK Postcde",width:100,allowBlank:true},{fieldLabel:"How long at that address",name:"1time",xtype:"textfield",width:100,allowBlank:true},{html:"If less than three years, supply previous address(es) on separate sheet of paper (applies to all signatories).<br/>",width:730,border:false,baseCls:"notetext"},{fieldLabel:"Contact phone number",name:"1tel",xtype:"textfield",width:200,allowBlank:true},{fieldLabel:"Email address",name:"1email",xtype:"textfield",width:200,allowBlank:true},{xtype:"compositefield",anchor:"-20",msgTarget:"side",fieldLabel:"Date of birth",items:[{xtype:"displayfield",value:"Day"},{xtype:"numberfield",width:40,name:"1day",fieldLabel:"day"},{xtype:"displayfield",value:"Month"},{xtype:"numberfield",width:40,name:"1month",fieldLabel:"Month"},{xtype:"displayfield",value:"Year"},{xtype:"numberfield",width:40,name:"1year",fieldLabel:"Year"}]},{fieldLabel:"Country and place of birth",name:"1place",xtype:"textfield",width:200,allowBlank:true},{fieldLabel:"National Insurance number",name:"1ni",xtype:"textfield",width:200,allowBlank:true},{fieldLabel:"Relationship to child",name:"1relation",xtype:"textfield",width:200,allowBlank:true}];return a};Ext.ns("Forms");Ext.ns("Forms.Applicant");Forms.Applicant.SmallStepsDetails2=function(){var a=[{fieldLabel:"Mr/Mr/Ms/Other",name:"2title",xtype:"textfield",allowBlank:true},{fieldLabel:"Full name",name:"2name",xtype:"textfield",allowBlank:true},{fieldLabel:"Permanent residential address",name:"2address1",xtype:"textfield",allowBlank:true},{fieldLabel:"Address line 2",name:"2address2",xtype:"textfield",allowBlank:true},{fieldLabel:"Address line 3",name:"2address3",xtype:"textfield",allowBlank:true},{fieldLabel:"Address line 4",name:"2address4",xtype:"textfield",allowBlank:true},{fieldLabel:"Post code",name:"2postcode",xtype:"textfield",regexText:"Please enter a valid UK Postcde",width:100,allowBlank:true},{fieldLabel:"How long at that address",name:"2time",xtype:"textfield",width:100,allowBlank:true},{html:"If less than three years, supply previous address(es) on separate sheet of paper (applies to all signatories).<br/>",width:730,border:false,baseCls:"notetext"},{fieldLabel:"Contact phone number",name:"2tel",xtype:"textfield",width:200,allowBlank:true},{fieldLabel:"Email address",name:"2email",xtype:"textfield",width:200,allowBlank:true},{xtype:"compositefield",anchor:"-20",msgTarget:"side",fieldLabel:"Date of birth",items:[{xtype:"displayfield",value:"Day"},{xtype:"numberfield",width:40,name:"2day",fieldLabel:"day"},{xtype:"displayfield",value:"Month"},{xtype:"numberfield",width:40,name:"2month",fieldLabel:"Month"},{xtype:"displayfield",value:"Year"},{xtype:"numberfield",width:40,name:"2year",fieldLabel:"Year"}]},{fieldLabel:"Country and place of birth",name:"2place",xtype:"textfield",width:200,allowBlank:true},{fieldLabel:"National Insurance number",name:"2ni",xtype:"textfield",width:200,allowBlank:true},{fieldLabel:"Relationship to child",name:"2relation",xtype:"textfield",width:200,allowBlank:true}];return a};Ext.ns("Forms");Ext.ns("Forms.Applicant");Forms.Applicant.SmallStepsDetails3=function(){var a=[{fieldLabel:"Childs full name",name:"childname",xtype:"textfield"},{xtype:"compositefield",anchor:"-20",msgTarget:"side",fieldLabel:"Childs Date of birth",items:[{xtype:"displayfield",value:"Day"},{xtype:"numberfield",width:40,name:"cday",fieldLabel:"day"},{xtype:"displayfield",value:"Month"},{xtype:"numberfield",width:40,name:"cmonth",fieldLabel:"Month"},{xtype:"displayfield",value:"Year"},{xtype:"numberfield",width:40,name:"cyear",fieldLabel:"Year"}]},{fieldLabel:"Account address",name:"caddress1",xtype:"textfield"},{fieldLabel:"Address line 2",name:"caddress2",xtype:"textfield"},{fieldLabel:"Address line 3",name:"caddress3",xtype:"textfield"},{fieldLabel:"Address line 4",name:"caddress4",xtype:"textfield"},{fieldLabel:"Post code",name:"cpostcode",xtype:"textfield",regexText:"Please enter a valid UK Postcde",width:100},{fieldLabel:"Country and place of birth",name:"cplace",xtype:"textfield",width:200}];return a};Ext.ns("Forms");Ext.ns("Forms.Applicant");Forms.Applicant.CharityDetails1=function(){var a=[{fieldLabel:"Full name of charity",name:"chname",xtype:"textfield"},{fieldLabel:"Registered address",name:"chaddress1",xtype:"textfield"},{fieldLabel:"Address line 2",name:"chaddress2",xtype:"textfield"},{fieldLabel:"Address line 3",name:"chaddress3",xtype:"textfield"},{fieldLabel:"Post code",name:"copostcode",xtype:"textfield",width:100},{fieldLabel:"Address for communications if different",name:"altaddress1",xtype:"textfield"},{fieldLabel:"Address line 2",name:"altaddress2",xtype:"textfield"},{fieldLabel:"Address line 3",name:"altaddress3",xtype:"textfield"},{fieldLabel:"Post code",name:"altpostcode",xtype:"textfield",width:100},{fieldLabel:"Charity number (if applicable)",name:"chno",xtype:"textfield",width:200},{fieldLabel:"Contact phone number",name:"chtel",xtype:"textfield",width:200},{fieldLabel:"Email address",name:"chemail",xtype:"textfield",width:200},{fieldLabel:"Where did you hear about Charity Bank?",name:"hearabout",xtype:"textfield"},{xtype:"radiogroup",labelWidth:400,fieldLabel:"Please indicate whether your annual income / turnover is:",items:[{boxLabel:"above &pound;1m",name:"turnover",inputValue:"above"},{boxLabel:"below &pound;1m",name:"turnover",inputValue:"below"}]}];return a};Ext.ns("Forms");Ext.ns("Forms.Applicant");Forms.Applicant.CorporateDetails1=function(){var a=[{fieldLabel:"Full name of company or organisation",name:"coname",xtype:"textfield"},{fieldLabel:"Registered address",name:"coaddress1",xtype:"textfield"},{fieldLabel:"Address line 2",name:"coaddress2",xtype:"textfield"},{fieldLabel:"Address line 3",name:"coaddress3",xtype:"textfield"},{fieldLabel:"Post code",name:"copostcode",xtype:"textfield",regexText:"Please enter a valid UK Postcde",width:100},{fieldLabel:"Address for communications if different",name:"altaddress1",xtype:"textfield"},{fieldLabel:"Address line 2",name:"altaddress2",xtype:"textfield"},{fieldLabel:"Address line 3",name:"altaddress3",xtype:"textfield"},{fieldLabel:"Post code",name:"altpostcode",xtype:"textfield",width:100},{fieldLabel:"Company registration number",name:"coregno",xtype:"textfield",width:200},{fieldLabel:"Contact phone number",name:"cotel",xtype:"textfield",width:200},{fieldLabel:"Email address",name:"coemail",xtype:"textfield",width:200},{fieldLabel:"Where did you hear about Charity Bank?",name:"hearabout",xtype:"textfield"},{xtype:"radiogroup",fieldLabel:"Please indicate whether your annual income / turnover is:",items:[{boxLabel:"above &pound;1m",name:"turnover",inputValue:"above"},{boxLabel:"below &pound;1m",name:"turnover",inputValue:"below"}]}];return a};Ext.ns("Forms");Ext.ns("Forms.Applicant");Forms.Applicant.IndividualDetails1=function(){var a=[{fieldLabel:"Where did you hear about Charity Bank?",name:"hearabout",xtype:"textfield"},{xtype:"fieldset",title:"Tax",autoHeight:true,labelWidth:400,width:750,items:[{html:"If you are eligible to receive interest without tax deducted you will need to complete an R85 form (or R105 form if you are not resident in the UK). For joint accounts please complete a separate form per applicant.  (You can download these forms from the HMRC website at www.hmrc.gov.uk)",border:false,style:"padding:0px;",bodyStyle:"padding:0px;"},{xtype:"radiogroup",fieldLabel:"Are you eligible to receive interest without tax deducted?",labelStyle:"width:400px;",items:[{boxLabel:"Yes",name:"Tax",inputValue:"Yes"},{boxLabel:"No",name:"Tax",inputValue:"No"}]},{fieldLabel:"Please send me an R85 form",name:"forms",xtype:"checkbox",inputValue:"r85"},{fieldLabel:"Please send me an R105 form ",name:"forms",xtype:"checkbox",inputValue:"r105"}]},{xtype:"fieldset",title:"Interest donation",autoHeight:true,labelWidth:5,width:750,items:[{boxLabel:"If you would like to donate your interest to the Charity Bank Founder Reserve, keeping our loans affordable for charitable organisations, please tick the box",labelWidth:5,name:"donate",xtype:"checkbox",inputValue:"On"}]}];return a};Ext.ns("Forms");Ext.ns("Forms.Applicant");Forms.Applicant.ContactDetails2=function(){var a=[{fieldLabel:"Mr/Mr/Ms/Other",name:"1title",xtype:"textfield",allowBlank:true},{fieldLabel:"Full name",name:"1name",xtype:"textfield",allowBlank:true},{fieldLabel:"Permanent residential address",name:"1address1",xtype:"textfield",allowBlank:true},{fieldLabel:"Address line 2",name:"1address2",xtype:"textfield",allowBlank:true},{fieldLabel:"Address line 3",name:"1address3",xtype:"textfield",allowBlank:true},{fieldLabel:"Address line 4",name:"1address4",xtype:"textfield",allowBlank:true},{fieldLabel:"Post code",name:"1postcode",xtype:"textfield",width:100,allowBlank:true},{fieldLabel:"How long at that address",name:"1time",xtype:"textfield",width:100,allowBlank:true},{html:"If less than three years, supply previous address(es) on separate sheet of paper (applies to all signatories).<br/>",width:730,border:false,baseCls:"notetext"},{fieldLabel:"Contact phone number",name:"1tel",xtype:"textfield",width:200,allowBlank:true},{fieldLabel:"Email address",name:"1email",xtype:"textfield",width:200,allowBlank:true},{xtype:"compositefield",anchor:"-20",msgTarget:"side",fieldLabel:"Date of birth",items:[{xtype:"displayfield",value:"Day"},{xtype:"numberfield",width:40,name:"1day",fieldLabel:"day"},{xtype:"displayfield",value:"Month"},{xtype:"numberfield",width:40,name:"1month",fieldLabel:"Month"},{xtype:"displayfield",value:"Year"},{xtype:"numberfield",width:40,name:"1year",fieldLabel:"Year"}]},{fieldLabel:"Country and place of birth",name:"1place",xtype:"textfield",width:200,allowBlank:true},{fieldLabel:"National Insurance number",name:"1ni",xtype:"textfield",width:200,allowBlank:true}];return a};Ext.ns("Forms");Ext.ns("Forms.Applicant");Forms.Applicant.ContactDetails3=function(){var a=[{fieldLabel:"Mr/Mr/Ms/Other",name:"2title",xtype:"textfield",allowBlank:true},{fieldLabel:"Full name",name:"2name",xtype:"textfield",allowBlank:true},{fieldLabel:"Permanent residential address",name:"2address1",xtype:"textfield",allowBlank:true},{fieldLabel:"Address line 2",name:"2address2",xtype:"textfield",allowBlank:true},{fieldLabel:"Address line 3",name:"2address3",xtype:"textfield",allowBlank:true},{fieldLabel:"Address line 4",name:"2address4",xtype:"textfield",allowBlank:true},{fieldLabel:"Post code",name:"2postcode",xtype:"textfield",width:100,allowBlank:true},{fieldLabel:"How long at that address",name:"2time",xtype:"textfield",width:100,allowBlank:true},{html:"If less than three years, supply previous address(es) on separate sheet of paper (applies to all signatories).<br/>",width:730,border:false,baseCls:"notetext"},{fieldLabel:"Contact phone number",name:"2tel",xtype:"textfield",width:200,allowBlank:true},{fieldLabel:"Email address",name:"2email",xtype:"textfield",width:200,allowBlank:true},{xtype:"compositefield",anchor:"-20",msgTarget:"side",fieldLabel:"Date of birth",items:[{xtype:"displayfield",value:"Day"},{xtype:"numberfield",width:40,name:"2day",fieldLabel:"day"},{xtype:"displayfield",value:"Month"},{xtype:"numberfield",width:40,name:"2month",fieldLabel:"Month"},{xtype:"displayfield",value:"Year"},{xtype:"numberfield",width:40,name:"2year",fieldLabel:"Year"}]},{fieldLabel:"Country and place of birth",name:"2place",xtype:"textfield",width:200,allowBlank:true},{fieldLabel:"National Insurance number",name:"2ni",xtype:"textfield",width:200,allowBlank:true}];return a};Ext.ns("Forms");Ext.ns("Forms.Applicant");Forms.Applicant.ContactDetails4=function(){var a=[{fieldLabel:"Mr/Mr/Ms/Other",name:"3title",xtype:"textfield",allowBlank:true},{fieldLabel:"Full name",name:"3name",xtype:"textfield",allowBlank:true},{fieldLabel:"Permanent residential address",name:"3address1",xtype:"textfield",allowBlank:true},{fieldLabel:"Address line 2",name:"3address2",xtype:"textfield",allowBlank:true},{fieldLabel:"Address line 3",name:"3address3",xtype:"textfield",allowBlank:true},{fieldLabel:"Address line 4",name:"3address4",xtype:"textfield",allowBlank:true},{fieldLabel:"Post code",name:"3postcode",xtype:"textfield",width:100,allowBlank:true},{fieldLabel:"How long at that address",name:"3time",xtype:"textfield",width:100,allowBlank:true},{html:"If less than three years, supply previous address(es) on separate sheet of paper (applies to all signatories).<br/>",width:730,border:false,baseCls:"notetext"},{fieldLabel:"Contact phone number",name:"3tel",xtype:"textfield",width:200,allowBlank:true},{fieldLabel:"Email address",name:"3email",xtype:"textfield",width:200,allowBlank:true},{xtype:"compositefield",anchor:"-20",msgTarget:"side",fieldLabel:"Date of birth",items:[{xtype:"displayfield",value:"Day"},{xtype:"numberfield",width:40,name:"3day",fieldLabel:"day"},{xtype:"displayfield",value:"Month"},{xtype:"numberfield",width:40,name:"3month",fieldLabel:"Month"},{xtype:"displayfield",value:"Year"},{xtype:"numberfield",width:40,name:"3year",fieldLabel:"Year"}]},{fieldLabel:"Country and place of birth",name:"3place",xtype:"textfield",width:200,allowBlank:true},{fieldLabel:"National Insurance number",name:"3ni",xtype:"textfield",width:200,allowBlank:true}];return a};Ext.ns("Forms");Ext.ns("Forms.Applicant");Forms.Applicant.ContactDetails5=function(){var a=[{fieldLabel:"Mr/Mr/Ms/Other",name:"4title",xtype:"textfield",allowBlank:true},{fieldLabel:"Full name",name:"4name",xtype:"textfield",allowBlank:true},{fieldLabel:"Permanent residential address",name:"4address1",xtype:"textfield",allowBlank:true},{fieldLabel:"Address line 2",name:"4address2",xtype:"textfield",allowBlank:true},{fieldLabel:"Address line 3",name:"4address3",xtype:"textfield",allowBlank:true},{fieldLabel:"Address line 4",name:"4address4",xtype:"textfield",allowBlank:true},{fieldLabel:"Post code",name:"4postcode",xtype:"textfield",width:100,allowBlank:true},{fieldLabel:"How long at that address",name:"4time",xtype:"textfield",width:100,allowBlank:true},{html:"If less than three years, supply previous address(es) on separate sheet of paper (applies to all signatories).<br/>",width:730,border:false,baseCls:"notetext"},{fieldLabel:"Contact phone number",name:"4tel",xtype:"textfield",width:200,allowBlank:true},{fieldLabel:"Email address",name:"4email",xtype:"textfield",width:200,allowBlank:true},{xtype:"compositefield",anchor:"-20",msgTarget:"side",fieldLabel:"Date of birth",items:[{xtype:"displayfield",value:"Day"},{xtype:"numberfield",width:40,name:"4day",fieldLabel:"day"},{xtype:"displayfield",value:"Month"},{xtype:"numberfield",width:40,name:"4month",fieldLabel:"Month"},{xtype:"displayfield",value:"Year"},{xtype:"numberfield",width:40,name:"4year",fieldLabel:"Year"}]},{fieldLabel:"Country and place of birth",name:"4place",xtype:"textfield",width:200,allowBlank:true},{fieldLabel:"National Insurance number",name:"4ni",xtype:"textfield",width:200,allowBlank:true}];return a};Ext.ns("Forms");Ext.override(Ext.form.Checkbox,{getResizeEl:function(){if(!this.resizeEl){this.resizeEl=this.wrap}return this.resizeEl}});Forms.TaxEtc=function(){var a=[{xtype:"fieldset",title:"Tax",autoHeight:true,labelWidth:400,width:750,style:"padding:6px;",items:[{xtype:"radiogroup",fieldLabel:"Are you eligible to receive interest without tax deducted?",labelStyle:"width:400px;",items:[{boxLabel:"Yes",name:"tax",inputValue:"yes"},{boxLabel:"No",name:"tax",inputValue:"no"}]}]},{xtype:"fieldset",title:"Authorisation",autoHeight:true,labelWidth:600,style:"padding:6px;",width:750,items:[{xtype:"compositefield",anchor:"-20",msgTarget:"side",fieldLabel:"Extract from the minutes of a meeting of the board of the above body held on",items:[{xtype:"numberfield",width:20,name:"aday",fieldLabel:"day"},{xtype:"displayfield",value:"/"},{xtype:"numberfield",width:20,name:"amonth",fieldLabel:"Month"},{xtype:"displayfield",value:"/"},{xtype:"numberfield",width:40,name:"ayear",fieldLabel:"Year"}]},{html:"It was resolved that the sum stated above being part of the funds of the said body be deposited with The Charity Bank Limited and that the officers named above be authorised, on behalf of the said body, to operate the account. <br/> <i>The above is certified as a true and correct extract from the minutes referred to above.</i>",width:730,border:false,baseCls:"introtext"},{fieldLabel:"We are enclosing certified copies of Certificate of Incorporation and Memorandum & Articles of Association or governing document or rules.",name:"tick2",xtype:"checkbox",inputValue:"On"}]}];return a};Ext.ns("Forms");Ext.override(Ext.form.Checkbox,{getResizeEl:function(){if(!this.resizeEl){this.resizeEl=this.wrap}return this.resizeEl}});Forms.UseDecl=function(){var a=[{xtype:"fieldset",title:"Use of information",autoHeight:true,labelWidth:5,width:750,style:"padding:6px;",items:[{boxLabel:"Charity Bank will use your information to provide the charitable products or service you have requested. We will not disclose your information to any outside organisation except as part of providing that product or service or when legally advised to do so.<br/> We may provide you with details or information about products, services or events of ours which we think may be of interest to you. If you do not wish to receive such information or details of our other products, services or events please indicate here",labelWidth:5,name:"check3",xtype:"checkbox",inputValue:"On"}]},{xtype:"fieldset",title:"Declaration - Each signatory should read the following before signing",autoHeight:true,labelWidth:5,width:750,style:"padding:6px;",items:[{boxLabel:"I have read the account terms and conditions set out in the Deposit Account Terms and Conditions and agree to be bound by them.",labelWidth:5,name:"check4",xtype:"checkbox",inputValue:"On"},{boxLabel:"I agree to Charity Bank using the information contained in this form for processing the application and managing the account, including carrying out an electronic search. I understand that the information may be held electronically and also that it may be retained after the account is closed. I am aware that under the Data Protection Act 1998 I can request a copy of any personal information held about me in the Bank's records and also ask for any errors to be corrected.",labelWidth:5,name:"check5",xtype:"checkbox",inputValue:"On"}]}];return a};Ext.ns("Forms");Forms.TaxEtcIndividual=function(){var a=[{xtype:"fieldset",title:"Use of information",autoHeight:true,labelWidth:5,width:750,items:[{boxLabel:"Charity Bank will use your information to provide the charitable products or service you have requested. We will not disclose your information to any outside organisation except as part of providing that product or service or when legally advised to do so.<br/> We may provide you with details or information about products, services or events of ours which we think may be of interest to you. If you do not wish to receive such information or details of our other products, services or events please indicate here",labelWidth:5,name:"tick2",xtype:"checkbox",inputValue:"On"}]},{xtype:"fieldset",title:"Declaration - Each signatory should read the following before signing",autoHeight:true,labelWidth:5,width:750,items:[{boxLabel:"I have read the account terms and conditions set out in the Deposit Account Terms and Conditions and agree to be bound by them.",labelWidth:5,name:"tick3",xtype:"checkbox",inputValue:"On"},{boxLabel:"I agree to Charity Bank using the information contained in this form for processing the application and managing the account, including carrying out an electronic search. I understand that the information may be held electronically and also that it may be retained after the account is closed. I am aware that under the Data Protection Act 1998 I can request a copy of any personal information held about me in the Bank's records and also ask for any errors to be corrected.",labelWidth:5,name:"tick4",xtype:"checkbox",inputValue:"On"}]}];return a};Ext.ns("Forms");Forms.Outro=function(){var a=[{xtype:"fieldset",title:"Thank you.To complete the application please:",autoHeight:true,labelWidth:350,width:750,items:[{html:'<li>Click "Finish" to download the application form to your computer.</li>',width:730,border:false,baseCls:"introtext"},{html:"<li>Fill in any outstanding information by hand.</li>",width:730,border:false,baseCls:"introtext"},{html:"<li>Print name, sign and return to Charity Bank. Please enclose a cheque payable to Charity Bank and your name and direct debit mandate forms if necessary. The address to post to is on the printed form.</li>",width:730,border:false,baseCls:"introtext"}]}];return a};Ext.ns("Wizards");note="A minimum of two signatories is required";corpnote="please fill in details for all the signatories required to operate the account.";Wizards.CBCB_for_Charities=function(){CBFormWizard({title:'<div class="mhead">The Charity Bank Community Bond</div><div class="shead">Application form for charities <br/> (incorporated or unincorporated)</div>',image:"http://cbforms.phola.com/logo.jpg",url:"default.aspx",form:"CBCB for Charities if",items:[{title:"Intro",defaults:{width:300},items:Forms.Intro1()},{title:"Details of Charity",defaults:{width:300},items:Forms.Applicant.CharityDetails1()},{title:"Details of officers/trustees : First signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails2()},{title:"Details of officers/trustees : Second signatory <br/> A minimum of two signatories is required",defaults:{width:300},items:Forms.Applicant.ContactDetails3(note)},{title:"Details of officers/trustees : Third signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails4()},{title:"Details of officers/trustees : Fourth signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails5()},{title:"Tax, Authorisation",items:Forms.UseDecl()},{title:"Use of information, Declaration",items:Forms.TaxEtc()},{title:"Print and Sign",defaults:{width:300},items:Forms.Outro()}]})};Wizards.CBCB_for_Corporates=function(){CBFormWizard({title:'<div class="mhead">The Charity Bank Community Bond</div><div class="shead">Application form for corporates</div>',image:"http://cbforms.phola.com/logo.jpg",url:"default.aspx",form:"CBCB for Corporates if",items:[{title:"Intro",defaults:{width:300},items:Forms.Intro1()},{title:"Details of company or organisation",defaults:{width:300},items:Forms.Applicant.CorporateDetails1()},{title:"Contact names and details : First signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails2()},{title:"Contact names and details : Second signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails3(note)},{title:"Contact names and details : Third signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails4()},{title:"Contact names and details : Fourth signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails5()},{title:"Tax, Authorisation",items:Forms.UseDecl()},{title:"Use of information, Declaration",items:Forms.TaxEtc()},{title:"Print and Sign",defaults:{width:300},items:Forms.Outro()}]})};Wizards.CBCB_for_Individuals=function(){CBFormWizard({title:'<div class="mhead">The Charity Bank Community Bond</div><div class="shead">Application form for individuals</div>',image:"http://cbforms.phola.com/logo.jpg",url:"default.aspx",form:"CBCB for Individuals if",items:[{title:"Intro",defaults:{width:300},items:Forms.Intro1()},{title:"Details of applicant(s) : First applicant",defaults:{width:300},items:Forms.Applicant.ContactDetails2()},{title:"Details of applicant(s) : Second applicant",defaults:{width:300},items:Forms.Applicant.ContactDetails3(note)},{title:"Details of applicant(s) : Third applicant",defaults:{width:300},items:Forms.Applicant.ContactDetails4()},{title:"Details of applicant(s) : Fourth applicant",defaults:{width:300},items:Forms.Applicant.ContactDetails5()},{title:"Other details",defaults:{width:300},items:Forms.Applicant.IndividualDetails1()},{title:"Tax, Use of information, Declaration",defaults:{width:300},items:Forms.TaxEtcIndividual()},{title:"Print and Sign",defaults:{width:300},items:Forms.Outro()}]})};Wizards.CBSA_for_Charities=function(){CBFormWizard({title:'<div class="mhead">The Charity Bank Savings Account</div><div class="shead">Application form for charities <br/> (incorporated or unincorporated)</div>',image:"http://cbforms.phola.com/logo.jpg",url:"default.aspx",form:"CBSA for Charities if",items:[{title:"Intro",defaults:{width:300},items:Forms.Intro2()},{title:"Details of Charity",defaults:{width:300},items:Forms.Applicant.CharityDetails1()},{title:"Details of officers/trustees : First signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails2()},{title:"Details of officers/trustees : Second signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails3(note)},{title:"Details of officers/trustees : Third signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails4()},{title:"Details of officers/trustees : Fourth signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails5()},{title:"Tax, Authorisation",items:Forms.UseDecl()},{title:"Use of information, Declaration",items:Forms.TaxEtc()},{title:"Print and Sign",defaults:{width:300},items:Forms.Outro()}]})};Wizards.CBSA_for_Corporates=function(){CBFormWizard({title:'<div class="mhead">The Charity Bank Savings Account</div><div class="shead">Application form for corporates</div>',image:"http://cbforms.phola.com/logo.jpg",url:"default.aspx",form:"CBSA for Corporates if",items:[{title:"Intro",defaults:{width:300},items:Forms.Intro2()},{title:"Details of company or organisation",defaults:{width:300},items:Forms.Applicant.CorporateDetails1()},{title:"Contact names and details : First signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails2()},{title:"Contact names and details : Second signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails3(note)},{title:"Contact names and details : Third signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails4()},{title:"Contact names and details : Fourth signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails5()},{title:"Tax, Authorisation",items:Forms.UseDecl()},{title:"Use of information, Declaration",items:Forms.TaxEtc()},{title:"Print and Sign",defaults:{width:300},items:Forms.Outro()}]})};Wizards.CBSA_for_Individuals=function(){CBFormWizard({title:'<div class="mhead">The Charity Bank Savings Account</div><div class="shead">Application form for individuals</div>',image:"http://cbforms.phola.com/logo.jpg",url:"default.aspx",form:"CBSA for Individuals if",items:[{title:"Intro",defaults:{width:300},items:Forms.Intro25()},{title:"Details of applicant(s) : First applicant",defaults:{width:300},items:Forms.Applicant.ContactDetails2()},{title:"Details of applicant(s) : Second applicant",defaults:{width:300},items:Forms.Applicant.ContactDetails3(note)},{title:"Details of applicant(s) : Third applicant",defaults:{width:300},items:Forms.Applicant.ContactDetails4()},{title:"Details of applicant(s) : Fourth applicant",defaults:{width:300},items:Forms.Applicant.ContactDetails5()},{title:"Other details",defaults:{width:300},items:Forms.Applicant.IndividualDetails1()},{title:"Use of information, Declaration",defaults:{width:300},items:Forms.TaxEtcIndividual()},{title:"Print and Sign",defaults:{width:300},items:Forms.Outro()}]})};Wizards.ISA_Application=function(){CBFormWizard({title:'<div class="mhead">The Charity ISA</div><div class="shead">Personal Account application form</div>',image:"http://cbforms.phola.com/logo.jpg",url:"default.aspx",form:"ISA Application",items:[{title:"Charity ISA",defaults:{width:300},items:Forms.Intro3()},{title:"Personal details",defaults:{width:300},items:Forms.Applicant.ISADetails1()},{title:"ISA Transfer In Request",defaults:{width:300},items:Forms.Applicant.ISADetails2()},{title:"Print and Sign",defaults:{width:300},items:Forms.Outro()}]})};Wizards.KCB_for_Charities=function(){CBFormWizard({title:'<div class="mhead">Kent Community Bond</div><div class="shead">Application form for charities <br/> (incorporated or unincorporated)</div>',image:"http://cbforms.phola.com/logo.jpg",url:"default.aspx",form:"KCB for Charities if",items:[{title:"Intro",defaults:{width:300},items:Forms.Intro1()},{title:"Details of Charity",defaults:{width:300},items:Forms.Applicant.CharityDetails1()},{title:"Details of officers/trustees : First signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails2()},{title:"Details of officers/trustees : Second signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails3(note)},{title:"Details of officers/trustees : Third signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails4()},{title:"Details of officers/trustees : Fourth signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails5()},{title:"Tax, Authorisation",items:Forms.UseDecl()},{title:"Use of information, Declaration",items:Forms.TaxEtc()},{title:"Print and Sign",defaults:{width:300},items:Forms.Outro()}]})};Wizards.KCB_for_Corporates=function(){CBFormWizard({title:'<div class="mhead">Kent Community Bond</div><div class="shead">Application form for corporates</div>',image:"http://cbforms.phola.com/logo.jpg",url:"default.aspx",form:"KCB for Corporates if",items:[{title:"Intro",defaults:{width:300},items:Forms.Intro1()},{title:"Details of company or organisation",defaults:{width:300},items:Forms.Applicant.CorporateDetails1()},{title:"Contact names and details : First signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails2()},{title:"Contact names and details : Second signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails3(note)},{title:"Contact names and details : Third signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails4()},{title:"Contact names and details : Fourth signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails5()},{title:"Tax, Authorisation",items:Forms.UseDecl()},{title:"Use of information, Declaration",items:Forms.TaxEtc()},{title:"Print and Sign",defaults:{width:300},items:Forms.Outro()}]})};Wizards.KCB_for_Individuals=function(){CBFormWizard({title:'<div class="mhead">Kent Community Bond</div><div class="shead">Application form for individuals</div>',image:"http://cbforms.phola.com/logo.jpg",url:"default.aspx",form:"KCB for Individuals if",items:[{title:"Intro",defaults:{width:300},items:Forms.Intro1()},{title:"Details of applicant(s) : First applicant",defaults:{width:300},items:Forms.Applicant.ContactDetails2()},{title:"Details of applicant(s) : Second applicant",defaults:{width:300},items:Forms.Applicant.ContactDetails3(note)},{title:"Details of applicant(s) : Third applicant",defaults:{width:300},items:Forms.Applicant.ContactDetails4()},{title:"Details of applicant(s) : Fourth applicant",defaults:{width:300},items:Forms.Applicant.ContactDetails5()},{title:"Other details",defaults:{width:300},items:Forms.Applicant.IndividualDetails1()},{title:"Tax, Use of information, Declaration",defaults:{width:300},items:Forms.TaxEtcIndividual()},{title:"Print and Sign",defaults:{width:300},items:Forms.Outro()}]})};Wizards.LSSIB_for_Charities=function(){CBFormWizard({title:'<div class="mhead">Liverpool Sefton Social Investment Bond</div><div class="shead">Application form for charities <br/> (incorporated or unincorporated)</div>',image:"http://cbforms.phola.com/logo.jpg",url:"default.aspx",form:"LSSIB for Charities if",items:[{title:"Intro",defaults:{width:300},items:Forms.Intro1()},{title:"Details of Charity",defaults:{width:300},items:Forms.Applicant.CharityDetails1()},{title:"Details of officers/trustees : First signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails2()},{title:"Details of officers/trustees : Second signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails3(note)},{title:"Details of officers/trustees : Third signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails4()},{title:"Details of officers/trustees : Fourth signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails5()},{title:"Tax, Authorisation",items:Forms.UseDecl()},{title:"Use of information, Declaration",items:Forms.TaxEtc()},{title:"Print and Sign",defaults:{width:300},items:Forms.Outro()}]})};Wizards.LSSIB_for_Corporates=function(){CBFormWizard({title:'<div class="mhead">Liverpool Sefton Social Investment Bond</div><div class="shead">Application form for corporates</div>',image:"http://cbforms.phola.com/logo.jpg",url:"default.aspx",form:"LSSIB for Corporates if",items:[{title:"Intro",defaults:{width:300},items:Forms.Intro1()},{title:"Details of company or organisation",defaults:{width:300},items:Forms.Applicant.CorporateDetails1()},{title:"Contact names and details : First signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails2()},{title:"Contact names and details : Second signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails3(note)},{title:"Contact names and details : Third signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails4()},{title:"Contact names and details : Fourth signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails5()},{title:"Tax, Authorisation",items:Forms.UseDecl()},{title:"Use of information, Declaration",items:Forms.TaxEtc()},{title:"Print and Sign",defaults:{width:300},items:Forms.Outro()}]})};Wizards.LSSIB_for_Individuals=function(){CBFormWizard({title:'<div class="mhead">Liverpool Sefton Social Investment Bond</div><div class="shead">Application form for individuals</div>',image:"http://cbforms.phola.com/logo.jpg",url:"default.aspx",form:"LSSIB for Individuals if",items:[{title:"Intro",defaults:{width:300},items:Forms.Intro1()},{title:"Details of applicant(s) : First applicant",defaults:{width:300},items:Forms.Applicant.ContactDetails2()},{title:"Details of applicant(s) : Second applicant",defaults:{width:300},items:Forms.Applicant.ContactDetails3(note)},{title:"Details of applicant(s) : Third applicant",defaults:{width:300},items:Forms.Applicant.ContactDetails4()},{title:"Details of applicant(s) : Fourth applicant",defaults:{width:300},items:Forms.Applicant.ContactDetails5()},{title:"Other details",defaults:{width:300},items:Forms.Applicant.IndividualDetails1()},{title:"Tax, Use of information, Declaration",defaults:{width:300},items:Forms.TaxEtcIndividual()},{title:"Print and Sign",defaults:{width:300},items:Forms.Outro()}]})};Wizards.Small_Steps_Application=function(){CBFormWizard({title:'<div class="mhead">Small Steps Account</div><div class="shead">Application form for under 16`s only</div>',image:"http://cbforms.phola.com/logo.jpg",url:"default.aspx",form:"Small Steps application",items:[{title:"Intro",defaults:{width:300},items:Forms.Intro4()},{title:"Details of adult(s) making application",defaults:{width:300},items:Forms.Applicant.SmallStepsDetails1()},{title:"Details of adult(s) making application 2",defaults:{width:300},items:Forms.Applicant.SmallStepsDetails2()},{title:"Childs details",defaults:{width:300},items:Forms.Applicant.SmallStepsDetails3()},{title:"Print and Sign",defaults:{width:300},items:Forms.Outro()}]})};Wizards.WCB_for_Charities=function(){CBFormWizard({title:'<div class="mhead">The Welsh Community Bond</div><div class="shead">Application form for charities  <br/> (incorporated or unincorporated)</div>',image:"http://cbforms.phola.com/logo.jpg",url:"default.aspx",form:"WCB for Charities if",items:[{title:"Intro",defaults:{width:300},items:Forms.Intro1()},{title:"Details of Charity",defaults:{width:300},items:Forms.Applicant.CharityDetails1()},{title:"Details of officers/trustees : First signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails2()},{title:"Details of officers/trustees : Second signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails3(note)},{title:"Details of officers/trustees : Third signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails4()},{title:"Details of officers/trustees : Fourth signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails5()},{title:"Tax, Authorisation",items:Forms.UseDecl()},{title:"Use of information, Declaration",items:Forms.TaxEtc()},{title:"Print and Sign",defaults:{width:300},items:Forms.Outro()}]})};Wizards.WCB_for_Corporates=function(){CBFormWizard({title:'<div class="mhead">The Welsh Community Bond</div><div class="shead">Application form for corporates</div>',image:"http://cbforms.phola.com/logo.jpg",url:"default.aspx",form:"WCB for Corporates if",items:[{title:"Intro",defaults:{width:300},items:Forms.Intro1()},{title:"Details of company or organisation",defaults:{width:300},items:Forms.Applicant.CorporateDetails1()},{title:"Contact names and details : First signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails2()},{title:"Contact names and details : Second signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails3(note)},{title:"Contact names and details : Third signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails4()},{title:"Contact names and details : Fourth signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails5()},{title:"Tax, Authorisation",items:Forms.UseDecl()},{title:"Use of information, Declaration",items:Forms.TaxEtc()},{title:"Print and Sign",defaults:{width:300},items:Forms.Outro()}]})};Wizards.WCB_for_Individuals=function(){CBFormWizard({title:'<div class="mhead">The Welsh Community Bond</div><div class="shead">Application form for individuals</div>',image:"http://cbforms.phola.com/logo.jpg",url:"default.aspx",form:"WCB for Individuals if",items:[{title:"Intro",defaults:{width:300},items:Forms.Intro1()},{title:"Details of applicant(s) : First applicant",defaults:{width:300},items:Forms.Applicant.ContactDetails2()},{title:"Details of applicant(s) : Second applicant",defaults:{width:300},items:Forms.Applicant.ContactDetails3(note)},{title:"Details of applicant(s) : Third applicant",defaults:{width:300},items:Forms.Applicant.ContactDetails4()},{title:"Details of applicant(s) : Fourth applicant",defaults:{width:300},items:Forms.Applicant.ContactDetails5()},{title:"Other details",defaults:{width:300},items:Forms.Applicant.IndividualDetails1()},{title:"Tax, Use of information, Declaration",defaults:{width:300},items:Forms.TaxEtcIndividual()},{title:"Print and Sign",defaults:{width:300},items:Forms.Outro()}]})};Wizards.YDB_for_Charities=function(){CBFormWizard({title:'<div class="mhead">The Yorkshire Deposit Bond</div><div class="shead">Application form for charities <br/> (incorporated or unincorporated)</div>',image:"http://cbforms.phola.com/logo.jpg",url:"default.aspx",form:"YDB for Charities if",items:[{title:"Intro",defaults:{width:300},items:Forms.Intro1()},{title:"Details of Charity",defaults:{width:300},items:Forms.Applicant.CharityDetails1()},{title:"Details of officers/trustees : First signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails2()},{title:"Details of officers/trustees : Second signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails3(note)},{title:"Details of officers/trustees : Third signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails4()},{title:"Details of officers/trustees : Fourth signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails5()},{title:"Tax, Authorisation",items:Forms.UseDecl()},{title:"Use of information, Declaration",items:Forms.TaxEtc()},{title:"Print and Sign",defaults:{width:300},items:Forms.Outro()}]})};Wizards.YDB_for_Corporates=function(){CBFormWizard({title:'<div class="mhead">The Yorkshire Deposit Bond</div><div class="shead">Application form for corporates</div>',image:"http://cbforms.phola.com/logo.jpg",url:"default.aspx",form:"YDB for Corporates if",items:[{title:"Intro",defaults:{width:300},items:Forms.Intro1()},{title:"Details of company or organisation",defaults:{width:300},items:Forms.Applicant.CorporateDetails1()},{title:"Contact names and details : First signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails2()},{title:"Contact names and details : Second signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails3(note)},{title:"Contact names and details : Third signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails4()},{title:"Contact names and details : Fourth signatory",defaults:{width:300},items:Forms.Applicant.ContactDetails5()},{title:"Tax, Authorisation",items:Forms.UseDecl()},{title:"Use of information, Declaration",items:Forms.TaxEtc()},{title:"Print and Sign",defaults:{width:300},items:Forms.Outro()}]})};Wizards.YCB_for_Individuals=function(){CBFormWizard({title:'<div class="head"><div class="mhead">The Yorkshire Deposit Bond</div><div class="shead">Application form for individuals</div></div>',image:"http://cbforms.phola.com/logo.jpg",url:"default.aspx",form:"YDB for Individuals if",items:[{title:"Intro",defaults:{width:300},items:Forms.Intro1()},{title:"Details of applicant(s) : First applicant",defaults:{width:300},items:Forms.Applicant.ContactDetails2()},{title:"Details of applicant(s) : Second applicant",defaults:{width:300},items:Forms.Applicant.ContactDetails3(note)},{title:"Details of applicant(s) : Third applicant",defaults:{width:300},items:Forms.Applicant.ContactDetails4()},{title:"Details of applicant(s) : Fourth applicant",defaults:{width:300},items:Forms.Applicant.ContactDetails5()},{title:"Other details",defaults:{width:300},items:Forms.Applicant.IndividualDetails1()},{title:"Use of information, Declaration",defaults:{width:300},items:Forms.TaxEtcIndividual()},{title:"Print and Sign",defaults:{width:300},items:Forms.Outro()}]})};