﻿function mailme(name, text, subject, body) {
    //(example below assumes your domain is domain_name.co.uk) 
    //edit the following 2 lines for the domain of your site 
    d = "AbloomDesign";
    e = ".com";

    str = '<a href="mailto:' + name + '@' + d + e
    if (subject != "") {
        str += '?subject=' + subject
        if (body != "") str += "&body=" + body
    }
    str += '">'
    if (text == "") {
        str += name + '@' + d + e
    } else {
        str += text
    }
    str += '</a>'
    document.write(str);
}; 

