// Do not edit the script below
if (document.layers) {netscapecorrector=1;maximalwords+=1}
if (document.all) {netscapecorrector=0}

function counters() {
	countwords();
	countchars();
}

function countwords() {
	var words="";
	var corrector=0;
	var text=document.getElementById('countertext').value;
	words=text.split(" ");
	if (words[words.length-1]=="") {corrector=1;}
	document.getElementById('counter').value=(words.length)-corrector;
}

function countchars() {
	var chars="";
	var corrector=0;
	var text=document.getElementById('countertext').value;
	chars=text.length;
	if (chars[chars.length-1]=="") {corrector=1;}
	document.getElementById('charcounter').value=(chars)-corrector;
}
