var articleURL = 'http://www.wort.lu/wort/web/dossiers/index.php'; var articleTitle = 'Steuersünder: Verfolgen bayerische Fahnder Spur nach Luxemburg?'; var teaserTitle = ''; var teaserText = 'Nach der Zusage zum Kauf einer umstrittenen CD mit Informationen über deutsche Steuersünder hat im Nachbarland Deutschland offenbar die Jagd auf Fiskusflüchtlinge begonnen. Laut dem Nachrichtenmagazin “Spiegel” führt eine Spur der bayerischen Steuerfahndung auch zu einem Geldinstitut nach Luxemburg.'; function postToMyspace(){ var targetUrl = 'http://www.myspace.com/Modules/PostTo/Pages/?u=' + encodeURIComponent(articleURL) + '&t=' + encodeURIComponent(teaserTitle) + '&c=' + encodeURIComponent(teaserText); window.open(targetUrl); } function postToFacebook() { var targetUrl = 'http://www.facebook.com/sharer.php?u=' + encodeURIComponent(articleURL) + '&t=' + encodeURIComponent(teaserTitle); window.open(targetUrl); } function postToDigg() { var targetUrl = 'http://digg.com/submit?url=' + encodeURIComponent(articleURL) + '&title=' + encodeURIComponent(teaserTitle) + '&bodytext=' + encodeURIComponent(teaserText); window.open(targetUrl); } function postToDelicious() { var targetUrl = 'http://del.icio.us/post?url=' + encodeURIComponent(articleURL) + '&title=' + encodeURIComponent(teaserTitle); window.open(targetUrl); } function postToGoogle() { var targetUrl = 'http://www.google.com/bookmarks/mark?op=add&hl=de&bkmk=' + encodeURIComponent(articleURL) + '&title=' + encodeURIComponent(teaserTitle); window.open(targetUrl); } function postToLinkedIn() { var targetUrl = 'http://www.linkedin.com/shareArticle?mini=true&url=' + encodeURIComponent(articleURL) + '&title=' + encodeURIComponent(teaserTitle) + '&summary=' + encodeURIComponent(teaserText) +'&source=wort.lu'; window.open(targetUrl); } function postToYaHoo() { var targetUrl = 'http://bookmarks.yahoo.com/toolbar/savebm?u='+encodeURIComponent(articleURL) + '&t=' + encodeURIComponent(teaserTitle); window.open(targetUrl); } function postToWindowsLive() { var targetUrl = 'http://favorites.live.com/quickadd.aspx?url='+encodeURIComponent(articleURL) + '&title=' + encodeURIComponent(teaserTitle) + '&text=' + encodeURIComponent(teaserText); window.open(targetUrl); } function postToTwitter() { var targetUrl = 'http://twitter.com/home?status='+ encodeURIComponent(articleTitle ) + ' @wort_lu'; window.open(targetUrl); } function updateInfo(text) { $('artikel_link_info').update(text); } function updateInfoStd() { $('artikel_link_info').update('Artikel Bookmarken'); } function displayEmailBox() { $('artikel_link_email').show(); $('artikel_link_email_error').hide(); $('artikel_link_email_success').hide(); $('artikel_link_bookmark').hide(); } function displayBookmarkBox() { $('artikel_link_email').hide(); $('artikel_link_email_error').hide(); $('artikel_link_email_success').hide(); $('artikel_link_bookmark').show(); } function checkArticleMail() { var error = ''; var boolErr = false; var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; var emailTo = $('email_to').getValue(); var emailFrom = $('email_from').getValue(); if ( emailTo.length == 0 ) { error += '
  • Sie müssen eine Empfänger E-Mail Adresse eingeben
  • '; boolErr = true; } else if ( emailTo.length > 0 && !filter.test(emailTo) ) { error += '
  • Die eingegebene Empfänger E-Mail Adresse ist fehlerhaft
  • '; boolErr = true; } if ( emailFrom.length == 0 ) { error += '
  • Sie müssen Ihre E-Mail Adresse eingeben
  • '; boolErr = true; } else if ( emailFrom.length > 0 && !filter.test(emailFrom) ) { error += '
  • Ihre eingegebene E-Mail Adresse ist fehlerhaft
  • '; boolErr = true; } /* if ( !boolErr && emailFrom == emailTo ) { error += '
  • Die eingegebene Empfänger E-Mail Adresse ist fehlerhaft
  • '; boolErr = true; } */ if ( boolErr ) { $('artikel_link_email_error').update('Es sind folgende Eingabefehler aufgetreten:'); $('artikel_link_email_error').show(); } else { sendArticleMail(); } } function sendArticleMail() { doArtikelAjaxRequest( { f: 'send:article', eF: $('email_from').getValue(), eT: $('email_to').getValue(), eC: $('email_comment').getValue() }, function(transport) { responseLen = transport.responseText.length; if (responseLen > 0) { var response = transport.responseText.split("|"); if ( response[0] == 'OK' ) { $('artikel_link_email').hide(); $('artikel_link_email_success').show(); } else { if ( response[1] == '0' ) { $('artikel_link_email_error').update('Es sind folgende Fehler aufgetreten:
    '); $('artikel_link_email_error').show(); } else { $('artikel_link_email_error').update('Der Artikel konnte nicht verschickt werden! (' + response[1] + ')'); $('artikel_link_email_error').show(); } } } }); return true; } function doArtikelAjaxRequest(ajaxParameters, ajaxOnSuccess) { var AjaxUrl = '/lib/ajax/artikelmailer.php'; return new Ajax.Request(AjaxUrl, { method: "post", parameters: ajaxParameters, onSuccess: ajaxOnSuccess, onFailure: function(transport) { var response = transport.responseText || "no response text"; // alert("Failure! \n\n" + response); } }); }