

function doAddComment(parm){
	var e00104			= parm[0];
	var title			= trim(document.all.item("txt_title").value);
	var comment			= trim(document.all.item("txt_comment").value);
	
	if ( title == "" ) {
		showMessage(1, e00104);
		setFocus("txt_title");
		return false;
	}
	
	if ( comment == "" ) {
		showMessage(1, e00104);
		setFocus("txt_comment");
		return false;
	}
	
	$('div_comment').innerHTML='<img src="/images/loading.gif" position="absmiddle"/><span style="color:#006699;">In process...</span>';
	var url = '/fsc9910_03.jsp';
	var par = "txt_comment=" + $F('txt_comment')
		+ "&txt_title=" + $F('txt_title')
		+ "&action_type=INSERT"
		;
	new Ajax.Updater('div_comment', url, {
		asynchronous:true, method:'post', parameters:par, 
		onFailure:function(){alert('Sorry. There was an error.');},
		onLoading:function(){document.all.item("txt_title").value="";document.all.item("txt_comment").value="";location.reload();}
		});
}


