// png ÆÄÀÏ Åõ¸í Ã³¸® 
function setPng24(obj)
{
    obj.width=obj.height=1;
    obj.className=obj.className.replace(/\bpng24\b/i,'');
    obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
    obj.src='';
    return '';
}



//ÆË¾÷°¡¿îµ¥À§Ä¡
function WindowOpenCenter(Url, popName, popwidth, popheight, scroll){
	var LeftPosition = (screen.width) ? (screen.width-popwidth)/2 : 0;
	var TopPosition = (screen.height) ? (screen.height-popheight)/2 : 0;
	var settings = 'height='+popheight+',width='+popwidth+',top='+TopPosition+',left='+LeftPosition+',status=no,toolbar=no,menubar=no,location=no,fullscreen=no,resizable=no,scrollbars='+scroll;
	win = window.open(Url,popName,settings)
}

//ÆË¾÷ ¿ÞÂÊÀ§...
function WindowOpen(Url, popName, popwidth, popheight, scroll)
{
	var height = screen.height;
	var width = screen.width;
	var left = 0;
	var top = 0;
	window.open(Url, popName, "width="+popwidth+",height="+popheight+",scrollbars="+scroll+",toolbar=no,left="+left+",top="+top+"")
}

//À§Ä¡¼±ÅÃ
function WindowOpen2(Url, popName, popwidth, popheight, left, top, scroll)
{
	var height = screen.height;
	var width = screen.width;
	window.open(Url, popName, "width="+popwidth+",height="+popheight+",scrollbars="+scroll+",toolbar=no,left="+parseInt(left)+",top="+parseInt(top)+"")
}

//ÆÄ¶ó¸ÞÅÍ°ªº¸´Ù ÀÌ¹ÌÁö Width°ªÀÌ Å©¸é ¸®½ÎÀÌÁî...
function editorImageResize(maxWidth)
{
	var target = document.getElementById("resizeEditorImage[]");
	var	oldWidth = target.width;
	var	oldHeight = target.height;
	if(oldWidth > maxWidth){
		newHeight = parseFloat(oldWidth / oldHeight);
		target.width = maxWidth;
		target.height = parseInt(maxWidth / newHeight);			
	}
}



function nextTab(val, max, nextName, obj)
{
	var frm = eval("document." + obj);
	if(val.length == max){
		eval("frm." + nextName).focus();
	}
}

