function login() { document.login.submit(); } function Check_Key(i) { if(event.keyCode==13 && i==1) { document.login.password.focus(); } if(event.keyCode==13 && i==2) { login(); } if(event.keyCode==27 && i == 1) document.login.userid.value=""; if(event.keyCode==27 && i == 2) document.login.password.value=""; } function message_open(TITLE,URL, WIDTH, HEIGHT) { windowprops = "left=50,top=50,width=" + WIDTH + ",height=" + HEIGHT + ",scrollbars=yes,resizable=yes,status=no"; window.open(URL, TITLE , windowprops); } function open_window(TITLE,URL, WIDTH, HEIGHT) { windowprops = "left=50,top=50,width=" + WIDTH + ",height=" + HEIGHT + ",resizable=yes,scrollbars=yes"; window.open(URL, TITLE , windowprops); } function open_window2(TITLE,URL, WIDTH, HEIGHT) { windowprops = "left=50,top=50,width=" + WIDTH + ",height=" + HEIGHT + ",resizable=yes,scrollbars=no"; window.open(URL, TITLE , windowprops); } function open_window_1(TITLE,URL, WIDTH, HEIGHT) { windowprops = "left=2000,top=2000,width=" + WIDTH + ",height=" + HEIGHT + ",resizable=yes,scrollbars=yes"; window.open(URL, TITLE , windowprops); } function deleteConfirm(msg, url){ if(confirm(msg)) document.location.replace( url ); } function orderConfirm(msg, url){ if(confirm(msg)) document.location.href( url ); } function checkConfirm(msg){ if(confirm(msg)) { return true; } else { return false; } } function erorrMsg(msg){ alert(msg); } function postChk(ref){ window.open( ref , "win1",'scrollbars=yes,width=500,height=400'); } function change_board(changecategory) { if (changecategory==1) { var index = document.catform.catlist.selectedIndex; document.catform.sel_cat.value=document.catform.catlist.options[index].value; } document.catform.submit(); return false; } function checkEndTime(){ open_window_1('','/lecture/checkEndTime.php', '1', '1'); } function pulldown(sel, targetstr) { var index = sel.selectedIndex; if (sel.options[index].value != '') { if (targetstr == 'blank') { window.open(sel.options[index].value, 'win1'); } else { var frameobj; if (targetstr == '') targetstr = 'self'; if ((frameobj = eval(targetstr)) != null) frameobj.location = sel.options[index].value; } } }