function typing() {
	var text = document.getElementById("story");
	var count = document.getElementById("count");
	if (text.value.length > 600) {
		text.value = text.value.substring(0, 600);
	}
	count.value = 600 - text.value.length;
}

function typingComment() {
	var text = document.getElementById("comment");
	var count = document.getElementById("count");
	if (text.value.length > 420) {
		text.value = text.value.substring(0, 420);
	}
	count.value = 420 - text.value.length;
}