function mailTo(email, textNode, style) {
    if(email==null || email=='undefined')   return false;
    if (!document.getElementById("mailTo")) return false;
    
    var anch   = document.createElement("a");    
    var mailto = "mailto:" + email;
    
    if(style!=null && style!='undefined'){
        if(ie4) {
            anch.style.setAttribute("cssText", style);
        } else
            anch.setAttribute("style", style);
    }
    
    anch.setAttribute("href",mailto);
    
    var span   = document.getElementById("mailTo");    
    var txt = document.createTextNode(textNode);
    anch.appendChild(txt);    
    span.appendChild(anch);
    
    return true;
}
