
function check_my_form8888(aForm)
{
	var theEditLength=aForm.EDIT_ID.length;
	var myEidDo=""
	if (theEditLength>=1){
	if (aForm.EDIT_ID[theEditLength-1].checked==true)	myEidDo=aForm.EDIT_ID[theEditLength-1].value;
	}
	if (myEidDo!=""){
		var myDo=myEidDo.substr(0,3);
		if ( myDo== "DEL")	return (confirm("是否执行删除?"));
	}
	return check_my_form(aForm);
}

//后台新闻组件必备
function loadForm8888()
{
  editor.HtmlEdit.document.body.innerHTML=document.myform.Content.value;
  return true
}

//后台列表搜索
function check_my_search8888(aForm)
{
	if (aForm.theSearchCol.value != "" && aForm.SearchKey.value == "")
	{
		alert("请输入关键字!");
		aForm.SearchKey.focus();
	return (false);
	}else{
	return (true);
	}	
}

//后台列表操作确认
function check_my_list8888(aForm)
{
	return (confirm('确定执行本次操作吗？'));
}

//打开规定大小的窗口
function openJsWindow(abc,widtha,heighta)
{
	window.open(abc, "_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+widtha+",height="+heighta);
}

//打开预定义大小的窗口
function openLinkJsWindow(abc)
{
	window.open(abc, "_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=520,height=220");
}

//打开新闻窗口
function openLinkJsWindowNews(abcLink)
{
	window.open(abcLink, "_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=480");
}

//打开大图窗口(数据库&ID)
function funShowBigPic(tPath,tID)
{
	window.open(tPath+"thePicShow.asp?ID="+tID, "_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=10,height=10,left=200,top=20");
}

//打开大图窗口(文件名称)
function jsfunShowBigPic(tPath)
{
	window.open(tPath, "_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=10,height=10,left=200,top=20");
}

//组件换色
function overBackColor(op,color){
	var i=op.length;
	var j
	for(j=0;j<i;j++)
	{
	op[j].bgColor=color
	}
}

//CHECKED组件全选
function CheckDelAll(tCheckBtn)
{
	var allNul=tCheckBtn.length
	if (allNul==undefined){
	var e2=tCheckBtn;
	e2.checked=!e2.checked;
	return;
	}
	var firstBtn=tCheckBtn[0].checked
	for (var i=0;i<allNul;i++){
	var e=tCheckBtn[i];
	if(firstBtn==true){
		e.checked=false;
	}else{
		e.checked=true;
	}
	}
}

//行换色设置1
function CheckToChange(tCheckBtnCheck,tOver,tVar1)
{
	if(tCheckBtnCheck==true){
		tOver.value=tVar1;
	}else{
		tOver.value="#FFFFFF";
	}	
}

//行换色设置2
function menu_over(obj){
 	obj.style.backgroundColor='#e8f2f8';
	obj.style.color='';
	obj.style.cursor='';

}

//行换色设置3
function menu_out(obj){
	obj.style.backgroundColor='#ffffff';
	obj.style.color='';
	obj.style.cursor='';

}

//换图片
function funSwitchPic(objName,tPicName)
{
	objName.src=tPicName;
}
