function init() {
  if (!document.getElementById && !document.createElement && !document.createTextNode) oldBrowser();
  else newBrowser();
}

function oldBrowser() {
  var uid = "kaddyusa";
  var gid = "kaddyusa.com";
  document.write('<a href="mailto:' + uid + '@' + gid + '">');
  document.write('e-mail ' + uid + '@' + gid + '</a>');
}

function newBrowser() {
	var theSpan = null;
	if (theSpan = document.getElementById('emailScript1')) {
		var email = 'kaddyusa';
		var host  = 'kaddyusa.com';
		var text1 = document.createTextNode(email);
		var text2 = document.createTextNode('@'+host);
		var anchor = document.createElement('a');
		anchor.setAttribute('href','mailto:'+email+'@'+host);
		anchor.appendChild(text1);
		anchor.appendChild(text2);
		theSpan.appendChild(anchor);
	}
	if (theSpan = document.getElementById('emailScript2')) {
		var email = 'kaddyusa';
		var host  = 'kaddyusa.com';
		var text1 = document.createTextNode(email);
		var text2 = document.createTextNode('@'+host);
		var anchor = document.createElement('a');
		anchor.setAttribute('href','mailto:'+email+'@'+host);
		anchor.appendChild(text1);
		anchor.appendChild(text2);
		theSpan.appendChild(anchor);
	}
	if (theSpan = document.getElementById('emailScript3')) {
		var email = 'mailto:kaddyusa';
		var host  = '@kaddyusa.com';
		var text1 = document.createTextNode('via e-mail');
		var anchor = document.createElement('a');
		anchor.setAttribute('href',email+host);
		anchor.appendChild(text1);
		theSpan.appendChild(anchor);
	}
}

window.onload = init;
