// T324 Scripts 11/06/03

// Copyright Date Script
function copyrightdate(start_year)
{
var d=new Date();
yr=d.getFullYear();
if (yr!=start_year) {
return(start_year+"-"+yr);  }
if (yr==start_year) {
return(start_year);  }
}

var addEvent;
if (document.addEventListener) { // Non-IE
	addEvent = function(element, type, handler) {
		element.addEventListener(type, handler, false);
	};
} else if (document.attachEvent) { // IE6+
    addEvent = function(element, type, handler) {
        element.attachEvent("on" + type, handler);
    };
} else { // Older Browsers
    addEvent = function(element, type, handler) {
		var oldHandler = element['on' + type];
		if (oldHandler === null) {
			element['on' + type] = handler;
		} else {
			element['on' + type] = function(e) { oldHandler(e); handler(e); };
		}
	};
}
			  
// NoSpamEmail Script
function nospam(domain,name,visible){
/* comment within a script */
document.write('<a href=\"mail'+'to:' + name + '@' + domain + '\">');
document.write(visible+ '</a>');
}
//Example: nospam("casamina-santabarbara.com","info","Click here to get more information") 

// NoSpamEmail Script 2
function nospam2(domain,name,tld){
/* comment within a script */
document.write('<a href=\"mail'+'to:' + name + '@' + domain + '.' + tld + '\">');
document.write(name + '@' + domain + '.' + tld + '</a>');
}
//Example: nospam2("casamina-santabarbara,"info","com") 
