
// Confirm Ã¢

function IsConfirm(sMsg)
{
    if(confirm(sMsg))
        return true;
    else
        return false
}

// ¹ÙÀÌÆ® °è»ê

function CalByte(object)
{
	var aquery = object.value;
	var tmpStr;
	var temp=0;
	var onechar;
	var tcount = 0;
	var limit;

	tmpStr = new String(aquery);
	temp = tmpStr.length;

	for (k=0;k<temp;k++)
	{
		onechar = tmpStr.charAt(k);
		if (escape(onechar) =='%0D')
		{ 
		}
		else if(escape(onechar).length > 4)
		{ 
			tcount += 2; 
		}
		else
		{ 
			tcount++; 
		}
	}
			
	
	return tcount;
}

// ÆË¾÷Ã¢ ¿ÀÇÂ
function OpenPop(sUrl, iWidth, iHeight, iTop , iLeft)
{   
	window.open(sUrl, "OpenForm", "scrollbars=no,toolbar=no,location=no,directories=no,statusbar=no,width="+iWidth +",height=" + iHeight + ",top=" +iTop +",left=" + iLeft + ",resizable=no,menubar=no");
}

// ÀÌ¹ÌÁö ¸®»çÀÌÁî
function imgThumbResize(img)
{
    if(img.width > img.height)
        img.width = 100;
    else
        img.height= 68;
}


//ÀÌ¹ÌÁö »çÀÌÁî ÀçÁ¶Á¤
function imgOpen(img)
{    
    var sUrl = img.src.split('=');
    var b = sUrl[1];
    if(sUrl.length == 2)
        window.open("http://file.walkpc.com/ImageView/frmImageBigView.aspx?kind=1&imgPath="+sUrl[1],'img','left=10,top=10,width=464,height=450,scrollbar=no,status=no');
    else
        window.open("http://file.walkpc.com/ImageView/frmImageBigView.aspx?kind=2&imgPath="+img.src,'img','left=10,top=10,width=464,height=450,scrollbar=no,status=no');
}

// ÀÌ¹ÌÁö ¸®»çÀÌÁî
function imgResize(img)
{
    if (img.width > 120)
        img.width = 120;
}

