function uploadSel() 
{
	var thePostValue = "UPLOADMORE$$";
    var csh = window.showModalDialog("/admin/news/dlg_ne_upload.jsp","","status:no;dialogWidth:500px;dialogHeight:380px;")
    if (csh[0])
	{
		thePostValue = thePostValue + csh[1] + "$$";
		var csh = window['SELECTBOX'].length;
		var theUpNe = "";
		for (var i = 0; i < csh - 1 ; i++)
		{
			if (window['SELECTBOX'][i].checked)
			{
				theUpNe = theUpNe + window['SELECTBOX'][i].value + ";";
			}
		}
		if (theUpNe == "")
		{
			alert("您尚未选择项目");
		}else
		{
			YC_FUN.YC_POST.value = thePostValue + theUpNe;
			YC_FUN.submit();
		}
	}
}
function delSel() 
{
	var thePostValue = "DELMORE$$";
		var csh = window['SELECTBOX'].length;
		var theUpNe = "";
		for (var i = 0; i < csh - 1 ; i++)
		{
			if (window['SELECTBOX'][i].checked)
			{
				theUpNe = theUpNe + window['SELECTBOX'][i].value + ";";
			}
		}
		if (theUpNe == "")
		{
			alert("您尚未选择项目");
		}else
		{
			YC_FUN.YC_POST.value = thePostValue + theUpNe;
			YC_FUN.submit();
		}
}
function seledtSingel() 
{
	var theSelAllMark = "Y";
    var csh = window['SELECTBOX'].length;
	for (var i = 0; i < csh ; i++)
	{
		if (!window['SELECTBOX'][i].checked)
		{
			theSelAllMark = "N";
			i = csh;
		}
	}
	if (theSelAllMark == 'Y')
	{
		window['SELECTALL'].checked = true;
	}else
	{
		window['SELECTALL'].checked = false;
	}
}
function ycSch() 
{
    var csh = window.showModalDialog("dlg_search.jsp","","status:no;dialogWidth:500px;dialogHeight:380px;")
    if (csh[0])
	{
		YC_FUN.YC_POST.value = "查询$$" +csh[1];
		YC_FUN.submit();
	}
}
function selectAll() 
{
    var csh = window['SELECTBOX'].length;
	if (window['SELECTALL'].checked)
	{
		for (var i = 0; i < csh ; i++)
		{
			 window['SELECTBOX'][i].checked = true;
		}
	}else
	{
		for (var i = 0; i < csh ; i++)
		{
			 window['SELECTBOX'][i].checked = false;
		}
	}
}
function ycall()
{
	YC_FUN.YC_POST.value = "全部$$";
	YC_FUN.PAGE_NUM_I.value = "1";
	YC_FUN.submit();
}
function go_page()
{
	YC_FUN.PAGE_NUM_I.value = page_num.value;
	YC_FUN.YC_POST.value = "go_page$$"+ page_num.value+"$$";
	YC_FUN.submit();
}
function changeSort()
{
	if (YC_FUN.SORTDESC.value == ' DESC ')
	{
		YC_FUN.SORTDESC.value = ' ';
	}else if (YC_FUN.SORTDESC.value == ' ')
	{
		YC_FUN.SORTDESC.value = ' DESC ';
	}
	YC_FUN.submit();
}
function orderBy(fileName)
{
	YC_FUN.OEDERBY.value = fileName;
	YC_FUN.submit();
}
function newWin(funname,fun,ARRT)
{
	var str = funname + "$$";
	var csh = showModalDialog('/admin/wk/newWin.jsp?APPURL='+fun+'&'+ARRT, null, 'dialogWidth: 740px; dialogHeight: 550px; center: yes; resizable: no; scroll: auto; status: no;');
	if (csh != null)
	{
		if (csh[0])
		{
			str = str + csh[1]
			YC_FUN.YC_POST.value = str;
			YC_FUN.submit();
		}
	}
}
function newWinNoRet(fun,ARRT)
{
	var str = "toNextRole$$";
	var csh = showModalDialog('/admin/wk/newWin.jsp?APPURL='+fun+'&'+ARRT, null, 'dialogWidth: 740px; dialogHeight: 550px; center: yes; resizable: no; scroll: auto; status: no;');
}
function ycback(theUrl)
{
	document.YC_FUN.action = theUrl;
	YC_FUN.submit();
}
function forDataTime(idIn)
{
	var arr = "";
	arr = showModalDialog("/pub/forDateTime.jsp", "", "dialogWidth:18.5em; dialogHeight:17.5em; status:0");
	if (arr != "")
	{
		window[idIn].value = arr;
	}
}
function forImgUrl(idIn)
{
	var arr = "";
	arr = showModalDialog('/pub/editor/sImg.html', null, 'dialogWidth: 520px; dialogHeight: 330px; center: yes; resizable: no; scroll: no; status: no;');
	window[idIn].value = arr;
}

