case_list = "";
case_name = "";
case_code =" ";
function chg(v){
  	case_list =v;
  	var strArr = v.split("_");
  	case_code= strArr[0];
	 case_name = strArr[1];
	cc.innerHTML="<FONT color=red >当前的案由名称："+case_name+"</FONT>"
  	
}
function ajaxSubmit(v)
{	
	 	 bl = confirm("确认入库？");
	 	 if(!bl){
	 	 	 return;
	 	 	}
   
	//创建XMLHttpRequest对象
	var xmlhttp;
	try{
		xmlhttp=new XMLHttpRequest();
	}catch(e){
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	//创建请求结果处理程序
	xmlhttp.onreadystatechange=function()
	{
		if (4==xmlhttp.readyState)
		{
			if (200==xmlhttp.status)
			{
				//var info=document.getElementById("info");		
				//info.innerHTML = "";
				var ss=xmlhttp.responseText;					
				//addToList(date);				
				alert(ss);									
				//show(document.getElementById('random'));
			}
			else
			{
				alert("error");
			}
		}
	}
	//打开连接，true表示异步提交
	xmlhttp.open("post", "/casesearch", true);
	//当方法为post时需要如下设置http头
	xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded');
	//发送数据   
	xmlhttp.send("txt="+escape(v)+ "&c="+escape(case_list));				
}


function ajaxSubmit2(v,v2)
{	
	 	 bl = confirm("确认入库？");
	 	 if(!bl){
	 	 	 return;
	 	 	}
   
	//创建XMLHttpRequest对象
	var xmlhttp;
	try{
		xmlhttp=new XMLHttpRequest();
	}catch(e){
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	//创建请求结果处理程序
	xmlhttp.onreadystatechange=function()
	{
		if (4==xmlhttp.readyState)
		{
			if (200==xmlhttp.status)
			{
				//var info=document.getElementById("info");		
				//info.innerHTML = "";
				var ss=xmlhttp.responseText;					
				//addToList(date);				
				alert(ss);									
				//show(document.getElementById('random'));
			}
			else
			{
				alert("error");
			}
		}
	}
	//打开连接，true表示异步提交
	xmlhttp.open("post", "/casesearch", true);
	//当方法为post时需要如下设置http头
	xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded');
	//发送数据   
	xmlhttp.send("txt="+escape(v)+ "&action="+v2+"&c="+escape(case_list));				
}
