// JavaScript Document
function comm_toAction(){
	if($('to_group').checked == true){
		Element.show('group_row');
		Element.hide('people_row');
	}
	if($('to_ind').checked == true){
		Element.show('people_row');
		Element.hide('group_row');
	}
}

function checkLength(elm,report){
	var count = $(elm).value.length;
	var pages = 0;
	if(count > 120){
		pages = Math.floor(count/120);
		count = count - (pages * 120);
	}
	Element.update(report,pages + "/" + count);
}

function swapButton(show,hide){
	$(hide).style.visibility = 'hidden';
	Element.show(show);
}