
resizeTo(650,610);String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"");}
function $a($c){var $d=$c.split("\n");return($d.length);}
function $b($c){re=/\s+/g;$c=$c.replace(re," ");re=/[!@#$%\^&\*\(\)\{\}_\+\-=;':",./<>\?\\~`\xa1\xa3\xa5\xa7\xa9\xab\xad\xaf\xb1\xb3\xb5\xb7\xb9\xbb\xbd\xbf\xa2\xa4\xaa\xac\xae\xb0\xb2\xb4\xb6\xb8\xba\xbc\xbe]+/g;$c=$c.replace(re," ");re=/[ ]+/g;$c=$c.replace(re," ");$c=$c.trim();var $d=$c.split(" ");return($d.length);}
var $e;var $f;var $g;function countIt(){var $h=document.counter;var $i=document.counter.text.value;if(!$i){alert("Please enter or paste your text");}
else{$g=$i.length;$e=$b($i);$f=$a($i);$h.words.value=$e;$h.lines.value=$f;$h.chars.value=$g;}}
function clearBox(){var $h=document.counter;$h.text.value="";$h.words.value="";$h.lines.value="";$h.chars.value="";}
function copyIt(){var $j=document.counter.words;$j.select();if(document.all){window.clipboardData.setData('Text',$j.value);}}