
function t2ma(name,domain,ext){if(ext==null) ext=".com";return name+"@"+domain+ext;}

function ma(name,domain,ext,inside){var addr=t2ma(name,domain,ext);if(inside==null)inside=addr;document.write("<a hre"+"f=\"ma"+"ilt"+"o:"+addr+"\">"+inside+"</a>");}
function mal(name){ma(name,"legalmatch",null,null);}

function fma(fname,enc,method,name,domain,ext,extra){document.write("<form name=\""+fname+"\" method=\"" + method + "\" enctype=\""+enc+"\" action=\""+"ma"+"ilt"+"o:"+t2ma(name,domain,ext)+extra+"\">");}
function fmal(fname,enc,method,name,extra){fma(fname,enc,method,name,"legalmatch",null,extra);}


// show/hide multibrowser version

function showhide(layer_ref,state) { 

if (document.all) { //IS IE 4 or 5 (or 6 beta) 
eval( "document.all." + layer_ref + ".style.display = '" +state + "'"); 
} 
if (document.layers) { //IS netscape 4 or below 
document.layers[layer_ref].display = state; 
} 
if (document.getElementById &&!document.all) { 
obj = document.getElementById(layer_ref); 
if(obj!=null){
obj.style.display = state; 
}
} 
} 

function toggleShowHide(obj)
{
	var oldstate ="block";
	if (document.all) { //IS IE 4 or 5 (or 6 beta) 
		eval( "oldstate = document.all." + obj + ".style.display;"); 
	} else {
		if (document.layers) { //IS netscape 4 or below 
			oldstate = document.layers[obj].display; 
		} else {
			if (document.getElementById &&!document.all) { 
				var _obj = document.getElementById(obj); 
				if(_obj!=null){
					oldstate = _obj.style.display; 
				}
			}
		}
	}
	if(oldstate != "none"){
		showhide(obj,"none"); // hide
	} else {
		showhide(obj,"block"); // show
	}
}

