// EMAIL SPAM TOOL

function e(e1,e2,e3,e4) {
	var ex,a,a2;
	a = e1+"@"+e2;
	a2 = ((e4 != null) && (e4 != '')) ? e4 : a;
	if ((e3 != null) &&(e3 != '')) ex="?"+e3; else ex="";
	document.write('<a href="mailto:'+a+ex+'">'+a2+'</a>')
}

// TAB STRIP

var activeTab = 1;

function openTab(tabId) {

// reset old tab and content

document.getElementById("tabLink"+activeTab).className = "tabLink";
document.getElementById("tabContent"+activeTab).className = "tabContent";

// set new tab and content

document.getElementById("tabLink"+tabId).className = "tabLinkActive";
document.getElementById("tabContent"+tabId).className = "tabContentActive";
activeTab = tabId;
}

// DHTML TOGGLE

function dropText(target_name, path)
{
    var target
    target = document.getElementById(target_name)
    if (target == null)
        return;
    if (target.style.visibility == 'hidden')
    {
        target.style.visibility = 'visible';
        target.style.display = 'block';
        if (path != null) document[target_name + 'Arrow'].src = path + 'dropArrowDown.gif';
    }
    else
    {
        target.style.visibility = 'hidden';
        target.style.display = 'none';
        if (path != null) document[target_name + 'Arrow'].src = path + 'dropArrowRight.gif';
    }
}

function clickclear(thisfield, defaulttext) {if (thisfield.value == defaulttext) {thisfield.value = "";	}}
function clickrecall(thisfield, defaulttext) {if (thisfield.value == "") {thisfield.value = defaulttext;}}


