<!--
function NewWin(url, l, t, w, h, s, r) //ÆË¾÷¶ç¿ì±â
{
	opt = "left=" + l + ", top=" + t + ", width=" + w + ", height=" + h;
	opt = opt + ", toolbar=no,location=no,directories=no,status=no,menubar=no";
	opt = opt + ",scrollbars=" + s;
	opt = opt + ",resizable=" + r;
	window.open(url, "_blank", opt);
}

function popup_center(url,w, h, s, r) { //ÆË¾÷ °¡¿îµ¥ ¶ç¿ì±â
	
	width=screen.width;
	height=screen.height;
	
	x=(width/2)-(w/2);
	y=(height/2)-(h/2);
	
	opt = "left=" + x + ", top=" + y + ", width=" + w + ", height=" + h;
	opt = opt + ", toolbar=no,location=no,directories=no,status=no,menubar=no";
	opt = opt + ",scrollbars=" + s;
	opt = opt + ",resizable=" + r;
	window.open(url, "_blank", opt);
	
}


alpha_numeric_1 = new String("0123456789-")

function check_number(str) //¼ýÀÚÃ¼Å©
{
	var rtn;
        for(j = 0 ; j < str.length; j++)
        {
                rtn = is_alpha_numeric_1(str.charAt(j))
                if(rtn == false)
                {
                        return rtn;
                }
        }
        return rtn;
}

function is_alpha_numeric_1(cha1)
{
        for(i=0;i<alpha_numeric_1.length;i++)
        {
                if(alpha_numeric_1.charAt(i) == cha1)
                        return true;
        }
        return false;
}



alpha_numeric = new String("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ._-")

function check_alphanumber(str) //¼ýÀÚ,¿µ¹®Ã¼Å©
{
	var rtn
	  for(j = 0 ; j < str.length; j++)
        {
                rtn = is_alpha_numeric(str.charAt(j))
                if(rtn == false)
                {
                        return rtn;
                }
        }
        return rtn;
}

function is_alpha_numeric(cha1)
{
        for(i=0;i<alpha_numeric.length;i++)
        {
                if(alpha_numeric.charAt(i) == cha1)
                        return true;
        }
        return false;
}

function IsAlpha(c)
{
        if (c >= '0' && c <= '9')
                return 1;
        if (c >= 'a' && c <= 'z')
                return 1;
        if (c >= 'A' && c <= 'Z')
                return 1;
        else return 0;
}

function online_link()
{
	popup_center('/lecture/start.asp',900, 800, 'n', 'n') 
}


function ResizePic() // ÀÌ¹ÌÁö»çÀÌÁî Ã¼Å©
{
	if(! imgz.complete)
	{
		setTimeout("ResizePic(imgz)",50);
	}
	else
	{
		if (imgz.width > 610)
		{
			imgz.width = 610;
		}
	}
}


function ResizePic_bag() // ÀÌ¹ÌÁö»çÀÌÁî Ã¼Å©
{
	if(! imgz.complete)
	{
		setTimeout("ResizePic(imgz)",50);
	}
	else
	{
		if (imgz.width > 474)
		{
			imgz.width = 474;
		}
	}
}

var imgObj = new Image();
function showImgWin(imgName) { //ÀÌ¹ÌÁö »çÀÌÁî Ã¼Å©ÇÏ¿© ÆË¾÷¶ç¿ì±â
	imgObj.src = imgName;
	setTimeout("createImgWin(imgObj)", 100);
}
	
function createImgWin(imgObj) {
	if (! imgObj.complete) {
		setTimeout("createImgWin(imgObj)", 100);
		return;
	}
	var x = window.screen.width;
	var y = window.screen.height;
		
	var ix = imgObj.width;
	var iy = imgObj.height;
		
	if (parseInt(x) < parseInt(ix) && parseInt(y) < parseInt(iy)){
		
		var x = window.screen.width - 10;
		var y = window.screen.height - 55;
		
		imageWin = window.open("", "imageWin","top=0,left=0,scrollbars=yes,width=" + x + ",height=" + y);
		imageWin.document.write("<html><head><title>::¶Ç¶ì::</title></head><body style='margin:0'>");
		imageWin.document.write("<A HREF='javascript:window.close()'>"+"<img src=" + imgObj.src + " border=0 alt=´Ý±â>"+"</A>");
		imageWin.document.write("</body><html>");
		imageWin.document.title = "";
		
	}else if (parseInt(x) > parseInt(ix) && parseInt(y) < parseInt(iy)){
		var x = window.screen.width;
		var y = window.screen.height - 55;
		
		imageWin = window.open("", "imageWin","top=0,left=0,scrollbars=yes,width=" + ix + ",height=" + y);
		imageWin.document.write("<html><head><title>::¶Ç¶ì::</title></head><body style='margin:0'>");
		imageWin.document.write("<A HREF='javascript:window.close()'>"+"<img src=" + imgObj.src + " border=0 alt=´Ý±â>"+"</A>");
		imageWin.document.write("</body><html>");
		imageWin.document.title = "";
		
	}else if (parseInt(x) < parseInt(ix) && parseInt(y) > parseInt(iy)){
		
		var x = window.screen.width - 10;
		var y = window.screen.height;
		
		imageWin = window.open("", "imageWin","top=0,left=0,scrollbars=yes,width=" + x + ",height=" + iy);
		imageWin.document.write("<html><head><title>::¶Ç¶ì::</title></head><body style='margin:0'>");
		imageWin.document.write("<A HREF='javascript:window.close()'>"+"<img src=" + imgObj.src + " border=0 alt=´Ý±â>"+"</A>");
		imageWin.document.write("</body><html>");
		imageWin.document.title = "";
			
	}else{
		
		imageWin = window.open("", "imageWin","top=0,left=0,width=" + ix + ",height=" + iy);
		imageWin.document.write("<html><head><title>::¶Ç¶ì::</title></head><body style='margin:0'>");
		imageWin.document.write("<A HREF='javascript:window.close()'>"+"<img src=" + imgObj.src + " border=0 alt=´Ý±â>"+"</A>");
		imageWin.document.write("</body><html>");
		imageWin.document.title = "";
	}
}


function ContentDel(str){ //°Ô½Ã¹° »èÁ¦
	if (confirm(':: ÇÑ¹ø »èÁ¦µÈ µ¥ÀÌÅ¸´Â º¹±¸°¡ ºÒ°¡´É ÇÕ´Ï´Ù. ±×·¡µµ »èÁ¦ ÇÏ½Ã°Ú½À´Ï±î?::   ') == true){
		location.href=str;
	}else{
		false;
	}
}

function com_del(str){ //µ«±Û»èÁ¦
	if(confirm('ÇÑ¹ø »èÁ¦ÇÑ µ¥ÀÌÅ¸´Â º¹±¸°¡ ºÒ°¡´É ÇÕ´Ï´Ù.\n±×·¡µµ »èÁ¦ ÇÏ½Ã°Ú½À´Ï±î?') == true){
		comments_frame.location.href='comment_db.asp?mode=delete&indx='+str;
	}else{
		false;
	}
}



//-->
