function protect(){
	var user='webmaster';
	var hostname=document.location.hostname;
	if(hostname.substring(0,4)=='www.'){
		hostname=hostname.substring(4);
	}
	var objs = document.getElementsByTagName("a"); 
	for (var i=0; i<objs.length; i++) { 
		var obj = objs[i]; 
		if (obj.getAttribute("href") && obj.getAttribute("name") == "protected"){
			obj.href='mailto:'+user+'@'+hostname;
		}
	}
}
