function openDialog(id,type,addnew){
		window.showModalDialog("DialogForm.aspx?url="+escape("CategoryEdit.aspx?id="+id+"&type="+type+"&addnew="+addnew));
}
function openImageDialog(url){
		window.showModalDialog("DialogForm.aspx?url="+escape(url));
}
function getElem(id){
		return (document.getElementById) ? document.getElementById(id) : document.all[id];
}
function GetChecked()
	{
		var objs = document.getElementsByName("check");
		var result = "";
		for(var i =0;i<objs.length;i++)
		{
			if(objs[i].checked)result+=objs[i].value+",";
		}
		if (result=="") 
		{
			alert("请先选中项!")
			return;
		}
		else
		{
			return result;
		}
	}
function ChangeChecked(param)
	{
		var objs = document.getElementsByName("check");
		if(objs==null) {
			alert("请先选中项!");
			return;
		}
		for(var i =0;i<objs.length;i++)
		{
			if(objs[i].checked)//result+=objs[i].value+",";
			{
				var changeOBJ = getElem(param+objs[i].value);
				if(changeOBJ!=null)
				{
					if(changeOBJ.innerHTML=="已审核")
						changeOBJ.innerHTML='<font color="blue" >未审核</font>';
					else
						changeOBJ.innerHTML="已审核";
				}
			}
		}


	}