<!--
// Mithat Konar's Javascript email protector
// Writes a link of the form: <a href=mailto:address@dom.com>address@dom.com</a>  
// Based on code by Steve Dawson http://www.b-link.co.uk/stevedawson/script_hide_email_.php

var address;
var dom;
var tld;
var CSSname;

function prote(address, dom, tld) {
	var first = 'ma';
	var second = 'il';
	var third = 'to:';
	document.write('<a href="');
	document.write(first+second+third);

	document.write(address);
	document.write('&#64;');
	document.write(dom);
	document.write('.');
	document.write(tld);  
	document.write('">'); 

	document.write(address);
	document.write('&#64;');
	document.write(dom);
	document.write('.');
	document.write(tld);  

	document.write('</a>');
}

function proteText(address, dom, tld, linkText) {
  var first = 'ma';
  var second = 'il';
  var third = 'to:';
  document.write('<a href="');
  document.write(first+second+third);

  document.write(address);
  document.write('&#64;');
  document.write(dom);
  document.write('.');
  document.write(tld);  
  document.write('">'); 

  document.write(linkText);  

  document.write('<\/a>');
}

// Mithat Konar's Javascript email protector with CSS support
// Writes a link of the form:
// <a href=mailto:address@dom.tld class="CSSname"> 
// <span class="CSSname">address@dom.tld</span></a>
// Based on code by Steve Dawson http://www.b-link.co.uk/stevedawson/script_hide_email_.php

function proteCSS(address, dom, tld, CSSname) {
	var first = 'ma';
	var second = 'il';
	var third = 'to:';
	document.write('<a href="');
	document.write(first+second+third);

	document.write(address);
	document.write('&#64;');
	document.write(dom);
	document.write('.');
	document.write(tld); 
	document.write('" class="');
	document.write(CSSname);
	document.write('">');

	document.write('<span class="');
	document.write(CSSname);
	document.write('">');
	document.write(address);
	document.write('&#64;');
	document.write(dom);
	document.write('.');
	document.write(tld); 

	document.write('</span></a>');
}

// Mithat Konar's Javascript email protector with CSS support
// Writes a link of the form:
// <a href=mailto:address@dom.tld?subject=sbj class="CSSname"> 
// <span class="CSSname">address@dom.tld</span></a>
// Based on code by Steve Dawson http://www.b-link.co.uk/stevedawson/script_hide_email_.php

function proteSubjCSS(address, dom, tld, sbj, CSSname) {
	var first = 'ma';
	var second = 'il';
	var third = 'to:';
	var fourth = '?subject=';
	document.write('<a href="');
	document.write(first+second+third);

	document.write(address);
	document.write('&#64;');
	document.write(dom);
	document.write('.');
	document.write(tld); 
	document.write(fourth);
	document.write(sbj); 
	document.write('" class="');
	document.write(CSSname);
	document.write('">');

	document.write('<span class="');
	document.write(CSSname);
	document.write('">');
	document.write(address);
	document.write('&#64;');
	document.write(dom);
	document.write('.');
	document.write(tld); 

	document.write('</span></a>');
}

// From http://www.cybertechhelp.com/forums/archive/index.php/t-8755.html
function changeColor(el,newColor)
{
	el.style.color = newColor;
}
// -->