
		Ext.onReady(function(){
			
		new Ext.form.FormPanel(
		{
			standardSubmit: true
			,monitorValid: true
			,renderTo: 'AddCommentplaceholder'
			,fx: {
				renderid: ''
			}
			,domUrl: ''
			,labelWidth: 150,buttonAlign: 'right',labelAlign:'right'
			,defaults: {
				labelSeparator: ':'
				,labelStyle: 'font-weight:bold'
				,labelAlign: 'right'
				
			}
			,items: [ 
				{
					xtype: 'hidden'
					,name: 'fxprocessid'
					,value: 'AddComment'
				},
				{xtype:'hidden',value: '26',name: 'ArticleID',fieldLabel: 'ArticleID'
   	}
	,{xtype:'textfield',allowBlank:false,width:200,name: 'DisplayName',fieldLabel: '*Your Name'
   	}
	,
		{border:false, html:'<p>Your email address is kept private and will not be shown publicly.</p>'}
	,{xtype:'textfield',width:200,name: 'EmailAddress',fieldLabel: '*Email'
	,plugins: [
		new Ext.ux.plugins.Null()
		
		,new Ext.ux.plugins.Validation({
			validations: [
				
					{type: 'email'}
				
			]
		})
	
	]
	
   	}
	,{xtype:'textarea',allowBlank:false,width:200,height:100,name: 'Body',fieldLabel: '*Comment'
   	}
	,
		{border:false, html:'<p>Enter the characters (without spaces) shown in the image.</p>'}
	,{xtype:'captchafield',url:'http://www.moneydashboard.com/framework/captcha/Captcha.gif',labelSeparator:'',allowBlank:false,width:200,name: 'Captcha',fieldLabel: ''
   	}
	
			]
			,buttons: [
				
				{
					text: 'Submit'
					,formBind: true
					,handler: function()
					{
						var x = this.findParentBy(function(c){return c.isXType('form')}) 
						if (x.form.isValid()) 
						{ 
							x.form.getEl().dom.action=x.domUrl; 
							x.form.submit() 
						} else{
							alert('Please correct the marked errors and try again');
						}
					}
				}
			] //END BUTTONS
		} // END FORM CONFIG 
	)
	
		var tempRandom = Math.floor(Math.random() * 6) + 1;
		document.getElementById('marketing1').style.display = 'none';
		document.getElementById('marketing2').style.display = 'none';
		document.getElementById('marketing3').style.display = 'none';
		document.getElementById('marketing4').style.display = 'none';
		document.getElementById('marketing5').style.display = 'none';
		document.getElementById('marketing6').style.display = 'none';
		document.getElementById('marketing' + tempRandom).style.display = '';
		sifrRedraw();
	
		}); // end onReady()
		
		function sifrRedraw() {
			sIFR.replace(helvetica, {
				selector: '.blockBenefit h1',
				wmode: 'transparent',
				tuneHeight: '-3',
				preventWrap: 'false',
				css: '.sIFR-root { font-size: 36px; color: #ed320f; }'
			});
			sIFR.replace(helvetica, {
				selector: '.blockBenefit h2',
				wmode: 'transparent',
				tuneHeight: '-3',
				preventWrap: 'false',
				css: [
					'.sIFR-root { font-size:1.6em; color: #ffffff; margin: 10px 0 20px 0; }'
					,'a { color: #ffffff; text-decoration: none; cursor:default; }'
					,'a:link { color: #ffffff; cursor:default; }'
					,'a:visited { color: #ffffff; cursor:default; }'
					,'a:hover { color: #ffffff; cursor:default; }'
					,'a:active { color: #ffffff; cursor:default; }'
				]
			});
			sIFR.replace(helvetica, {
				selector: '.blockSlogan p',
				wmode: 'transparent',
				tuneHeight: '-3',
				preventWrap: 'false',
				css: '.sIFR-root { font-size: 22px; color: #c7c7c7; margin: 10px 0 10px 0; }'
			});
		}
	