MINI MINI MANI MO
// ¹®ÀÚ¿ ±æÀÌ °Ë»ç
function isLength(varCk) {
    var varLen = 0;
    var agr = navigator.userAgent;
    for (i=0; i<varCk.length; i++) {
        ch = varCk.charAt(i);
        if ((ch == "\n") || ((ch >= "¤¿") && (ch <= "È÷")) || ((ch >="¤¡") && (ch <="¤¾")))
            varLen += 2;
        else
            varLen += 1;
    }
    return (varLen);
}
// ÀÔ·Â ¹®ÀÚ¿ °Ë»ç (¼ýÀÚ/Ư¼ö¹®ÀÚ)
function isInteger(varCk, charSet) {
    if( varCk.search('V') != -1 ) return true;
    var chk=true;
    for (i=0; i<=varCk.length-1; i++) {
        ch = varCk.substring(i,i+1);
        if (ch>="0" && ch<="9") {
            chk = true;
        } else {
            chk=false;
            for (j=0; j<=charSet.length-1; j++) {
                comp = charSet.substring(j,j+1);
                if (ch==comp) {
                    chk = true;
                    break;
                }
            }
            if (!chk)   break;  // ¼ýÀÚ+Ư¼ö¹®ÀÚ¿ÜÀÇ ¹®ÀÚ°¡ ÀÖ´Â °æ¿ì¸¸ error Á¾·á 2002.04.08
        }
    }
    return chk;
}
// Áֹεî·Ï¹øÈ£ °Ë»ç
function isRegNo(varCk1,varCk2) {
    if ( (isLength(varCk1)==6) && (isLength(varCk2)==7) ) {
        //-----------------------------------------------------------------------------
        // ¿äû¹øÈ£  :  [3036] °¡»óÁֹιøÈ£ Àû¿ë
        // ¿äûÀÚ   : ±è¹Ì°æ
        // ¼öÁ¤ÀÚ   : ÀÌÀç¿ë
        // ¼öÁ¤ÀÏ   : 2007-03-13 5:10¿ÀÈÄ
        // ¼öÁ¤³»¿ë : °¡»óÁֹιøÈ£ÀÏ °æ¿ì ÁֹιøÈ£ üũ·ÎÁ÷ ÆÐ½º
        //-----------------------------------------------------------------------------
        if(varCk2.substring(1,2) == 'V')
        {
            return true;
        }
        //-----------------------------------------------------------------------------
        if ( (isInteger(varCk1,"")) && (isInteger(varCk2,"")) ) {
            ckValue = new Array(13);
            var ckLastid,ckMod,ckMinus,ckLast;
            ckLastid    = parseFloat(varCk2.substring(6,7));
            ckValue[0]  = parseFloat(varCk1.substring(0,1))  * 2;
            ckValue[1]  = parseFloat(varCk1.substring(1,2))  * 3;
            ckValue[2]  = parseFloat(varCk1.substring(2,3))  * 4;
            ckValue[3]  = parseFloat(varCk1.substring(3,4))  * 5;
            ckValue[4]  = parseFloat(varCk1.substring(4,5))  * 6;
            ckValue[5]  = parseFloat(varCk1.substring(5,6))  * 7;
            ckValue[6]  = parseFloat(varCk2.substring(0,1))  * 8;
            ckValue[7]  = parseFloat(varCk2.substring(1,2))  * 9;
            ckValue[8]  = parseFloat(varCk2.substring(2,3))  * 2;
            ckValue[9]  = parseFloat(varCk2.substring(3,4))  * 3;
            ckValue[10] = parseFloat(varCk2.substring(4,5))  * 4;
            ckValue[11] = parseFloat(varCk2.substring(5,6))  * 5;
            ckValue[12] = 0;
            for (var i = 0; i<12;i++) {
                ckValue[12] = ckValue[12] + ckValue[i];
            }
            ckMod   = ckValue[12] %11;
            ckMinus = 11 - ckMod;
            ckLast  = ckMinus % 10;
            if (ckLast != ckLastid) {
                alert ("Á¤È®ÇÑ ÁֹιøÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä.");
                return false;
            } else {
                return true;
            }
        } else {
            alert("Á¤È®ÇÑ ÁֹιøÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä.");
            return false;
        }
    } else {
        alert("Á¤È®ÇÑ ÁֹιøÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä.");
        return false;
    }
}
// »ç¾÷ÀÚ µî·Ï¹øÈ£ °Ë»ç
function isBusinessNo(varCk1,varCk2,varCk3) {
    ckValue = new Array(10);
    if ( (isLength(varCk1)==3) && (isLength(varCk2)==2) && (isLength(varCk3)==5) ) {
        if ( (isInteger(varCk1,"")) && (isInteger(varCk2,"")) && (isInteger(varCk3,"")) ) {
            ckValue[0] = ( parseFloat(varCk1.substring(0 ,1))  * 1 ) % 10;
            ckValue[1] = ( parseFloat(varCk1.substring(1 ,2))  * 3 ) % 10;
            ckValue[2] = ( parseFloat(varCk1.substring(2 ,3))  * 7 ) % 10;
            ckValue[3] = ( parseFloat(varCk2.substring(0 ,1))  * 1 ) % 10;
            ckValue[4] = ( parseFloat(varCk2.substring(1 ,2))  * 3 ) % 10;
            ckValue[5] = ( parseFloat(varCk3.substring(0 ,1))  * 7 ) % 10;
            ckValue[6] = ( parseFloat(varCk3.substring(1 ,2))  * 1 ) % 10;
            ckValue[7] = ( parseFloat(varCk3.substring(2 ,3))  * 3 ) % 10;
            ckTemp     = parseFloat(varCk3.substring(3 ,4))  * 5  + "0";
            ckValue[8] = parseFloat(ckTemp.substring(0,1)) + parseFloat(ckTemp.substring(1,2));
            ckValue[9] = parseFloat(varCk3.substring(4,5));
            ckLastid = ( 10 - ( ( ckValue[0]+ckValue[1]+ckValue[2]+ckValue[3]+ckValue[4]+ckValue[5]+ckValue[6]+ckValue[7]+ckValue[8] ) % 10 ) ) % 10;
            if (ckValue[9] != ckLastid) {
                alert ("À߸øµÈ »ç¾÷ÀÚµî·Ï¹øÈ£ÀÔ´Ï´Ù. ´Ù½Ã È®ÀÎÇØ ÁֽʽÿÀ");
                return false;
            } else {
                return true;
            }
        } else {
            alert("»ç¾÷ÀÚµî·Ï¹øÈ£´Â ¼ýÀÚÀ̾î¾ß ÇÕ´Ï´Ù.");
            return false;
        }
    } else {
        alert("»ç¾÷ÀÚµî·Ï¹øÈ£ÀÇ ÀÚ¸´¼ö°¡ À߸ø ÀԷµǾú½À´Ï´Ù.");
        return false;
    }
}
// »ç¾÷ÀÚ µî·Ï¹øÈ£ °Ë»ç
function isBusinessNo(varCk1,varCk2,varCk3) {
    ckValue = new Array(10);
    if ( (isLength(varCk1)==3) && (isLength(varCk2)==2) && (isLength(varCk3)==5) ) {
        if ( (isInteger(varCk1,"")) && (isInteger(varCk2,"")) && (isInteger(varCk3,"")) ) {
            ckValue[0] = ( parseFloat(varCk1.substring(0 ,1))  * 1 ) % 10;
            ckValue[1] = ( parseFloat(varCk1.substring(1 ,2))  * 3 ) % 10;
            ckValue[2] = ( parseFloat(varCk1.substring(2 ,3))  * 7 ) % 10;
            ckValue[3] = ( parseFloat(varCk2.substring(0 ,1))  * 1 ) % 10;
            ckValue[4] = ( parseFloat(varCk2.substring(1 ,2))  * 3 ) % 10;
            ckValue[5] = ( parseFloat(varCk3.substring(0 ,1))  * 7 ) % 10;
            ckValue[6] = ( parseFloat(varCk3.substring(1 ,2))  * 1 ) % 10;
            ckValue[7] = ( parseFloat(varCk3.substring(2 ,3))  * 3 ) % 10;
            ckTemp     = parseFloat(varCk3.substring(3 ,4))  * 5  + "0";
            ckValue[8] = parseFloat(ckTemp.substring(0,1)) + parseFloat(ckTemp.substring(1,2));
            ckValue[9] = parseFloat(varCk3.substring(4,5));
            ckLastid = ( 10 - ( ( ckValue[0]+ckValue[1]+ckValue[2]+ckValue[3]+ckValue[4]+ckValue[5]+ckValue[6]+ckValue[7]+ckValue[8] ) % 10 ) ) % 10;
            if (ckValue[9] != ckLastid) {
                alert ("À߸øµÈ »ç¾÷ÀÚµî·Ï¹øÈ£ÀÔ´Ï´Ù. ´Ù½Ã È®ÀÎÇØ ÁֽʽÿÀ");
                return false;
            } else {
                return true;
            }
        } else {
            alert("»ç¾÷ÀÚµî·Ï¹øÈ£´Â ¼ýÀÚÀ̾î¾ß ÇÕ´Ï´Ù.");
            return false;
        }
    } else {
        alert("»ç¾÷ÀÚµî·Ï¹øÈ£ÀÇ ÀÚ¸´¼ö°¡ À߸ø ÀԷµǾú½À´Ï´Ù.");
        return false;
    }
}
function eScroll()
{
	/*********************************
	 * eScroll ( eNamoo scroll script )
	 * by mirrh
	 * 2006.07.16
	 ********************************/
	var thisObj = this;
	this.timeObj = null;
	/*** ¼³Á¤º¯¼ö ***/
	this.mode = "top";				// ½ºÅ©·Ñ ¹æÇâ (top|left)
	this.width = "100%";			// ¶óÀÎ´ç °¡·Î°ª (pixel)
	this.height = 20;				// ¶óÀÎ´ç ³ôÀ̰ª (pixel)
	this.line = 1;					// Ãâ·Â ¶óÀμö
	this.delay = 150;				// ½ºÅ©·ÑÈÄ µô·¹ÀÌ ½Ã°£
	this.speed = 1;					// ½ºÅ©·Ñ ¼Óµµ (ÀÛÀ»¼ö·Ï ºü¸§)
	this.id = 'obj_eScroll';		// °´Ã¼ id (Ŭ·¡½º ´ÙÁß »ç¿ë½Ã id ´Ù¸£°Ô ÁöÁ¤ ¿ä¸Á)
	this.contents = new Array();	// Ãâ·Â ³»¿ë (¹è¿·Î ³»¿ë ÁöÁ¤ ¿ä¸Á)
	this.align = "left";			// ³»¿ë aligne
	this.valign = "middle";			// ³»¿ë valigne
	/*** ³»À庯¼ö ***/
	this.gap = 0;
	this.direction = 1;
	this.add = add;
	this.exec = exec;
	this.start = start;
	this.stop = stop;
	this.scroll = scroll;
	this.direct = direct;
	this.go = go;
	function add(str)
	{
		this.contents[this.contents.length] = str;
	}
	function exec()
	{
		this.basis = (this.mode == "left") ? this.width : this.height;
		var outWidth = this.width * ((this.mode == "left") ? this.line : 1);
		var outHeight = this.height * ((this.mode == "top") ? this.line : 1);
		var outline = "<div id=" + this.id + " style='overflow:hidden;width:" + outWidth + ";height:" + outHeight + "'><table></table></div>";
		document.write(outline);
		this.obj = document.getElementById(this.id);
		var tb = this.obj.appendChild(document.createElement("table"));
		var tbody = tb.appendChild(document.createElement("tbody"));
		tb.cellPadding = 0 ;
		tb.cellSpacing = 0 ;
		tb.onmouseover = function(){thisObj.stop()};
		tb.onmouseout = function(){thisObj.start()};
		if (this.mode=="left") var tr = tbody.appendChild(document.createElement("tr"));
		for (var k=0; k < this.contents.length; k++){
			if (this.mode=="top") var tr = tbody.appendChild(document.createElement("tr"));
			var td = tr.appendChild(document.createElement("td"));
			td.noWrap = true;
			td.style.width = this.width;
			td.style.height = this.height;
			td.style.textAlign = this.align;
			td.style.verticalAlign = this.valign;
			td.innerHTML = this.contents[k];
		}
		var len = (this.contents.length<this.line) ? this.contents.length : this.line;
		for (i=0;i<len;i++){
			if (this.mode=="top") var tr = tbody.appendChild(document.createElement("tr"));
			td = tr.appendChild(document.createElement("td"));
			td.noWrap = true;
			td.style.width = this.width;
			td.style.height = this.height;
			td.style.textAlign = this.align;
			td.style.verticalAlign = this.valign;
			td.innerHTML = this.contents[i];
		}
		this.obj.parent = this;
		this.tpoint = this.basis * this.contents.length;
		this.start();
	}
	function scroll()
	{
		var out = (this.mode=="left") ? this.obj.scrollLeft : this.obj.scrollTop;
		if (out%this.basis==0){
			this.gap++;
			if (this.gap>=this.delay) this.gap = 0;
		}
		if (!this.gap){
			var ret = (out==this.tpoint) ? this.direction : out + this.direction;
			if (ret<0) ret = this.tpoint + ret;
			if (this.mode=="left") this.obj.scrollLeft = ret;
			else this.obj.scrollTop = ret;
		}
	}
	function start()
	{
		this.timeObj = window.setInterval("(document.getElementById('" + this.id + "')).parent.scroll()",this.speed);
	}
	function stop()
	{
		clearTimeout(this.timeObj);
	}
	function direct(d)
	{
		this.direction = d;
	}
	function go()
	{
		this.stop();
		var out = (this.mode=="left") ? this.obj.scrollLeft : this.obj.scrollTop;
		var ret = (parseInt(out / this.basis) + this.direction) * this.basis;
		if (ret<0) ret = this.tpoint + ret;
		if (ret>this.tpoint) ret = this.basis;
		if (this.mode=="left") this.obj.scrollLeft = ret;
		else this.obj.scrollTop = ret;
	}
}
 OHA YOOOO