function share_url(share_url,url) {

	document.getElementById('art_body').className='no_overflow_x';

	var share_email = new Ext.form.TextField({
			name: 'share_email',
			blankText: 'povinný údaj',
			fieldLabel: 'E-mail - více adres oddělujte středníkem'
	});	

	var share_subject = new Ext.form.TextField({
			name: 'share_subject',
			width: 120,
			fieldLabel: 'Předmět'		
	});	

	var share_text = new Ext.form.TextArea({
			name: 'share_text',
			width: 120,
			height: 80,
			fieldLabel: 'Vzkaz'		
	});		
	
	var share_buttons = [{
			text:'odeslat',
			xtype:'button',
			scale:'medium',
			iconCls:'icon-ok-16',			
			scope:this,
			handler:function(){
				share_form.getForm().submit({
					url:url+'/contents/share_url.php?share_url=' + share_url,
					waitMsg:'sending',							
					failure: 
						function(frm, act) {
							share_win.close();
							document.getElementById('art_body').className='no_overflow_x';
							share_err_win.show();
							setTimeout('share_err_win.close()',3000);
						},
					success: 
						function(frm, act) {
							_gaq.push(['_trackEvent', 'Share Url', 'Share Url', ''+share_url+'']);
							share_win.close();
							document.getElementById('art_body').className='no_overflow_x';
							share_ok_win.show();
							setTimeout('share_ok_win.close()',3000);
						}
				});
			}
		}];
		
	var share_form = new Ext.form.FormPanel({
		frame:true,
		labelAlign: 'top',
		border: false,
		anchor:'100% 100%',
		autoScroll:true,
		layout:"form",
		defaults: {	
			anchor: "-3",
			msgTarget : 'under'
		},
		items:[share_email,share_subject,share_text],
		buttons: share_buttons,
		frame:false,
		border:false,
		bodyStyle: "padding:5px; background-color:transparent; text-align:left"
	});					

	share_win = new Ext.Window({
		title: 'Pošlete link na tuto stránku...',
		resizable: false,
		layout:"fit",
		width: 500,
		height: 300,			
		items: share_form,
		collapsible:false,
		maximizable:false,
		layout:'anchor',
		plain: true,
		border: false,
		modal:true,
		style: "text-align:left"
	});
	
	share_ok_win = new Ext.Window({
		title: 'Zpráva byla odeslána',
		style: "text-align:left",
		width: 250,
		height: 100,
		html: '<div style="padding:5px">... odesláno</div>',
		modal:true
	});
	
	share_err_win = new Ext.Window({
		title: 'Error',
		style: "text-align:left",
		width: 250,
		height: 100,
		html: '<div style="padding:5px">Zprávu se nepodařilo odeslat</div>',
		modal:true
	});
	
	share_win.show();
	
	share_err_win.on('beforeclose',function() {
				document.getElementById('art_body').className='yes_overflow';
		}
	)

	share_ok_win.on('beforeclose',function() {
				document.getElementById('art_body').className='yes_overflow';
		}
	)
	
	share_win.on('beforeclose',function() {
				document.getElementById('art_body').className='yes_overflow';
		}
	)
}
