/*
 * Counts the words in a text area.
 * http://javascript.about.com/library/blcount.htm
 */
function cnt(w,x){
	var y=w.value;
	var r = 0;
	a=y.replace(/\s/g,' ');
	a=a.split(' ');
	for (z=0; z<a.length; z++) {if (a[z].length > 0) r++;}
	x.value=r;
}

function SetState(obj_checkbox, obj_textarea) {
	if(obj_checkbox.checked) { 
		obj_textarea.style.display = 'block';
	}
	else {
		obj_textarea.style.display = 'none';
	}
}