1// ë¹ê° ê²ì¬ (ë©ì¸ì§ ì¶ë ¥ / 공백ì ì ì¸íê³ ë¹ê°ì´ë©´ true ìëë©´ false) 2function chkBlank_msg(box, msg) { 3 var valid = box.value.replace(/\s/gi,""); 4 if (valid=="") { 5 if (!msg) msg = "ë¹ ê°ì ëë¤. ê°ì ì ë ¥íì¸ì."; 6 alert(msg); box.focus(); 7 return true; 8 } 9 return false; 10} 11 12// ë¼ëì¤ë²í¼ ì²´í¬ (ì íë ê²ì´ ìì¼ë©´ false ì íë ê²ì´ ìì¼ë©´ trueê° ë¦¬í´íê³ ë©ì¸ì§ ì¶ë ¥) 13function chkRadio_msg(box, msg) { 14 var cnt = 0; 15 for (var i=0; i<box.length; i++) { 16 if (box[i].checked) return false; 17 } 18 if (!msg) msg = "ì íí목ì íë ì´ì ì ííììì¤."; 19 alert(msg); 20 box[0].focus(); 21 return true; 22} 23 24// ì´ë©ì¼ 주ì íì ì²´í¬ 25function isEmail(str) { 26 var supported = 0; 27 if (window.RegExp) { 28 var tempStr = "a"; 29 var tempReg = new RegExp(tempStr); 30 if (tempReg.test(tempStr)) supported = 1; 31 } 32 if (!supported) 33 return (str.indexOf(".") > 2) && (str.indexOf("@") > 0); 34 var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)"); 35 var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$"); 36 return (!r1.test(str) && r2.test(str)); 37}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.