		window.addEvent('domready', function(){
			$('myForm').addEvent('submit', function(e) {
				/**
				 * Prevent the submit event
				 */
				new Event(e).stop();
			
				/**
				 * This empties the log and shows the spinning indicator
				 */
				var log = $('log_res').empty().addClass('ajax-loading');
			
				/**
				 * send takes care of encoding and returns the Ajax instance.
				 * onComplete removes the spinner from the log.
				 */
				this.send({
					update: log,
					onComplete: function() {
						log.removeClass('ajax-loading');
					}
				});
			});
		}); 

function e_mail(login,host,tytul){
	mailto = (login + '@' + host);
	document.write(tytul + '<a href="mailto:' + mailto + '">' + mailto + '</a>')
}

function sendMail(login, host, temat){
   location.href = "mailto:" + login + "@" + host + "?subject=" + temat;
}

