var already = false;
var foc = false;
function areaFocus1(t) {
	foc = true;
	t.style.color = '#000';
	t.style.backgroundColor = '#ffe8f0';
	if (!already) {
       	t.value = '';
        	already = true;
	}
	setTimeout('counting()', 1000);
};
function areaFocus2(t) {
	foc = true;
	t.style.color = '#000';
	t.style.backgroundColor = '#ffe8f0';
	already = true;
	setTimeout('counting()', 1000);
};
function areaBlur(t) {
	foc = false;
	t.style.backgroundColor = '#fff';
};
function counting() {
	var c_str = document.getElementById('spell_text').value;
	c_str = c_str.split('\n').join(' ');
	c_str = c_str.split('\r').join('');
	var chars = c_str.length+' characters';
	document.getElementById('count').innerHTML = chars;
	if (foc) setTimeout('counting()', 1000);
};
(function() {
	try {
	var t = document.getElementById('spell_text');
    if (t.value == "") t.value = "Enter your text right here...";
    t.setAttribute("spellcheck", false);
    } catch(e) {};
})();