// Àü¿ª º¯¼ö var errmsg = ""; var errfld; // ÇÊµå °Ë»ç function check_field(fld, msg) { if ((fld.value = trim(fld.value)) == "") error_field(fld, msg); else clear_field(fld); return; } // ÇÊµå ¿À·ù Ç¥½Ã function error_field(fld, msg) { if (msg != "") errmsg += msg + "\n"; if (!errfld) errfld = fld; fld.style.background = "#BDDEF7"; } // Çʵ带 ±ú²ýÇÏ°Ô function clear_field(fld) { fld.style.background = "#FFFFFF"; } function trim(s) { var t = ""; var from_pos = to_pos = 0; for (i=0; i=0; i--) { if (s.charAt(i-1) == ' ') continue; else { to_pos = i; break; } } t = s.substring(from_pos, to_pos); // alert(from_pos + ',' + to_pos + ',' + t+'.'); return t; } // ÀÚ¹Ù½ºÅ©¸³Æ®·Î PHPÀÇ number_format Èä³»¸¦ ³¿ // ¼ýÀÚ¿¡ , ¸¦ Ãâ·Â function number_format(data) { var tmp = ''; var number = ''; var cutlen = 3; var comma = ','; var i; len = data.length; mod = (len % cutlen); k = cutlen - mod; for (i=0; i 0) { fld.rows = rows; } } var old=''; function menu(name){ submenu=eval(name+".style"); if (old!=submenu) { if(old!='') { old.display='none'; } submenu.display='block'; old=submenu; } else { submenu.display='none'; old=''; } } // 3.36 function image_window(img, w, h) { var tmp_w = w; var tmp_h = h; winl = (screen.width-w)/2; wint = (screen.height-h)/3; if (w >= screen.width) { winl = 0; w = screen.width - 10; h = (parseInt)(w * (h / w)); } if (h >= screen.height) { wint = 0; h = screen.height - 80; w = (parseInt)(h * (w / h)); } var settings ='width='+w+','; settings +='height='+h+','; settings +='top='+wint+','; settings +='left='+winl+','; settings +='scrollbars=no,'; settings +='resizable=no,'; settings +='status=no'; win=window.open("","newWindow",settings); win.document.open(); win.document.write (""); win.document.write ("À̹ÌÁö º¸±â"); win.document.write (""); //win.document.write (""); win.document.write (""); win.document.write (""); win.document.close(); if(parseInt(navigator.appVersion) >= 4){win.window.focus();} }