ฟังก์ชั่นที่ใช้
function sendMsgtoServer(){
var url = 'send.php';
var params = 'msg='+$F('msg');
$('sendMsg').disable();
new Ajax.Request(url,{parameters:params,onComplete:sendMsgtoServer_OK});
}
function sendMsgtoServer_OK(req){
$('sendMsg').enable();
$('msg').value = '';
$('msg').focus();
loadMsg();
}