/// ½ºÆ®¸µ °´Ã¼¿¡ ¸Þ¼Òµå Ãß°¡ /// String.prototype.trim = function(str) { str = this != window ? this : str; return str.replace(/^\s+/g,'').replace(/\s+$/g,''); } String.prototype.bytes = function(str) { var len = 0; str = this != window ? this : str; for(j=0; j 128) ? 2 : 1 } return len; } String.prototype.num_format = function (str){ str = this != window ? this : str; var Re = /[^0-9]/g; var ReN = /(-?[0-9]+)([0-9]{3})/; str = str.replace(Re,''); while (ReN.test(str)) { str = str.replace(ReN, '$1,$2'); } return str; } function get_att(el, attname) { etype = el.type; switch(etype) { case "select-one": att_val = el.options[el.selectedIndex].getAttribute(attname); break; case "radio": case "checkbox": if(el.checked) { att_val = el.getAttribute(attname); } else { att_val = ""; } break; default: att_val = el.getAttribute(attname); break; } att_val = att_val == null ? '' : att_val; return att_val; } function att_get(el, attname) { att_val = el.getAttribute(attname); att_val = att_val == null ? '' : att_val; return att_val; } function find_Obj(n, d) { var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i 0) { // alert('ÆûÀü¼ÛÁß ÀÔ´Ï´Ù.\nÀá½Ã ±â´Ù·Á ÁֽʽÿÀ.'); // return false; // } for (i = 0; i < theForm.elements.length; i++ ) { var el = theForm.elements[i]; kind=att_get(el, "kind"); val=el.value; val=val.trim(); if(kind == "fil" && val == '') { hname = att_get(el, "hname"); alert("'" + hname + "'" + " Ç׸ñÀº Çʼö Ç׸ñÀÔ´Ï´Ù."); el.focus(); return false; } pri_check = att_get(el, "kind"); pri_value = el.value; if ( el.type == "checkbox" ) { if(pri_check == "private_chk" && pri_value == '') { hname = att_get(el, "hname"); alert(hname + "À» üũÇØ ÁÖ¼¼¿ä."); el.focus(); return false; } } } submit_form_tag=1; return true; }