<!--

var temp = "", lh = "", rh = "";
var type = "", val = "";

function makeMail(type, val)
{
        temp = lh + "@" + rh;

        var content = "";

        if(type == "map")
        {
                content += "<area shape=\"rect\" alt=\"";
                content += temp;
                content += "\" coords=\"";
                content += val;
                content += "\" href=\"mailto:";
                content += temp;
                content += "\">";
        } else {
                content += "<a href=\"mailto:";
                content += temp;

                if (type == "class")
                {
                        content += "\" class=\"";
                        content += val;
                }
                content += "\">";
                if (type == "image")
                {
                        content += val;
                } else if (type == "text" && val != null)
                {
                        content += val;
                } else {
                        content += temp;
                }
                content += "</a>";
        }
        document.write(content);
        return;
}

//-->
