<script type="text/javascript">
function submitForm(){
var myform = document.getElementById('form1');
var evtFunct = myform.onsubmit;
if(evtFunct)
evtFunct();
myform.submit();
}
var editor = null;
function initEditor() {
var config_descrizione = new HTMLArea.Config(); // create a new configuration object
// having all the default values
//config_descrizione.width = '300px';
config_descrizione.height = '300px';
// the following sets a style for the page body (black text on yellow page)
// and makes all paragraphs be bold by default
config_descrizione.pageStyle =
'body { color: black; font-family: verdana,sans-serif } ' +
'p { font-width: bold; } ';
config_descrizione.toolbar = [
['fontname', 'space',
'fontsize', 'space',
'formatblock', 'space',
"justifyleft", "justifycenter", "justifyright", "separator",
"outdent", "indent", "separator",
'bold', 'italic', 'underline',"separator","inserthorizontalrule"],
[ "createlink", 'space', "insertimage", 'space', "inserttable", "separator", "popupeditor", "htmlmode"]
];
var config = new HTMLArea.Config(); // create a new configuration object
// having all the default values
//config.width = '300px';
config.height = '100px';
// the following sets a style for the page body (black text on yellow page)
// and makes all paragraphs be bold by default
config.pageStyle =
'body { color: black; font-family: verdana,sans-serif } ' +
'p { font-width: bold; } ';
config.toolbar = [
["justifyleft", "justifycenter", "justifyright", 'space',
"htmlmode", "separator",
'bold', 'italic', 'underline']
];
//---------------------------------------------------------------------
HTMLArea.replace('MyTextarea2', config);
HTMLArea.replace('MyTextarea', config_descrizione);
return false;
}
HTMLArea.onload = initEditor;
</script>