function ajaxmail(mail, domain, title, text, do_after_ok, code) {  
   
	ajax_url = 'ajaxmail.php';
	string_param = 'mode=send&mail=' + mail + '&domain=' + domain + '&title=' + title + '&text=' + text;
	//alert(ajax_url + '?mode=send&mail=' + mail + '&domain=' + domain + '&title=' + title + '&text=' + text);
	
	//cosa fare dopo la chiamata
	if (do_after_ok=='') {
		do_after_ok = "alert('Message send correctly')";
	} else {
		do_after_ok = do_after_ok + "('" + code + "')";
	}
	
	//lancio il post	
	$j.ajax({ type: 'GET', 
		url: 'ajaxmail.php', 
		data: string_param, 
		success: eval(do_after_ok)
	});
    
};