//------------------------------------------------------------------
// JwEditor 1 (ÆûÀÌ¸§, ¼­¹ö¸í, ±¸ºÐ Type)
//------------------------------------------------------------------
function ActionJwEditorAcademy(arg1,arg2,arg3,arg4){ 

	var f = eval("document.all."+arg1+";");

	if(arg3!="goods"){
		if (f.jweditor.IsInput == false || f.jweditor.AllText==""){
			alert("º»¹® ³»¿ëÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
			return false;
		}
	}

	if (arg4 == "" || arg4 == null) {
		//ÀÌ¹ÌÁö Àü¼Û
		f.jweditor.ImgFileReadUrl = "http://"+arg2+".campuslife.co.kr:80"; 



		if (f.jweditor.HttpSendImg("/Lib/Editor/Upload.asp?vc_gubun=image&vc_Type="+arg3) < 0)
		{
			alert(f.jweditor.GetHTTPErrText());
			return false;
		}
		//ÇÃ·¡½Ã, ¹Ìµð¾î Àü¼Û
		f.jweditor.MFFileReadUrl = "http://"+arg2+".campuslife.co.kr:80"; 
		if (f.jweditor.HttpSendMediaFlash("/Lib/Editor/Upload.asp?vc_gubun=media&vc_Type="+arg3) < 0)
		{
			alert(f.jweditor.GetHTTPErrText());
			return false;
		}	

		f.tx_Contents.value = f.jweditor.BodyHtml;
		f.vc_Contents.value = f.jweditor.AllText;

		return true;
	}
	else {
	
		if (confirm(arg4+" ÇÏ½Ã°Ú½À´Ï±î?")) {

			//ÀÌ¹ÌÁö Àü¼Û
			f.jweditor.ImgFileReadUrl = "http://"+arg2+".campuslife.co.kr:80"; 
			if (f.jweditor.HttpSendImg("/Lib/Editor/Upload.asp?vc_gubun=image&vc_Type="+arg3) < 0)
			{
				alert(f.jweditor.GetHTTPErrText());
				return false;
			}
			//ÇÃ·¡½Ã, ¹Ìµð¾î Àü¼Û
			f.jweditor.MFFileReadUrl = "http://"+arg2+".campuslife.co.kr:80"; 
			if (f.jweditor.HttpSendMediaFlash("/Lib/Editor/Upload.asp?vc_gubun=media&vc_Type="+arg3) < 0)
			{
				alert(f.jweditor.GetHTTPErrText());
				return false;
			}	

			f.tx_Contents.value = f.jweditor.BodyHtml;
			f.vc_Contents.value = f.jweditor.AllText;

			return true;
		}
	}
}
function ActionJwEditorNS(arg1,arg2,arg3){ 

	var f = eval("document.all."+arg1+";");

	//ÀÌ¹ÌÁö Àü¼Û
	f.jweditor.ImgFileReadUrl = "http://"+arg2+".campuslife.co.kr:80"; 
	if (f.jweditor.HttpSendImg("/Lib/Editor/Upload.asp?vc_gubun=image&vc_Type="+arg3) < 0)
	{
		alert(f.jweditor.GetHTTPErrText());
		return false;
	}
	//ÇÃ·¡½Ã, ¹Ìµð¾î Àü¼Û
	f.jweditor.MFFileReadUrl = "http://"+arg2+".campuslife.co.kr:80"; 
	if (f.jweditor.HttpSendMediaFlash("/Lib/Editor/Upload.asp?vc_gubun=media&vc_Type="+arg3) < 0)
	{
		alert(f.jweditor.GetHTTPErrText());
		return false;
	}				

	f.tx_Contents.value = f.jweditor.GetCharSetBodyHtml(); 
	f.vc_Contents.value = f.jweditor.AllText;

	if (f.jweditor.IsInput == false || f.vc_Contents.value==""){
        	alert("º»¹® ³»¿ëÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
        	return false;
    }
}
//------------------------------------------------------------------
// JwEditor 1 (ÆûÀÌ¸§, ¼­¹ö¸í, ±¸ºÐ Type)
//------------------------------------------------------------------
function ActionJwEditor1(arg1,arg2,arg3){ 
	
	var f = eval("document.all."+arg1+";");

	//ÀÌ¹ÌÁö Àü¼Û
	f.jweditor.ImgFileReadUrl = "http://"+arg2+".campuslife.co.kr:80"; 
	if (f.jweditor.HttpSendImg("/Lib/Editor/Upload.asp?vc_gubun=image&vc_Type="+arg3) < 0)
	{
		alert(f.jweditor.GetHTTPErrText());
		return false;
	}
	//ÇÃ·¡½Ã, ¹Ìµð¾î Àü¼Û
	f.jweditor.MFFileReadUrl = "http://"+arg2+".campuslife.co.kr:80"; 
	if (f.jweditor.HttpSendMediaFlash("/Lib/Editor/Upload.asp?vc_gubun=media&vc_Type="+arg3) < 0)
	{
		alert(f.jweditor.GetHTTPErrText());
		return false;
	}				

	f.tx_Contents.value = f.jweditor.BodyHtml;
	f.vc_Contents.value = f.jweditor.AllText;

	if (f.jweditor.IsInput == false || f.vc_Contents.value==""){
        	alert("º»¹® ³»¿ëÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
        	return false;
    }
}
//--------------------------------------------------------------------------------------------------------------------------------
// 2Â÷ ¾ÆÄ«µ¥¹Ì ÇÁ¶óÀÌ½º °³Æí 
//--------------------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------
// JwEditor 1 (ÆûÀÌ¸§, ¼­¹ö¸í, ±¸ºÐ Type)
//------------------------------------------------------------------
function ActionJwEditorAP(arg1,arg2,arg3){ 
	
	var f = eval("document.all."+arg1+";");

	//ÀÌ¹ÌÁö Àü¼Û
	f.jweditor.ImgFileReadUrl = "http://"+arg2+".campuslife.co.kr:80"; 
	if (f.jweditor.HttpSendImg("/Lib/Editor/UploadAP.asp?vc_gubun=image&vc_Type="+arg3) < 0)
	{
		alert(f.jweditor.GetHTTPErrText());
		return false;
	}
	//ÇÃ·¡½Ã, ¹Ìµð¾î Àü¼Û
	f.jweditor.MFFileReadUrl = "http://"+arg2+".campuslife.co.kr:80"; 
	if (f.jweditor.HttpSendMediaFlash("/Lib/Editor/UploadAP.asp?vc_gubun=media&vc_Type="+arg3) < 0)
	{
		alert(f.jweditor.GetHTTPErrText());
		return false;
	}				

	f.tx_Contents.value = f.jweditor.BodyHtml;
	f.vc_Contents.value = f.jweditor.AllText;

	if (f.jweditor.IsInput == false || f.vc_Contents.value==""){
        	alert("º»¹® ³»¿ëÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
        	return false;
    }
}
function ActionJwEditorAP1(arg1,arg2,arg3){ 
	
	var f = eval("document.all."+arg1+";");

	//ÀÌ¹ÌÁö Àü¼Û
	f.jweditor1.ImgFileReadUrl = "http://"+arg2+".campuslife.co.kr:80"; 
	if (f.jweditor1.HttpSendImg("/Lib/Editor/UploadAP.asp?vc_gubun=image&vc_Type="+arg3) < 0)
	{
		alert(f.jweditor1.GetHTTPErrText());
		return false;
	}
	//ÇÃ·¡½Ã, ¹Ìµð¾î Àü¼Û
	f.jweditor1.MFFileReadUrl = "http://"+arg2+".campuslife.co.kr:80"; 
	if (f.jweditor1.HttpSendMediaFlash("/Lib/Editor/UploadAP.asp?vc_gubun=media&vc_Type="+arg3) < 0)
	{
		alert(f.jweditor1.GetHTTPErrText());
		return false;
	}				

	f.tx_TopContents.value = f.jweditor1.BodyHtml;
	f.vc_TopContents.value = f.jweditor1.AllText;

	if (f.jweditor1.IsInput == false || f.vc_TopContents.value==""){
        	alert("º»¹® ³»¿ëÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
        	return false;
    }
}
function ActionJwEditorAP2(arg1,arg2,arg3){ 
	
	var f = eval("document.all."+arg1+";");

	//ÀÌ¹ÌÁö Àü¼Û
	f.jweditor2.ImgFileReadUrl = "http://"+arg2+".campuslife.co.kr:80"; 
	if (f.jweditor2.HttpSendImg("/Lib/Editor/UploadAP.asp?vc_gubun=image&vc_Type="+arg3) < 0)
	{
		alert(f.jweditor2.GetHTTPErrText());
		return false;
	}
	//ÇÃ·¡½Ã, ¹Ìµð¾î Àü¼Û
	f.jweditor2.MFFileReadUrl = "http://"+arg2+".campuslife.co.kr:80"; 
	if (f.jweditor2.HttpSendMediaFlash("/Lib/Editor/UploadAP.asp?vc_gubun=media&vc_Type="+arg3) < 0)
	{
		alert(f.jweditor2.GetHTTPErrText());
		return false;
	}				

	f.tx_Contents.value = f.jweditor2.BodyHtml;
	f.vc_Contents.value = f.jweditor2.AllText;

	if (f.jweditor2.IsInput == false || f.vc_Contents.value==""){
        	alert("º»¹® ³»¿ëÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
        	return false;
    }
}
function ActionJwEditorAP3(arg1,arg2,arg3){ 
	
	var f = eval("document.all."+arg1+";");

	//ÀÌ¹ÌÁö Àü¼Û
	f.jweditor3.ImgFileReadUrl = "http://"+arg2+".campuslife.co.kr:80"; 
	if (f.jweditor3.HttpSendImg("/Lib/Editor/UploadAP.asp?vc_gubun=image&vc_Type="+arg3) < 0)
	{
		alert(f.jweditor3.GetHTTPErrText());
		return false;
	}
	//ÇÃ·¡½Ã, ¹Ìµð¾î Àü¼Û
	f.jweditor3.MFFileReadUrl = "http://"+arg2+".campuslife.co.kr:80"; 
	if (f.jweditor3.HttpSendMediaFlash("/Lib/Editor/UploadAP.asp?vc_gubun=media&vc_Type="+arg3) < 0)
	{
		alert(f.jweditor3.GetHTTPErrText());
		return false;
	}				

	f.tx_FooterContents.value = f.jweditor3.BodyHtml;
	f.vc_FooterContents.value = f.jweditor3.AllText;

	if (f.jweditor3.IsInput == false || f.vc_FooterContents.value==""){
        	alert("º»¹® ³»¿ëÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
        	return false;
    }
}