
/* function for de spam mail addresses  */
function m_to( user, site, key ) {
  document.write( '<a class="email" href=\"mailto:' + user + '@' + site + '\">' );
  if (key)	document.write( key + '</a>' );
  else		document.write( user + '@' + site + '</a>' );
}

function m_com( user, site, key ) { m_to( user, site+'.com', key ) }
function m_net( user, site, key ) { m_to( user, site+'.net', key ) }
function m_org( user, site, key ) { m_to( user, site+'.org', key ) }
function m_edu( user, site, key ) { m_to( user, site+'.edu', key ) }
function m_aol( user, key )       { m_to( user, 'aol.com', key ) }
function m_bbyra( user, key )     { m_to( user, 'bbyra.org', key ) }
function m_comcast( user, key )   { m_to( user, 'comcast.net', key ) }
function m_verizon( user, key )   { m_to( user, 'verizon.net', key ) }

function tel_no( area, exch, num, key ) {
  document.write( '<a class="tel" href=\"tel:+1-' + area + exch + num + '\">' );
  if (key) 	document.write( key + '</a>' );
  else		document.write( area + '-' + exch + '-' + num + '</a>' );
}

function v_address( street, town, zip, state, box ) {
	document.write( '<span class="street-address">' + street + '</span>, ' );
	if (box)	document.write( '<br>PO Box <span class="post-office-box">' + box + '</span>, ' );
	document.write( '<span class="locality">' + town + '</span>, ' );
	if (state)	document.write( '<span class="region">' + state + '</span> ' );
	else		document.write( '<span class="region">NJ</span> ' ); 
	document.write( '<span class="postal-code">' + zip + '</span>' );
}
function v_addrBlock( street, town, zip, state, box ) {
	document.write( '<div class="adr"><span class="street-address">' + street + '</span><br />' );
	if (box)	document.write( 'PO Box <span class="post-office-box">' + box + '</span><br />' );
	document.write( '<span class="locality">' + town + '</span>, ' );
	if (state)	document.write( '<span class="region">' + state + '</span> ' );
	else		document.write( '<span class="region">NJ</span> ' ); 
	document.write( '<span class="postal-code">' + zip + '</span></div>' );
}

