document.domain = 'bizfree.kr'; // String prototype String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g,""); } String.prototype.ltrim = function() { return this.replace(/^\s+/,""); } String.prototype.rtrim = function() { return this.replace(/\s+$/,""); } function getObject(objectId) { // checkW3C DOM, then MSIE 4, then NN 4. // if(document.getElementById && document.getElementById(objectId)) { return document.getElementById(objectId); } else if (document.all && document.all(objectId)) { return document.all(objectId); } else if (document.layers && document.layers[objectId]) { return document.layers[objectId]; } else { return false; } } function getStyleObject(objectId) { // checkW3C DOM, then MSIE 4, then NN 4. // if(document.getElementById && document.getElementById(objectId)) { return document.getElementById(objectId).style; } else if (document.all && document.all(objectId)) { return document.all(objectId).style; } else if (document.layers && document.layers[objectId]) { return document.layers[objectId]; } else { return false; } } function onDel(obj) { /* var ex_text = obj.value.replace(/\r\n/gi, '').replace(/\r/gi, '').replace(/\n/gi, '').replace(/ /gi, ''); if (obj.value == "¿¹) paran.com" || obj.value == "¿¹) paran" || obj.value == "¿¹) ÆĶõ" || obj.value == "¿¹) paran, ÆĶõ" || ex_text == "¿¹)paran.comabcde123.netÆĶõ.orgtest.cn" || obj.value == "ÀÔ·Â ¿¹) paran,ÆĶõ") obj.value = ""; */ try{ var chk = $(obj).attr('checkfirst'); if( chk != 'true' ){ $(obj).attr('oldvalue', $(obj).val()); $(obj).val(''); $(obj).attr('checkfirst','true') $(obj).blur(function(){ if( $(this).val() == "" && $(obj).attr('oldvalue') != "" ){ $(this).val($(obj).attr('oldvalue')); $(obj).attr('checkfirst','false') } }); } }catch(e){ obj.value = ""; } } function whois_popup( domain ) { var objwin = window.open('/searchdom/schwhois_popup.html?domain='+domain+'','whois_popup','width=600,height=500,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes'); objwin.focus(); } function checknorm2_nomsg(target, cmt, astr, lmax) { var i; var t = target.value; if (t.length >= 1) { for (i=0; i= 0) { return false; } } return true; } function charin_check(target, astr) { var i; var t = target.value; if (astr.length >= 1) { for (i=0; i= 1) { for (i=0; i lmax) { alert(cmt + '´Â ' + lmax + 'ÀÚ À̳»¸¸ Çã¿ëÇÕ´Ï´Ù.'); return true } if (astr.length >= 1) { for (i=0; i=10) sum-=10; sum += 2; if (sum>=10) sum-=10; if ( sum != buf[12]) { return false; } else { return true; } } function checkorgno_dash(sIdno) { if(sIdno.length == 12) { var calStr1 = "137-13-713", biVal = 0,tmpCal; var calLast = sIdno.substring(11,12); for (i=0; i < 10; i++) { if (i != 3 && i != 6) { biVal = biVal + (parseFloat(sIdno.substring(i,i+1)) * parseFloat(calStr1.substring(i,i+1))) % 10; } } tmpCal = parseFloat(sIdno.substring(10,11)) * 5 + "0"; chkVal = parseFloat(tmpCal.substring(0,1)) + parseFloat(tmpCal.substring(1,2)); chkDigit = (10 - (biVal + chkVal) % 10) % 10; if (calLast != chkDigit) { alert("Á¤È®ÇÏÁö ¾ÊÀº »ç¾÷ÀÚµî·Ï¹øÈ£ÀÔ´Ï´Ù.. \n\n ´Ù½Ã È®ÀÎÇϽðí ÀԷ¹ٶø´Ï´Ù. "); return false; } else { return true; } } else { alert("»ç¾÷ÀÚµî·Ï¹øÈ£´Â ¼ýÀÚ·Î 10ÀÚ¸® ÀÔ´Ï´Ù..\n\n ´Ù½Ã È®ÀÎÇϽðí ÀԷ¹ٶø´Ï´Ù."); return false; } } function checkIdno(sIdno) { var cnum, xx, m, chknum; var x = 0; sIdno = sIdno.replace('-',''); if( sIdno.length != 13 ) return false; m = 2; for( var i=0; i<12; i++ ){ if( m == 10 ) m = 2; cnum = sIdno.substring(i, i+1); x += cnum * m; m++; } chknum = sIdno.substring(12, 13); xx = x % 11; if (xx == 10) xx = 0; chknum = 11 - chknum; if (chknum == 11) chknum = 1; else if (chknum == 10) chknum = 0; if (xx == chknum) return true; else return false; } function subChange(ctype) { var distype = (document.getElementById('showhide_tbl_'+ctype).style.display == 'none' ? 'block': 'none'); document.getElementById('showhide_tbl_'+ctype).style.display = distype; } function subChange(ctype) { var distype = (document.getElementById('lyr_'+ctype).style.display == 'none' ? 'block': 'none'); document.getElementById('lyr_'+ctype).style.display = distype; } function changeObjectDisplay(objectId, newDisplay) { // first get a reference to the cross-browser style object // and make sure the object exists var styleObject = getStyleObject(objectId); if(styleObject) { styleObject.display = newDisplay; return true; } else { // we couldn't find the object, so we can't change its visibility return false; } } function displayText(objectId, text){ if (document.all) { document.all[objectId].innerHTML = text; } else { var obj = document.getElementById(objectId); obj.innerHTML = text; } } var temp_explain = ""; function open_explain (width, height, file, eventObj) { var xOffset = 0; var yOffset = 0; if (temp_explain == file) { close_explain (); return; } temp_explain = file; str_html = "" + "" + " " + "" + "
"; var xpos = (eventObj.pageX)?eventObj.pageX + xOffset:eventObj.x + xOffset + ((document.body.scrollLeft)?document.body.scrollLeft:0); var ypos = (eventObj.pageY)?eventObj.pageY + yOffset:eventObj.y + yOffset + ((document.body.scrollTop)?document.body.scrollTop:0); if ((xpos + width) > document.body.scrollWidth) { xpos = (eventObj.pageX)?eventObj.pageX + xOffset:eventObj.x - width; } displayText ("layer_explain", str_html); objectstyle = getStyleObject ("layer_explain"); objectstyle.top = ypos; objectstyle.left = xpos; objectstyle.width = width; objectstyle.height = height; changeObjectDisplay("layer_explain", ""); } function close_explain () { changeObjectDisplay("layer_explain", "none"); displayText ("layer_explain", ''); temp_explain = ""; } var setComma = function(str) { var str = str.toString().replace(/,/g,''); var tmpchk = str.substring(0,1); var tmp = ''; for( var i=str.length; i>0; i-=3 ){ tmp = str.substring(i-3,i) + (tmp!=''?',':'') + tmp; } return tmp; } function ChkByte(objname,maxlength) { var objstr = objname.value; var objstrlen = objstr.length; var maxlen = maxlength; var i = 0; var bytesize = 0; var strlen = 0; var onechar = ""; var objstr2 = ""; for(i=0; i< objstrlen; i++) { onechar = objstr.charAt(i); if (escape(onechar).length > 4) { bytesize += 2; } else { bytesize++; } if(bytesize <= maxlen) { strlen = i + 1; } } if(bytesize > maxlen) { alert( "Çã¿ëµÈ ¹®ÀÚ¿­ÀÇ ÃÖ´ë°ªÀ» ÃÊ°úÇß½À´Ï´Ù. \nÃÊ°úµÈ ³»¿ëÀº ÀÚµ¿À¸·Î »èÁ¦ µË´Ï´Ù."); objstr2 = objstr.substr(0, strlen); objname.value = objstr2; } objname.focus(); return; } function open_domyak(){ var domyakw = window.open("/haul/pop_domyak.html","domyak","width=610,height=500, top=200, left=200,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes"); domyakw.focus(); }