// JavaScript Document
function printMailto()
{
	a = arguments; //shorthand
	m = 'mailto'; //prevents apache from breaking this script
	output = '<a'+a[0]+'href="'+m+':'+a[1]+'@'+a[2]+'.'+a[3]+'"'+a[4]+'>'+a[5];
	
	if(a.length == 9) { //if email embedded in link
		output += '@'+a[6]+'.'+a[7]+'</a>';
	} else { //everything else
		output += '</a>';
	}
	
	document.write(output);
}
