/* fuckDaSpam by CyberArcher :: N-Joy, ya dirty spambots ;) */
function fuckDaSpambots() {
// just set these 3 variables and everything should work :) if you fight with spambots using character entities (like I do), don't include them in these vars, because it screws 'length' attribute ... similar problem appers when using special characters (e.g. letters with accents), but it would require more lines of code; I prefer to write some nasty comments instead :)
	var mailto = "mailto:", at = "[zavinac]", dot = "[tecka]";
	var allAnchors = document.getElementsByTagName('a');
	for (var i = 0; i < allAnchors.length; i++) {
		var currentLink = toString(allAnchors[i].href);	//toString je tam zejmena quli Mozille
		if (currentLink.substring(0,mailto.length) == mailto) {
			var atPos = currentLink.indexOf(at), dotPos = currentLink.indexOf(dot);
			var newLink = "mailto:";
			for (var j = mailto.length; j < currentLink.length; j++) {
				if ((j < atPos || j >= atPos+at.length) && (j < dotPos || j >= dotPos+dot.length)) {
					if (j == atPos+at.length) newLink += '@';
					if (j == dotPos+dot.length) newLink += '.';
					newLink += currentLink.charAt(j);
				}
			}
			allAnchors[i].href = newLink;
		}
	}
}

/* changes statusbar */
function ss(s) {window.status = s}
function cs()  {window.status = '';}

/* chex and unchex all chexbockses; scripted by Nannette Thacker (http://www.shiningstar.net) */
// spis bych mel upgradovat vypis kategorii, aby else nebylo nutne
function checkAll(field) {
	if (field.length > 0)	
		for (i = 0; i < field.length; i++) field[i].checked = true;
	else
		field.checked == true;
}
function uncheckAll(field) {
	if (field.length > 0)	
		for (i = 0; i < field.length; i++) field[i].checked = false;
	else
		field.checked == false;
}

