function Mto()
{
    this.who = arguments[0];
    this.mto = '';
    for (var i = 1; i < arguments.length; i++)  {
        var sep;
        switch (i)
        {
        case 1:
            sep = '';
            break;
        case 2:
            sep = '@';
            break;
        default:
            sep = '.';
            break;
        } 
        this.mto += sep + arguments[i];
    }
}
Mto.prototype.html = function()  {
    var who = this.who;
    if (!who)  {
        who = this.mto;
    }   
    var s = '';
    s += '<';
    s += 'a ';
    s += 'hr';
    s += 'ef';
    s += '="mai';
    s += 'lto:';
    s += this.mto + '">';
    s += who;
    s += '</';
    s += 'a';
    s += '>';
    return s;
}
Mto.prototype.write = function(who) {
    var html = this.html();
    alert(html);
    document.write(this.html());
}

