codice:
<form name="RTE" action="visualizza_testo.php" method="post" onsubmit="return submitForm();">

<script language="JavaScript" type="text/javascript">
<!--
function submitForm() {
	//call updateMessage to 
	updateRTE();
	// alert(document.RTE.msgbody.value);
	
	//change the following line to true to submit form
	return true;
}
//-->
</script>

<input type="submit" name="submit" value="Submit">

</form>
ciao