Your IP : 192.168.165.1


Current Path : C:/Users/Mahmood/Desktop/moodle/mod/chat/gui_sockets/
Upload File :
Current File : C:/Users/Mahmood/Desktop/moodle/mod/chat/gui_sockets/chat_gui_sockets.js

scroll_active = true;
function empty_field_and_submit() {
    var cf   = document.getElementById('sendform');
    var inpf = document.getElementById('inputform');
    cf.chat_msgidnr.value = parseInt(cf.chat_msgidnr.value) + 1;
    cf.chat_message.value = inpf.chat_message.value;
    inpf.chat_message.value = '';
    cf.submit();
    inpf.chat_message.focus();
    return false;
}
function setfocus() {
    document.getElementsByName("chat_message")[0].focus();
}