//v1.0
// HMC phone and email disguiser
// Copyright Hagie Manufacturing Company.  All rights reserved.

function GetEmail(domain, email, overcolor, outcolor)
{
	var a = email + "@" + domain;
	var b = "color:" + outcolor + "; text-decoration:none; font-weight:bold;";

    document.write("<a style='" + b + "' onmouseover='this.style.color=\"" + overcolor + "\"' onmouseout='this.style.color=\"" + outcolor + "\"' href='mailto:" + a + "'>" + a + "</a>");
}

function GetEmail2(domain, email) {
    var a = email + "@" + domain;

    document.write("<a href='mailto:" + a + "'>" + a + "</a>");
}

function GetPhone(last, mid, first, sep)
{
	document.write(first + sep + mid + sep + last);
}

function TextEmail(domain, email, overcolor, outcolor)
{
	var a = email + "@" + domain;
	var b = "color:" + outcolor + "; text-decoration:none; font-weight:bold;";

    return "<a style='" + b + "' onmouseover='this.style.color=\"" + overcolor + "\"' onmouseout='this.style.color=\"" + outcolor + "\"' href='mailto:" + a + "'>" + a + "</a>";
}

function TextPhone(last, mid, first, sep)
{
	return first + sep + mid + sep + last;
}

function WriteNameEmailPhone(name, domain, email, overcolor, outcolor, last, mid, first, sep)
{
    document.write(name + "<br />" + TextEmail(domain, email, overcolor, outcolor) + "<br />" + TextPhone(last, mid, first, sep));
}

function WriteNameEmail(name, domain, email, overcolor, outcolor, last, mid, first, sep)
{
    document.write(name + "<br />" + TextEmail(domain, email, overcolor, outcolor) + "<br />" + TextPhone(last, mid, first, sep));
}


function WriteEmail(domain, email, overcolor, outcolor)
{
	var a = email + "@" + domain;
	var b = "color:" + outcolor + "; text-decoration:none; font-weight:bold;";

    document.write("<a style='" + b + "' onmouseover='this.style.color=\"" + overcolor + "\"' onmouseout='this.style.color=\"" + outcolor + "\"' href='mailto:" + a + "'>" + a + "</a>");
}

function WriteEmail2(domain, email) {
    var a = email + "@" + domain;

    document.write("<a href='mailto:" + a + "'>" + a + "</a>");
}

function WriteNamePhone(name, last, mid, first, sep)
{
    document.write(name + "<br />" + TextPhone(last, mid, first, sep));
}

function WritePhone(last, mid, first, sep)
{
	document.write(first + sep + mid + sep + last);
}



