1 function moveFocus(num,fromform,toform) 2 { 3 var str = fromform.value.length; 4 if(str == num) 5 toform.focus(); 6 } 7 8 function enter_press(){ 9 var key = event.keyCode; 10 if(key == 13) { //javascriptììë 13ì´ enterí¤ë¥¼ ìë¯¸í¨ 11 document.searchForm.submit(); //formnameì ì¬ì©ìê° ì§ì í formì nameì ë ¥ 12 } 13 } 14 15 function CheckNumLength(no, length) { 16 var nNum = String(no).replace(/\..*|[^\d]/g, ""); 17 if (nNum.length > parseInt(length, 10)) { 18 nNum = nNum.substring(0, nNum.length - 1); 19 } 20 return nNum; 21 } 22 23 function Only_ChangeNum(val) { 24 var nNum = String(val).replace(/\..*|[^\d]/g, ""); 25 return nNum; 26 } 27 28 // 공백 ì ê±° 29 function trim(str) { 30 i = 0; 31 if(str.charAt(i) == " ") { 32 for(; i<str.length && str.charAt(i) == " "; i++) ; 33 str = str.substring(i, str.length); 34 } 35 else str = str.substring(i, str.length); 36 37 i=str.length-1; 38 if(str.charAt(i) == " ") { 39 for(; i >= 0 && str.charAt(i) == " "; i--) ; 40 str = str.substring(0, i+1); 41 } 42 else str = str.substring(0, i+1); 43 44 return str; 45 } 46 47 // ìì°½ ëì°ë í¨ì last modify : 2011-09-28 48 function openWindow(url,name,width,height,scroll) 49 { 50 var x = (window.screen.width - width) / 2; 51 var y = (window.screen.height - height) / 2; 52 53 if (!scroll) 54 { 55 scroll = "no"; 56 } 57 58 window.open(url,name,'width=' + width + ',height=' + height + ',left=' + x + ',top=' + y + ',scrollbars=' + scroll); 59// window.open(url,name,'Status=yes, Tpplbar=yes, Menubar=yes','width=' + width + ',height=' + height + ',left=' + x + ',top=' + y + ',scrollbars=' + scroll); 60 } 61 62 function email_checked(f) { 63 if (f.value.length > 0) { 64 if (f.value.search(/(\S+)@(\S+)\.(\S+)/)== -1 ) { 65 alert("ì¬ë°ë¥¸ e-mailíìì´ ìëëë¤.\në¤ìì ë ¥íì¸ì.") 66 f.value=""; 67 f.focus(); 68 return false; 69 } 70 } 71 return true; 72 }
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.