/**
* Created on : 27.09.2012
* Author : Klaus Hartl
*/
/* bitte beachten: http://stackoverflow.com/questions/987199/mailto-special-characters */
function sendMail(subject, body, url) {
if (typeof subject === "undefined")
subject = $('#dachzeile').html() + ': ' + $('#headline').html();
if (typeof body === "undefined")
body = $('#vorspann').html();
if (typeof url === "undefined")
url = '';
else
url = '\n\n' + url;
var link = "mailto:" //+ "me@example.com"
+ "?" //+ "cc=myCCaddress@example.com" //+ "&"
+ "subject=" + escape(subject) + "&"
+ "body=" + escape(body + url);
window.location.href = link;
}
$(document).ready(function() {
// event binding fuer listing: code senden
$('.listing-btn-send').on('click', function() {
var encoded_listing = $('script[type$=listing]', $(this).parent()).text();
var encoded_listing_wo_br = encoded_listing.replace(/
/, '\n');
var decoded_listing = $('