//------------------------------------------------------------------
// JwEditor 1 (ÆûÀÌ¸§, ¼­¹ö¸í, ±¸ºÐ Type)
//------------------------------------------------------------------
function ActionJwEditorBowall(arg1,arg2,arg3,arg4){ 
	
	var f = eval("document.all."+arg1+";");

	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 ActionJwEditorBowall2(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;
    }
}
function ActionJwEditor_New_Bowall(arg1,arg2,arg3,arg4){ 
	
	var f = eval("document.all."+arg1+";");

	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 ActionJwEditor_nBowall(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;
    }
}

function ActionJwEditor_Event(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;
    }
}

function ActionJwEditor_Event2(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_Notice.value = f.jweditor.BodyHtml;
	f.vc_Notice.value = f.jweditor.AllText;

	if (f.jweditor.IsInput == false || f.vc_Notice.value==""){
        	alert("º»¹® ³»¿ëÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
        	return false;
    }
}

function ActionJwEditor_Event_Img(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){
        	alert("º»¹® ³»¿ëÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
        	return false;
    }
}
