function WorkScrapWin(theURL) { window.open(theURL,'scrap','width=420,height=230,scrollbars=0,resizable=no,status=no,toolbar=no') }
function NewWindow(theURL) { window.open(theURL,'name','width=670,height=600,scrollbars=2,resizable=yes,status=no,toolbar=no') }
function CompanyStudio(theURL) { window.open(theURL,'comstudio','width=745,height=710,scrollbars=2,resizable=yes,status=yes,toolbar=yes,location=yes') }
function openimageWin(theURL) {
	var winl = 10;
	var wint = 10;
	window.open(theURL,'forchromwin','width=1,height=1,top='+wint+',left='+winl+',scrollbars=0,resizable=no,status=no,toolbar=no,location=no');
}
function Folderwin(theURL) { window.open(theURL,'edit','width=420,height=230,scrollbars=0,resizable=no,status=no,toolbar=no') }
function ChangeImage(aaa,bbb) {
	var imgaaa="document."+aaa;
	eval(imgaaa).src="./img/"+bbb;
}
function ChangeImage2(aaa,bbb,cccc) {
	var imgaaa=cccc+"."+aaa;
	eval(imgaaa).src="./img/"+bbb;
}
function Manage_win(theURL) { window.open(theURL,'edit','width=420,height=230,scrollbars=0,resizable=no,status=no,toolbar=no') }
function Addfolder() {
	document.article.submit();
}
function sb_formresize_down(obj) {
	if(obj.rows<30) { obj.rows += 3; }
	else { alert('´õÀÌ»ó È®ÀåÇÏ½Ç ¼ö ¾ø½À´Ï´Ù'); }
}
function sb_formresize_up(obj) {
	if(obj.rows<4) { alert('´õÀÌ»ó ÁÙÀÏ ¼ö ¾ø½À´Ï´Ù.'); }
	else { obj.rows -= 3; }
}
function wonbonView(imgwidth,imgheight,theURL) {
	var screenwidth=0;
	var screenheight=0;
	var scrolmode="";
	var openwidth=0;
	var openheight=0;
	var scrollwidth=30;
	var bottomheight=40;
	var rightwidth=10;
	screenwidth=screen.width - scrollwidth - rightwidth;
	screenheight=screen.height - scrollwidth - bottomheight;
	if ( imgwidth >  screenwidth && imgheight > screenheight) {
		openwidth= screenwidth + scrollwidth - rightwidth;  openheight= screenheight + scrollwidth - bottomheight; scrolmode="yes";
	}
	else if ( imgwidth >  screenwidth && imgheight <= screenheight ) {
		openwidth= screenwidth+ scrollwidth - rightwidth;  openheight= imgheight+ scrollwidth - bottomheight; scrolmode="yes";
	}
	else if ( imgwidth <=  screenwidth && imgheight > screenheight ) {
		openwidth= imgwidth+ scrollwidth - rightwidth;  openheight= screenheight+ scrollwidth - bottomheight; scrolmode="yes";
	}
	else {
		openwidth= imgwidth+ scrollwidth - rightwidth;  openheight= imgheight; scrolmode="yes";
		//openwidth= imgwidth;  openheight= imgheight; scrolmode="yes";
	}

	var winl = 0;
	var wint = 0;
	window.open(theURL,'wonbonimage','width='+openwidth+',height='+openheight+',top='+wint+',left='+winl+',scrollbars='+scrolmode+',resizable=yes,status=no,toolbar=no,location=no');
}
function ModifyViewShortComment(seq) {
    document.getElementById("plainCmt_" + seq).style.display="none";
    //document.getElementById("plainCmtEmo_" + seq).style.display="none";
    document.getElementById("editCmt_" + seq).style.display="inline";
    //document.getElementById("editCmtEmo_" + seq).style.display="inline";
}
function ModifyUnViewShortComment(seq) {
    document.getElementById("plainCmt_" + seq).style.display="inline";
    //document.getElementById("plainCmtEmo_" + seq).style.display="none";
    document.getElementById("editCmt_" + seq).style.display="none";
    //document.getElementById("editCmtEmo_" + seq).style.display="inline";
}
function ModifyShortComment( seq ) {
		
	document.replyedit.editComment.value = eval("document.replyedit.comment_"+seq).value;
	var resultComment = document.replyedit.editComment.value.split(" ");
	if ( null == resultComment || document.replyedit.editComment.value.length + 1 == resultComment.length ) {
		alert( "³»¿ëÀ» ÀÔ·ÂÇÏ½Å µÚ µî·Ï¹öÆ°À» ´­·¯ÁÖ¼¼¿ä." );
		eval("document.replyedit.comment_"+seq).focus();
		return flase;
	}
	document.replyedit.editComno.value = eval("document.replyedit.replNo_"+seq).value;
	document.replyedit.submit();
	return;
}
function Hubomenulayer0(Layername,a) {
	var varlayer="";
	var imgname="";
	var imagelayername0="";
	var imagelayername1="";
	for (i=0;i<3;i++) {
		varlayer="hubolayer"+i;
		if (Layername==varlayer) {  document.getElementById(varlayer).style.display="inline"; }
		else {  document.getElementById(varlayer).style.display="none"; }
	}
	for (i=0;i<3 ;i++ ) {
		imagelayername0="huboimglayer"+i+"1";
		imagelayername1="huboimglayer"+i+"0";
		//imgname="huboimglaye"+i;
		//if(a==i) { document.getElementById(imgname).src="/img/huboimgtab_"+i+"1.gif"; }
		//else { document.getElementById(imgname).src="/img/huboimgtab_"+i+"0.gif"; }
		if(a==i) { document.getElementById(imagelayername0).style.display="inline"; document.getElementById(imagelayername1).style.display="none";}
		else { document.getElementById(imagelayername0).style.display="none"; document.getElementById(imagelayername1).style.display="inline"; }
	}
}
function Hubomenulayer1(Layername,b) {
	var varlayer="";
	var imgname="";
	var imagelayername0="";
	var imagelayername1="";
	for (j=3;j<6;j++) {
		varlayer="hubolayer"+j;
		if (Layername==varlayer) {  document.getElementById(varlayer).style.display="inline"; }
		else {  document.getElementById(varlayer).style.display="none"; }
	}
	for (j=3;j<6 ;j++ ) {
		imagelayername0="huboimglayer"+j+"1";
		imagelayername1="huboimglayer"+j+"0";
		//imgname="huboimgname"+j;
		//if(b==j) { document.getElementById(imgname).src="/img/huboimgtab_"+j+"1.gif"; }
		//else { document.getElementById(imgname).src="/img/huboimgtab_"+j+"0.gif"; }
		if(b==j) { document.getElementById(imagelayername0).style.display="inline"; document.getElementById(imagelayername1).style.display="none";}
		else { document.getElementById(imagelayername0).style.display="none"; document.getElementById(imagelayername1).style.display="inline"; }
	}
}
function Hubomenulayer00(Layername,a) {
	var varlayer="";
	var imgname="";
	var imagelayername0="";
	var imagelayername1="";
	for (i=0;i<6;i++) {
		varlayer="hubolayer"+i;
		if (Layername==varlayer) {  document.getElementById(varlayer).style.display="inline"; }
		else {  document.getElementById(varlayer).style.display="none"; }
	}
	for (i=0;i<6 ;i++ ) {
		imagelayername0="huboimglayer"+i+"1";
		imagelayername1="huboimglayer"+i+"0";
		//imgname="huboimglaye"+i;
		//if(a==i) { document.getElementById(imgname).src="/img/huboimgtab_"+i+"1.gif"; }
		//else { document.getElementById(imgname).src="/img/huboimgtab_"+i+"0.gif"; }
		if(a==i) { document.getElementById(imagelayername0).style.display="inline"; document.getElementById(imagelayername1).style.display="none";}
		else { document.getElementById(imagelayername0).style.display="none"; document.getElementById(imagelayername1).style.display="inline"; }
	}
}