Ext.onReady(function(){
    var theWin;
    var button = Ext.get('show-btn');

    button.on('click', function(){
        // create the window on the first click and reuse on subsequent clicks
        if(!theWin){
            theWin = new Ext.Window({
                el:'hello-win',
				id: 'thisForm',
                layout:'fit',
                width:300,
                height:350,
                closeAction:'hide',
                plain: true,
                html: '<form action="#request.self#" method="post" id="myForm" name="myForm"><table width="300px" height="450" bgcolor="white"><tr valign="top"><td>Please use this form because you want <br />My Cool Backgrounds to review this image because it is violating the <a href="/main/disclaimer/">Terms of Service</a>.  For possible copyright violations, please see our <a href="/main/dmca/">DMCA Policy</a>.<br /><br /><input type="radio" name="reason" id="reason" value="25" /> Duplicate Wallpaper<br /><input type="radio" name="reason" id="reason" value="26" /> Offensive Image<br /><input type="radio" name="reason" id="reason" value="27" /> Adult Content or Nudity<br /><input type="radio" name="reason" id="reason" value="28" /> Poor Image Quality<br /><input type="radio" name="reason" id="reason" value="29" /> SPAM<br /></td></tr></table></form>',
                buttons: [{
                    text:'Submit',
                    disabled:false,
					handler: function(){
					
						var theReason = getSelectedRadioValue('reason');
						report(theReason)
						theWin.hide();
					}
                },{
                    text: 'Close',
                    handler: function(){
                        theWin.hide();
                    }
                }]
            });
        }
        theWin.show(this);
    });
});






