$.fn.setEmailBody = function(bodyText, siteName) {
    var siteProtocol = jQuery.url.attr("protocol");
    var siteHost = jQuery.url.attr("host");
    var sitePath = jQuery.url.attr("path");
    var sharePage = jQuery.url.param("source");
    if (sharePage == null || sharePage == "undefined")
        sharePage = "Home";
    var body = $(this).val() + bodyText
 + "[lt]a href=\"" + siteProtocol + ":/" + "/" + siteHost + sitePath + "?page=" + sharePage + "\">" + siteName + "[lt]/a>.";
    $("input[name='email_body']").attr("value", body);
}

