///by leonwoo


function openArticle(txtId){
//status=no,titlebar=no,toolbar=no,menubar=no,location=no
 var sfeature = "";
 //"width=750,height=550,status=no,titlebar=yes,toolbar=yes,menubar=yes,location=yes";
 var url="/UI/aic/pages/show_article4.jsp?txtId="+txtId
 window.open(url,"_blank",sfeature)
}

//查询企业流程状态
function flowQuery(){
	var qymc=document.all.qymc.value;
	var radioObj=document.all.radiobutton;
	var radioVal="";
	for(var i=0;i<radioObj.length;i++){
		if(radioObj[i].checked){
			radioVal=radioObj[i].value;
			//alert(radioVal);
		}
	}
	
	if(qymc==""){
		alert("请输入你想要查询的关键字！");
		return false;
	}
    //提交form形式
	//document.all.flowQuery.action="/flowQuery";
	//document.all.flowQuery.submit();
	
	//打开servlet输出
	var win=window.open('/flowQuery?qymc='+qymc+'&radiobutton='+radioVal, '_blank','resizable=yes,scrollbars=yes,menubar=no,toolbar=no,width=600,height=175'); 
	win.focus();
}

function showFile(fileId){
	openArticle(fileId);
	return;
    var sfeature = "";//"width=750,height=550,status=no,titlebar=no,toolbar=no,menubar=no,location=no";
	var spath = "/readFile?fileId="+fileId;
   	var para = "_blank";

   	window.open(spath,"_blank",sfeature);
}


function showFile2(fileId){
	openArticle(fileId);
	return;
    var sfeature = "";//"width=750,height=550,status=no,titlebar=no,toolbar=no,menubar=no,location=no";
	var spath = "/UI/aic/pages/show_article2.jsp?fileId="+fileId;
   	var para = "_blank";

   	window.open(spath,"_blank",sfeature);
}


function func_corpList(){
	   
/*      var  tmpHTML = ExecServerPrgm("/BI/util/AicSqlSelectJsp.jsp","POST");
	//alert(tmpHTML);
	var divCop=document.getElementById("corpList");
	divCop.innerHTML=tmpHTML;
*/
}




