/*
 * ============================================================
 *
 * Copyright (C) 2003 Shenzhen Kejian Info-Tech CO.,Ltd.
 * ------------------------------------------------------------
 * CVS $Revision: 1.82 $
 * CVS $Date: 2006/04/26 09:43:56 $ 
 * CVS $Author: zhangw $
 * ------------------------------------------------------------
 * 修改记录：
 *
 * ------------------------------------------------------------
 * 页面描述：通用JS
 * ============================================================
 */
var jsdwmc_zl_mm = "zlfs0760100"; //中山市中丽环境服务有限公司密码
var jsdwmc_spgyy_mm = "hpgyy0760800"; //中山市黄圃镇食品工业园污水处理有限公司密码
var jsdwmc_shgy_mm = "shfy076050"; //中山水化工业废液回收处理有限公司密码
var jsdwmc_blys_mm = "blys0760360"; //中山市宝绿印刷废水处理有限公司密码
var jsdwmc_jshb_mm = "jshb0760300"; //中山市佳顺环保服务有限公司密码

var pageCount=0;

var closed=true;

var sendAction="";

var cancelUrl="";

function setSendAction(actionName){
	sendAction=actionName;
}

function setCancelUrl(url){
	cancelUrl=url;
}

function getIEVersion() {
	with(navigator)
	{
		if(appName == "Microsoft Internet Explorer")
		{
			var n = appVersion.indexOf("MSIE ");
			if (n != -1)
			{
				return parseInt(appVersion.substr(n+5, 1))
			}
		}
	}
	return -1;
}

//自动调整iframe的高度
function adjustIFrameHeight(obj) {
	if (getIEVersion() > 5)
	{
		if (obj.document.body.scrollHeight != 0)
		{
			obj.frameElement.height=obj.document.body.scrollHeight+'px';
		}
	}
}




//函数名：chk
//功能介绍：检查字符是否符合某种要求
//参数说明：type: 某种类型  str: 要检查的字符串 
//返回值：-1: 不合要求  0: 合要求
function chk(type,str){
	if(type=="Email"){
		return chkEmail(str);
	}
	if(type=="IDCard"){
		return chkIDCard(str);
	}
}

//函数名：chkspc 
//功能介绍：检查是否含有空格 
//参数说明：要检查的字符串 
//返回值：false：有空格 true：无空格
function chkspc(nr) 
{ 
	for (var i=0;i<nr.length;i++)
	{ 
	  tst = nr.substring(i,i+1) 
	  if (tst == " ")
	  {
		return false;
	  } 
	}
	return true;
}

//函数名:checkIDCard
//功能介绍:检查身份证号是否合法
//参数说明:需要检查的字符串
//返回: -1: 不合法   0:合法
function chkIDCard(str){
	return 0;
}

//函数名:chkEmail 
//功能介绍：检查是否为Email Address 
//参数说明：要检查的字符串 
//返回值：-1:不是   0:是 
function chkEmail(email) 
{ 
	invalidChars = " /;,:{}[]|*%$#!()`<>?"; 
	if (email == ""){ 
	  alert("您输入的Email不合法");
	  return -1; 
	}
	for (i=0; i< invalidChars.length; i++) { 
		badChar = invalidChars.charAt(i) 
		if (email.indexOf(badChar,0) > -1){ 
			alert("您输入的Email不合法");
			return -1; 
		} 
	} 
	//必须含有"@"
	atPos = email.indexOf("@",1) 
	if (atPos == -1){ 
		alert("您输入的Email不合法");
		return -1; 
	} 
	//只能含有一个"@"
	if (email.indexOf("@", atPos+1) != -1){ 
		alert("您输入的Email不合法");
		return -1; 
	} 
	//在"@"后必须至少有一个"."
	periodPos = email.indexOf(".",atPos) 
	if(periodPos == -1){ 
		alert("您输入的Email不合法");
		return -1; 
	} 
	//在"@"后的第一个"."之间至少有一个字符
	if ( atPos +2 > periodPos){ 
		alert("您输入的Email不合法");
		return -1; 
	} 
	if(periodPos+3>email.length){
		alert("您输入的Email不合法");
		return -1; 
	} 
	return 0; 
} 

//函数名:numbericOnly
//功能介绍:只允许输入数字
function numbericOnly()
{
	//keypress event
	if(window.event.keyCode >= 48 && window.event.keyCode <= 57){
		window.event.returnValue=true;
	}
	else{
		window.event.returnValue=false;
	}
	event.srcElement.style.imeMode='disabled';
	event.srcElement.onpaste=function(){return false;}; 	
}


//函数名:numOnly()
//功能:只允许文本输入框中键入的是否为数字或小数点,负数(用于金额或电话号码)
//参数:	
//返回:
function numOnly()
{

	event.srcElement.style.imeMode='disabled';
	event.srcElement.onpaste=function(){return false;}; 	

	if (event.srcElement.tagName == "INPUT")
	{
		if (event.srcElement.value.indexOf(".") == -1)
		{
			if (event.srcElement.value.indexOf("-") == -1)
			{
			 if ((event.keyCode >= 48 && event.keyCode <= 57) || event.keyCode == 46 || event.keyCode==45) 
			    window.event.returnValue=true;
			  else
       		  {
                window.event.returnValue=false;
       		  }
			}
			else
			{
			 if ((event.keyCode >= 48 && event.keyCode <= 57) || event.keyCode == 46) 
			    window.event.returnValue=true;
			  else
       		  {
                window.event.returnValue=false;
       		  }
       		}  
    	}
    	else 
		{
		  if (event.srcElement.value.indexOf("-") == -1)
		  {
		   if ((event.keyCode >= 48 && event.keyCode <= 57) || event.keyCode == 45) 
				window.event.returnValue=true;
			else
       			{
            			window.event.returnValue=false;
       			}
		  }
		  else
		  {
			if(event.keyCode >=48 && event.keyCode <=57)
				window.event.returnValue=true;
    			else
    			{
       				window.event.returnValue=false;
    			}
    	   }		
		}
  	}
}

//函数名:isTooLarge
//功能介绍:字符串是否过长
//参数说明: str: 需检测的字符串  maxLength: 允许的最大长度
//返回: -1: 过长  0: 未超过最大长度
function isTooLarge(str,maxLength){
	var length=getTrueLength(str);
	if(length>maxLength)
		return -1;
	else
		return 0;
}

//函数名:getTrueLength
//功能介绍:获取字符串的真实长度
//参数说明:字符串
//返回:字符串的真实长度
function getTrueLength(str)
{ 
	var trueLength=0;
	var englishStr = " ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789><,-[]{}?/+=|\\'\":;~!#$%()`";
	try{
		for (i = 0; i < str.length; i++)
		{ 
			c = str.charAt(i);//字符串s中的字符
			if (englishStr.indexOf(c) > -1) 
				trueLength=trueLength+1;
			else
				trueLength=trueLength+2; //如为中文,统计长度时则需要加2计算
		}
	}
	catch(e){
		;
	}
	return trueLength;
}

//函数名:forContact
//功能介绍:专为联系方式的检测,三种联系方式必填其一
//返回: -1: 均未填写  0: 已填写至少其一
function forContact(str){
	
	return 0;

}

//函数名:showDate
//功能介绍:显示日期控件
//参数说明:  item: 父窗口中的域对象
//        webname: web应用名
//返回:选择的日期
function showDate(item,webname){
	var str="noset";
	var sUrl="/"+webname+"/js/seldate.jsp";
    var options="dialogHeight:200px;dialogWidth:374px;resizable:no;status:no;help:no";
    try{
		str=window.showModalDialog(sUrl,item,options);
	}
	catch(e){
		str="";
	}
	if(str != 'noset'){
		item.value = str;
	}
	item.focus();
}

//函数名: selectTemplate
//功能介绍: 选择模板
//参数: 选择模板页面的URL
function selectTemplate(sUrl){
	window.open(sUrl,'选择模板', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
}

//函数名: renew
//功能介绍: 补录
//参数: 选择模板页面的URL
function renew(sUrl){
	window.open(sUrl,'补录','toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes,location=yes, status=yes');
}

//函数名: previewTemplate
//功能介绍: 预览申请表模板
//参数: 申请表模板页面的URL
function previewTemplate(sUrl){
	window.open(sUrl);
}
//函数名:selHangye
//功能介绍:显示行业代码以供选择
//参数说明: webname: web应用名
/*
function selHangye(webname,oldSel){
	var sUrl="/"+webname+"/js/SelectCalling.jsp?calling="+oldSel;
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
}
*/

//函数名:TowzPfk
//功能介绍:链接到环保局业务系统，查询排放口情况
//参数说明: 
function TowzPfk(name){
	var sUrl="http://61.142.80.211/try_produce/let/to_edit_port_apply.do?to=print&getByEnterpriseName=true&id="+name;
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
}

//函数名:selHangye
//功能介绍:显示行业代码以供选择
//参数说明: webname: web应用名 ; oldSel : 原有选项 ；type : 选择类型（行业代码，行业名称）
function selHangye(webname,oldSel,type,mname,dname,tname,nname){
	var sUrl="/"+webname+"/SelectCalling.jsp?calling="+oldSel+"&seltype="+type+"&mname="+mname+"&dname="+dname+"&tname="+tname+"&nname="+nname;
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
}

//函数名:selHangyeBC
//功能介绍:显示行业代码以供选择
//参数说明: webname: web应用名 ; oldSel : 原有选项 ；type : 选择类型（行业代码，行业名称）
function selHangyeBC(webname,oldSel,type,mname,dname){
	var sUrl="/"+webname+"/SelectCalling.jsp?calling="+oldSel+"&seltype="+type+"&mname="+mname+"&dname="+dname;
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
}

//函数名:selglxm
//功能介绍:显示不同事项之间的关联项目以供选择
//参数说明: webname: web应用名 ; xmmc : 项目名称 ；zshm : 证书号码 ；jslink :$jslink; 
//			formdata_name:要关联事项的表名 eg: formdata_40965-formdata_40966 ； 
//			glxmmc：对应各表中项目名称的字段名xmmc-xmmc1
function selglxm(webname,xmmc,xmmc_key,zshm,zshm_key,time_key,url_key,jslink,formdata_name,glxmmc,div_key,examinersultid,returnElement,currUserId,isCommission){
	var sUrl="/"+webname+"/SelectGlxm.jsp?xmmc="+xmmc+"&xmmc_key="+xmmc_key+"&zshm="+zshm+"&zshm_key="+zshm_key+"&time_key="+time_key+"&url_key="+url_key+"&jslink="+jslink+"&formdata_name="+formdata_name+"&glxmmc="+glxmmc+"&div_key="+div_key+"&examinersultid="+examinersultid+"&returnElement="+returnElement+"&currUserId="+currUserId+"&isCommission="+isCommission;
	var c = jslink.charAt(jslink.length-1);
	
	if (c=='/')
		jslink=jslink.substring(0,jslink.length-2); 

	if(xmmc=="" && zshm ==""){
		alert("请填写搜索条件！");
	}else{
		
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
	}
}

function seljsxm(webname,xmmc,zshm,jslink,formdata_name,examinersultid,returnElement,currUserId,isCommission){
	var sUrl="/"+webname+"/js/SelectJsxm.jsp?xmmc="+xmmc+"&zshm="+zshm+"&formdata_name="+formdata_name+"&examinersultid="+examinersultid+"&returnElement="+returnElement+"&currUserId="+currUserId+"&isCommission="+isCommission;
	var c = jslink.charAt(jslink.length-1);
	
	if (c=='/')
		jslink=jslink.substring(0,jslink.length-2); 

	if(zshm == "" && xmmc==""){
		alert("请填写搜索条件！");
	}else{
		
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
	}
}

//废水转移联单申报查询条件
function selfszy(webname,xmmc,zshm,jslink,formdata_name,examinersultid,returnElement,currUserId,isCommission){
	var sUrl="/"+webname+"/js/SelectFszy.jsp?xmmc="+xmmc+"&zshm="+zshm+"&formdata_name="+formdata_name+"&examinersultid="+examinersultid+"&returnElement="+returnElement+"&currUserId="+currUserId+"&isCommission="+isCommission;
	var c = jslink.charAt(jslink.length-1);
	
	if (c=='/')
		jslink=jslink.substring(0,jslink.length-2); 

	if(zshm == ""){
		alert("请填写搜索条件！");
	}else{
		
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
	}
}

function selglxmt(webname,xmmc,xmmc_key,zshm,zshm_key,time_key,url_key,jslink,formdata_name,glxmmc,div_key,examinersultid,currUserId,isCommission){
	var sUrl="/"+webname+"/SelectGlxmT.jsp?xmmc="+xmmc+"&xmmc_key="+xmmc_key+"&zshm="+zshm+"&zshm_key="+zshm_key+"&time_key="+time_key+"&url_key="+url_key+"&jslink="+jslink+"&formdata_name="+formdata_name+"&glxmmc="+glxmmc+"&div_key="+div_key+"&examinersultid="+examinersultid+"&currUserId="+currUserId+"&isCommission="+isCommission;
	var c = jslink.charAt(jslink.length-1);
	
	if (c=='/')
		jslink=jslink.substring(0,jslink.length-2); 
		
	if(xmmc=="" && zshm ==""){
		alert("请填写搜索条件！");
	}else
	{
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
	}
}

function selglxmview(webname,xmmc,xmmc_key,zshm,zshm_key,url_key,jslink,formdata_name,glxmmc,div_key,examinersultid,returnElement,type){
	var sUrl="/"+webname+"/SelectGlxmview.jsp?xmmc="+xmmc+"&xmmc_key="+xmmc_key+"&zshm="+zshm+"&zshm_key="+zshm_key+"&url_key="+url_key+"&jslink="+jslink+"&formdata_name="+formdata_name+"&glxmmc="+glxmmc+"&div_key="+div_key+"&examinersultid="+examinersultid+"&returnElement="+returnElement+"&type="+type;
	var c = jslink.charAt(jslink.length-1);
	
	if (c=='/')
		jslink=jslink.substring(0,jslink.length-2); 
	if(xmmc=="" && zshm ==""){
		alert("请填写搜索条件！");
	}else{
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
	
	}
}


//函数名：selglxmyc01 add by fwh 2007.9.20
//功能介绍:显示不同事项之间的关联项目以供选择
//参数说明: webname: web应用名 ; xmmc : 项目名称 ；zshm : 证书号码 ；jslink :$jslink; 
//			formdata_name:要关联事项的表名 eg: formdata_40965-formdata_40966 ； 
//			glxmmc：对应各表中项目名称的字段名  webname,xmmc,xmmc_key,zshm,zshm_key,url_key,jslink,formdata_name,glxmmc,div_key
function selectglxmyc01(webname,zshm,zshm_key,url_key,jslink,formdata_name){
	var sUrl="/"+webname+"/SelectGlxmYC01.jsp?&zshm="+zshm+"&zshm_key="+zshm_key+"&url_key="+url_key+"&jslink="+jslink+"&formdata_name="+formdata_name;
	var c = jslink.charAt(jslink.length-1);
	
	if (c=='/')
		jslink=jslink.substring(0,jslink.length-2); 
		
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
	
}

//函数名：selglxmyc01 add by fwh 2007.9.21
//功能介绍:显示不同事项之间的关联项目以供选择
//参数说明: webname: web应用名 ; xmmc : 项目名称 ；zshm : 证书号码 ；jslink :$jslink; 
//			formdata_name:要关联事项的表名 eg: formdata_40965-formdata_40966 ； 
//			glxmmc：对应各表中项目名称的字段名  webname,xmmc,xmmc_key,zshm,zshm_key,url_key,jslink,formdata_name,glxmmc,div_key
function selectglxmyc02(webname,zshm,zshm_key,url_key,jslink,formdata_name){
	var sUrl="/"+webname+"/SelectGlxmYC02.jsp?&zshm="+zshm+"&zshm_key="+zshm_key+"&url_key="+url_key+"&jslink="+jslink+"&formdata_name="+formdata_name;
	var c = jslink.charAt(jslink.length-1);
	
	if (c=='/')
		jslink=jslink.substring(0,jslink.length-2); 
		
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
	
}

//函数名：selglxmws
//功能介绍:显示不同事项之间的关联项目以供选择
//参数说明: webname: web应用名 ; xmmc : 项目名称 ；zshm : 证书号码 ；jslink :$jslink; 
//			formdata_name:要关联事项的表名 eg: formdata_40965-formdata_40966 ； 
//			glxmmc：对应各表中项目名称的字段名
function selglxmws(webname,xmmc,xmmc_key,zshm,zshm_key,url_key,jslink,formdata_name,glxmmc,div_key){
	var sUrl="/"+webname+"/SelectGlxmWS.jsp?xmmc="+xmmc+"&xmmc_key="+xmmc_key+"&zshm="+zshm+"&zshm_key="+zshm_key+"&url_key="+url_key+"&jslink="+jslink+"&formdata_name="+formdata_name+"&glxmmc="+glxmmc+"&div_key="+div_key+"&currUserId=";
	var c = jslink.charAt(jslink.length-1);
	
	if (c=='/')
		jslink=jslink.substring(0,jslink.length-2); 
		
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
	
}
//功能介绍:显示不同事项之间的关联项目以供选择
//参数说明: webname: web应用名 ; xmmc : 项目名称 ；zshm : 证书号码 ；jslink :$jslink; 
//			formdata_name:要关联事项的表名 eg: formdata_40965-formdata_40966 ； 
//			glxmmc：对应各表中项目名称的字段名
function selglxmws01(webname,xmmc,xmmc_key,zshm,zshm_key,url_key,jslink,formdata_name,glxmmc,div_key){
	var sUrl="/"+webname+"/SelectGlxmWS01.jsp?xmmc="+xmmc+"&xmmc_key="+xmmc_key+"&zshm="+zshm+"&zshm_key="+zshm_key+"&url_key="+url_key+"&jslink="+jslink+"&formdata_name="+formdata_name+"&glxmmc="+glxmmc+"&div_key="+div_key+"&currUserId=";
	var c = jslink.charAt(jslink.length-1);
	
	if (c=='/')
		jslink=jslink.substring(0,jslink.length-2); 
		
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
	
}
function selglxmws001(webname,xmmc,xmmc_key,zshm,zshm_key,url_key,jslink,formdata_name,glxmmc,div_key){
	var sUrl="/"+webname+"/SelectGlxmWS001.jsp?xmmc="+xmmc+"&xmmc_key="+xmmc_key+"&zshm="+zshm+"&zshm_key="+zshm_key+"&url_key="+url_key+"&jslink="+jslink+"&formdata_name="+formdata_name+"&glxmmc="+glxmmc+"&div_key="+div_key+"&currUserId=";
	var c = jslink.charAt(jslink.length-1);
	
	if (c=='/')
		jslink=jslink.substring(0,jslink.length-2); 
		
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
	
}
//功能介绍:显示不同事项之间的关联项目以供选择
//参数说明: webname: web应用名 ; xmmc : 项目名称 ；zshm : 证书号码 ；jslink :$jslink; 
//			formdata_name:要关联事项的表名 eg: formdata_40965-formdata_40966 ； 
//			glxmmc：对应各表中项目名称的字段名
function selglxmws02(webname,xmmc,xmmc_key,zshm,zshm_key,url_key,jslink,formdata_name,glxmmc,div_key){
	var sUrl="/"+webname+"/SelectGlxmWS02.jsp?xmmc="+xmmc+"&xmmc_key="+xmmc_key+"&zshm="+zshm+"&zshm_key="+zshm_key+"&url_key="+url_key+"&jslink="+jslink+"&formdata_name="+formdata_name+"&glxmmc="+glxmmc+"&div_key="+div_key+"&currUserId=";
	var c = jslink.charAt(jslink.length-1);
	
	if (c=='/')
		jslink=jslink.substring(0,jslink.length-2); 
		
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
	
}

//货船选择
function selCargoBoat(webname,name,fields){
	var sUrl="/"+webname+"/SelectCargoBoat.jsp?name="+name+"&fields="+fields;
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
}

//危货选择
function selDangerCargo(webname,name,fields){
	var sUrl="/"+webname+"/SelectDangerCargo.jsp?name="+name+"&fields="+fields;
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
}

//自动生成单位编码
function WSdwzdbm(webname,xmmc,xmmc_key,url_key,jslink,div_key){
	//xmmc="dwmq";zshm="gqxzyxzph";glxmmc="dwmq";
	var sUrl="/"+webname+"/SelectWSdwzdbm.jsp?xmmc="+xmmc+"&xmmc_key="+xmmc_key+"&url_key="+url_key+"&jslink="+jslink+"&div_key="+div_key+"&currUserId=";
	var c = jslink.charAt(jslink.length-1);
	
	if (c=='/')
		jslink=jslink.substring(0,jslink.length-2); 
		
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
	
}
//自动加载品种
function Jzpz1(str){
	var pz=document.forms[0].FlowForm__pinz0_String_250_true.value;
	if(str=="直接饮用水生产、销售"){
		if(document.forms[0].chk1.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="直接饮用水生产、销售(瓶(罐)装纯净水、矿泉水等)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value = document.forms[0].FlowForm__pinz0_String_250_true.value +"；直接饮用水生产、销售(瓶(罐)装纯净水、矿泉水等)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("直接饮用水生产、销售(瓶(罐)装纯净水、矿泉水等)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	//else if(str=="直接饮用水生产、销售" && jg==true && document.forms[0].chk1.checked==false){
		
	//}
	if(str=="罐头食品生产、销售"){
		if(document.forms[0].chk2.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="罐头食品生产、销售(果蔬类罐头、肉类罐头、鱼罐头等)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；罐头食品生产、销售(果蔬类罐头、肉类罐头、鱼罐头等)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("罐头食品生产、销售(果蔬类罐头、肉类罐头、鱼罐头等)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="食糖生产、销售"){
		if(document.forms[0].chk3.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="食糖生产、销售(白砂糖、绵白糖、赤砂糖、冰糖等)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；食糖生产、销售(白砂糖、绵白糖、赤砂糖、冰糖等)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("食糖生产、销售(白砂糖、绵白糖、赤砂糖、冰糖等)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="饮料生产、销售"){
		if(document.forms[0].chk4.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="饮料生产、销售(碳酸饮料、果汁饮料、蔬菜汁饮料、含乳饮料、植物蛋白饮料、茶饮料、固体饮料等)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；饮料生产、销售(碳酸饮料、果汁饮料、蔬菜汁饮料、含乳饮料、植物蛋白饮料、茶饮料、固体饮料等)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("饮料生产、销售(碳酸饮料、果汁饮料、蔬菜汁饮料、含乳饮料、植物蛋白饮料、茶饮料、固体饮料等)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="酒类生产、销售"){
		if(document.forms[0].chk5.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="酒类生产、销售(蒸馏酒(白酒)、配制酒、发酵酒(啤酒、黄酒、葡萄酒、果酒等))";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；酒类生产、销售(蒸馏酒(白酒)、配制酒、发酵酒(啤酒、黄酒、葡萄酒、果酒等))";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("酒类生产、销售(蒸馏酒(白酒)、配制酒、发酵酒(啤酒、黄酒、葡萄酒、果酒等))","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="调味品生产、销售"){
		if(document.forms[0].chk6.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="调味品生产、销售(酱油、酱、食醋、味精、食盐、复合调味品、水产调味品等)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；调味品生产、销售(酱油、酱、食醋、味精、食盐、复合调味品、水产调味品等)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("调味品生产、销售(酱油、酱、食醋、味精、食盐、复合调味品、水产调味品等)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="糖果蜜饯生产、销售"){
		if(document.forms[0].chk7.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="糖果蜜饯生产、销售(巧克力、糖果、蜜饯、果冻、干果、坚果等)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；糖果蜜饯生产、销售(巧克力、糖果、蜜饯、果冻、干果、坚果等)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("糖果蜜饯生产、销售(巧克力、糖果、蜜饯、果冻、干果、坚果等)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="茶叶加工、销售"){
		if(document.forms[0].chk8.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="茶叶加工、销售(红茶、绿茶、乌龙茶、紧压茶、花茶、袋泡茶等)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；茶叶加工、销售(红茶、绿茶、乌龙茶、紧压茶、花茶、袋泡茶等)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("茶叶加工、销售(红茶、绿茶、乌龙茶、紧压茶、花茶、袋泡茶等)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="粮食及其制品加工、销售"){
		if(document.forms[0].chk9.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="粮食及其制品加工、销售(米、面及其制品(米粉、面条、速冻米面制品等))";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；粮食及其制品加工、销售(米、面及其制品(米粉、面条、速冻米面制品等))";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("粮食及其制品加工、销售(米、面及其制品(米粉、面条、速冻米面制品等))","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="食用油加工、销售"){
		if(document.forms[0].chk60.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="食用油加工、销售(植物油、动物油、调和油、氢化油等)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；食用油加工、销售(植物油、动物油、调和油、氢化油等)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("食用油加工、销售(植物油、动物油、调和油、氢化油等)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="肉及肉制品加工、销售"){
		if(document.forms[0].chk61.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="肉及肉制品加工、销售(肉禽屠宰、肉灌肠、酱卤肉、烧烤肉、肉松、香(腊)肠、火腿、广式腊肉、肉干(脯)、板鸭、扒鸡等)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；肉及肉制品加工、销售(肉禽屠宰、肉灌肠、酱卤肉、烧烤肉、肉松、香(腊)肠、火腿、广式腊肉、肉干(脯)、板鸭、扒鸡等)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("肉及肉制品加工、销售(肉禽屠宰、肉灌肠、酱卤肉、烧烤肉、肉松、香(腊)肠、火腿、广式腊肉、肉干(脯)、板鸭、扒鸡等)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="乳及乳制品加工、销售"){
		if(document.forms[0].chk62.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="乳及乳制品加工、销售(消毒鲜乳、奶粉、炼乳、酸奶、乳酪、奶油等乳制品)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；乳及乳制品加工、销售(消毒鲜乳、奶粉、炼乳、酸奶、乳酪、奶油等乳制品)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("乳及乳制品加工、销售(消毒鲜乳、奶粉、炼乳、酸奶、乳酪、奶油等乳制品)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="蛋及蛋制品"){
		if(document.forms[0].chk63.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="蛋及蛋制品(鲜蛋、再制蛋(皮蛋、咸蛋、糟蛋等)、干蛋类(干蛋粉、干蛋白、干蛋黄等)、冰蛋类(冰蛋粉、冰蛋白、冰蛋黄等)等)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；蛋及蛋制品(鲜蛋、再制蛋(皮蛋、咸蛋、糟蛋等)、干蛋类(干蛋粉、干蛋白、干蛋黄等)、冰蛋类(冰蛋粉、冰蛋白、冰蛋黄等)等)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("蛋及蛋制品(鲜蛋、再制蛋(皮蛋、咸蛋、糟蛋等)、干蛋类(干蛋粉、干蛋白、干蛋黄等)、冰蛋类(冰蛋粉、冰蛋白、冰蛋黄等)等)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="水生产加工、销售品"){
		if(document.forms[0].chk64.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="水生产加工、销售品(各种冷冻水产品、水产盐干制品、烤鱼片、鱼松等)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；水生产加工、销售品(各种冷冻水产品、水产盐干制品、烤鱼片、鱼松等)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("水生产加工、销售品(各种冷冻水产品、水产盐干制品、烤鱼片、鱼松等)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="冷冻食品生产、销售"){
		if(document.forms[0].chk65.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="冷冻食品生产、销售(冰淇淋、冰棍、食用冰块等)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；冷冻食品生产、销售(冰淇淋、冰棍、食用冰块等)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("冷冻食品生产、销售(冰淇淋、冰棍、食用冰块等)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="豆制品加工、销售"){
		if(document.forms[0].chk66.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="豆制品加工、销售(发酵性豆制品(腐乳、豆鼓、霉豆腐)、非发酵性豆制品(豆腐、豆腐干、腐竹及其他卤制、油炸、炸卤、熏制、干燥豆制品)、淀粉制品(凉粉、粉皮、粉丝、粉条、淀粉等)、面筋等)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；豆制品加工、销售(发酵性豆制品(腐乳、豆鼓、霉豆腐)、非发酵性豆制品(豆腐、豆腐干、腐竹及其他卤制、油炸、炸卤、熏制、干燥豆制品)、淀粉制品(凉粉、粉皮、粉丝、粉条、淀粉等)、面筋等)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("豆制品加工、销售(发酵性豆制品(腐乳、豆鼓、霉豆腐)、非发酵性豆制品(豆腐、豆腐干、腐竹及其他卤制、油炸、炸卤、熏制、干燥豆制品)、淀粉制品(凉粉、粉皮、粉丝、粉条、淀粉等)、面筋等)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="酱腌菜加工、销售"){
		if(document.forms[0].chk68.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="酱腌菜加工、销售(酱菜、发酵性与非发酵性腌菜、渍菜)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；酱腌菜加工、销售(酱菜、发酵性与非发酵性腌菜、渍菜)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("酱腌菜加工、销售(酱菜、发酵性与非发酵性腌菜、渍菜)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="果蔬类制品加工、销售"){
		if(document.forms[0].chk74.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="果蔬类制品加工、销售(新鲜配菜、脱水果蔬、干鲜食用菌等)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；果蔬类制品加工、销售(新鲜配菜、脱水果蔬、干鲜食用菌等)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("果蔬类制品加工、销售(新鲜配菜、脱水果蔬、干鲜食用菌等)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="其他食品生产加工、销售"){
		if(document.forms[0].chk75.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="其他食品生产加工、销售(其他食品生产加工、销售)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；其他食品生产加工、销售(其他食品生产加工、销售)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("其他食品生产加工、销售(其他食品生产加工、销售)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="糕点加工、销售"){
		if(document.forms[0].chk67.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="糕点加工、销售(中式糕点、西式糕点、饼干、膨化食品等)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；糕点加工、销售(中式糕点、西式糕点、饼干、膨化食品等)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("糕点加工、销售(中式糕点、西式糕点、饼干、膨化食品等)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="中、西餐制售"){
		if(document.forms[0].chk16.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="中、西餐制售(注明是否还有凉菜、烧卤熟肉食品、沙律、裱花糕等)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；中、西餐制售(注明是否还有凉菜、烧卤熟肉食品、沙律、裱花糕等)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("中、西餐制售(注明是否还有凉菜、烧卤熟肉食品、沙律、裱花糕等)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="中餐制售"){
		if(document.forms[0].chk17.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="中餐制售(是否还有凉菜、烧卤熟肉食品、沙律、裱花糕等)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；中餐制售(是否还有凉菜、烧卤熟肉食品、沙律、裱花糕等)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("中餐制售(是否还有凉菜、烧卤熟肉食品、沙律、裱花糕等)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="西餐制售"){
		if(document.forms[0].chk18.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="西餐制售(西餐制售)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；西餐制售(西餐制售)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("西餐制售(西餐制售)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="中式快餐制售"){
		if(document.forms[0].chk19.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="中式快餐制售(注明是否还有凉菜、烧卤熟肉食品等,配餐中心需注明是否含营养膳食)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；中式快餐制售(注明是否还有凉菜、烧卤熟肉食品等,配餐中心需注明是否含营养膳食)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("中式快餐制售(注明是否还有凉菜、烧卤熟肉食品等,配餐中心需注明是否含营养膳食)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="西式快餐制售"){
		if(document.forms[0].chk20.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="西式快餐制售(注明是否还有凉菜、烧卤熟肉食品、沙律等)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；西式快餐制售(注明是否还有凉菜、烧卤熟肉食品、沙律等)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("西式快餐制售(注明是否还有凉菜、烧卤熟肉食品、沙律等)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="粥、粉、面食制售"){
		if(document.forms[0].chk21.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="粥、粉、面食制售(粥、粉、面食制售)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；粥、粉、面食制售(粥、粉、面食制售)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("粥、粉、面食制售(粥、粉、面食制售)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="风味饮食制售"){
		if(document.forms[0].chk22.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="风味饮食制售(日、韩式料理,泰国餐,印度餐等)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；风味饮食制售(日、韩式料理,泰国餐,印度餐等)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("风味饮食制售(日、韩式料理,泰国餐,印度餐等)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="点心、小吃制售"){
		if(document.forms[0].chk23.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="点心、小吃制售(中式点心、小吃,西饼糕点(注明是否含有裱花蛋糕))";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；点心、小吃制售(中式点心、小吃,西饼糕点(注明是否含有裱花蛋糕))";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("点心、小吃制售(中式点心、小吃,西饼糕点(注明是否含有裱花蛋糕))","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="冷热饮品制售"){
		if(document.forms[0].chk24.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="冷热饮品制售(甜品、炖品、冰淇淋、豆桨、奶茶、咖啡、酒、凉茶、茶艺等)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；冷热饮品制售(甜品、炖品、冰淇淋、豆桨、奶茶、咖啡、酒、凉茶、茶艺等)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("冷热饮品制售(甜品、炖品、冰淇淋、豆桨、奶茶、咖啡、酒、凉茶、茶艺等)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="其他食品制售"){
		if(document.forms[0].chk25.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="其他食品制售(其他食品制售)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；其他食品制售(其他食品制售)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("其他食品制售(其他食品制售)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="员工膳食"){
		if(document.forms[0].chk26.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="员工膳食(员工膳食)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；员工膳食(员工膳食)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("员工膳食(员工膳食)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="学生膳食"){
		if(document.forms[0].chk28.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="学生膳食(学生膳食)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；学生膳食(学生膳食)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("学生膳食(学生膳食)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="幼儿膳食"){
		if(document.forms[0].chk29.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="幼儿膳食(幼儿膳食)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；幼儿膳食(幼儿膳食)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("幼儿膳食(幼儿膳食)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="凉茶销售"){
		if(document.forms[0].chk76.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="凉茶销售(凉茶销售)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；凉茶销售(凉茶销售)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("凉茶销售(凉茶销售)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="食品批发、零售"){
		if(document.forms[0].chk10.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="食品批发、零售(食品批发、零售)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；食品批发、零售(食品批发、零售)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("食品批发、零售(食品批发、零售)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="食品批发"){
		if(document.forms[0].chk11.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="食品批发(食品批发)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；食品批发(食品批发)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("食品批发(食品批发)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="食品零售"){
		if(document.forms[0].chk12.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="食品零售(食品零售)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；食品零售(食品零售)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("食品零售(食品零售)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="定型包装食品批发、零售"){
		if(document.forms[0].chk13.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="定型包装食品批发、零售(定型包装食品批发、零售)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；定型包装食品批发、零售(定型包装食品批发、零售)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("定型包装食品批发、零售(定型包装食品批发、零售)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="定型包装食品批发"){
		if(document.forms[0].chk14.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="定型包装食品批发(定型包装食品批发)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；定型包装食品批发(定型包装食品批发)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("定型包装食品批发(定型包装食品批发)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="定型包装食品零售"){
		if(document.forms[0].chk15.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="定型包装食品零售(定型包装食品零售)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；定型包装食品零售(定型包装食品零售)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("定型包装食品零售(定型包装食品零售)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="职工膳食"){
		if(document.forms[0].chk26.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="职工膳食(职工膳食)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；职工膳食(职工膳食)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("职工膳食(职工膳食)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="师生员工膳食"){
		if(document.forms[0].chk27.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="师生员工膳食(师生员工膳食)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；师生员工膳食(师生员工膳食)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("师生员工膳食(师生员工膳食)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="旅业"){
		if(document.forms[0].chk30.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="旅业(旅业)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；旅业(旅业)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("旅业(旅业)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="美容美发"){
		if(document.forms[0].chk31.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="美容美发(美容美发)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；美容美发(美容美发)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("美容美发(美容美发)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="游泳场"){
		if(document.forms[0].chk32.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="游泳场(游泳场)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；游泳场(游泳场)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("游泳场(游泳场)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="商场"){
		if(document.forms[0].chk33.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="商场(商场)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；商场(商场)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("商场(商场)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="书店"){
		if(document.forms[0].chk34.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="书店(书店)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；书店(书店)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("书店(书店)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="图书馆"){
		if(document.forms[0].chk35.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="图书馆(图书馆)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；图书馆(图书馆)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("图书馆(图书馆)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="候车室"){
		if(document.forms[0].chk36.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="候车室(候车室)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；候车室(候车室)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("候车室(候车室)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="体育馆"){
		if(document.forms[0].chk37.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="体育馆(体育馆)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；体育馆(体育馆)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("体育馆(体育馆)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="候诊室"){
		if(document.forms[0].chk38.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="候诊室(候诊室)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；候诊室(候诊室)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("候诊室(候诊室)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="展览馆"){
		if(document.forms[0].chk40.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="展览馆(展览馆)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；展览馆(展览馆)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("展览馆(展览馆)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="博物馆"){
		if(document.forms[0].chk41.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="博物馆(博物馆)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；博物馆(博物馆)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("博物馆(博物馆)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="卡拉OK"){
		if(document.forms[0].chk43.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="卡拉OK(卡拉OK)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；卡拉OK(卡拉OK)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("卡拉OK(卡拉OK)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="歌舞厅"){
		if(document.forms[0].chk44.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="歌舞厅(歌舞厅)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；歌舞厅(歌舞厅)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("歌舞厅(歌舞厅)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="公共浴室（含公共浴室、桑拿、足浴、按摩）"){
		if(document.forms[0].chk45.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="公共浴室（含公共浴室、桑拿、足浴、按摩）(公共浴室（含公共浴室、桑拿、足浴、按摩）)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；公共浴室（含公共浴室、桑拿、足浴、按摩）(公共浴室（含公共浴室、桑拿、足浴、按摩）)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("公共浴室（含公共浴室、桑拿、足浴、按摩）(公共浴室（含公共浴室、桑拿、足浴、按摩）)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="游艺厅"){
		if(document.forms[0].chk46.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="游艺厅(游艺厅)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；游艺厅(游艺厅)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("游艺厅(游艺厅)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="影剧院"){
		if(document.forms[0].chk47.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="影剧院(影剧院)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；影剧院(影剧院)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("影剧院(影剧院)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="音乐厅"){
		if(document.forms[0].chk48.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="音乐厅(音乐厅)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；音乐厅(音乐厅)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("音乐厅(音乐厅)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="录像厅"){
		if(document.forms[0].chk49.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="录像厅(录像厅)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；录像厅(录像厅)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("录像厅(录像厅)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="水厂"){
		if(document.forms[0].chk50.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="水厂(水厂)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；水厂(水厂)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("水厂(水厂)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
	if(str=="二次供水"){
		if(document.forms[0].chk51.checked ==true){
			if(document.forms[0].FlowForm__pinz0_String_250_true.value==""){
				document.forms[0].FlowForm__pinz0_String_250_true.value="二次供水(二次供水)";
			}
			else{
				document.forms[0].FlowForm__pinz0_String_250_true.value= document.forms[0].FlowForm__pinz0_String_250_true.value +"；二次供水(二次供水)";
			}
		}
		else{
			document.forms[0].FlowForm__pinz0_String_250_true.value = pz.replace("二次供水(二次供水)","");
			var newpz = document.forms[0].FlowForm__pinz0_String_250_true.value;
			document.forms[0].FlowForm__pinz0_String_250_true.value = newpz.replace("；","");
		}
	}
}
function Jzpz(str){
	var pz=document.forms[0].pinz0.value;
	if(str=="直接饮用水生产、销售"){
		if(document.forms[0].chk1.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="直接饮用水生产、销售(瓶(罐)装纯净水、矿泉水等)";
			}
			else{
				document.forms[0].pinz0.value = document.forms[0].pinz0.value +"；直接饮用水生产、销售(瓶(罐)装纯净水、矿泉水等)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("直接饮用水生产、销售(瓶(罐)装纯净水、矿泉水等)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	//else if(str=="直接饮用水生产、销售" && jg==true && document.forms[0].chk1.checked==false){
		
	//}
	if(str=="罐头食品生产、销售"){
		if(document.forms[0].chk2.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="罐头食品生产、销售(果蔬类罐头、肉类罐头、鱼罐头等)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；罐头食品生产、销售(果蔬类罐头、肉类罐头、鱼罐头等)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("罐头食品生产、销售(果蔬类罐头、肉类罐头、鱼罐头等)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="食糖生产、销售"){
		if(document.forms[0].chk3.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="食糖生产、销售(白砂糖、绵白糖、赤砂糖、冰糖等)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；食糖生产、销售(白砂糖、绵白糖、赤砂糖、冰糖等)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("食糖生产、销售(白砂糖、绵白糖、赤砂糖、冰糖等)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="饮料生产、销售"){
		if(document.forms[0].chk4.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="饮料生产、销售(碳酸饮料、果汁饮料、蔬菜汁饮料、含乳饮料、植物蛋白饮料、茶饮料、固体饮料等)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；饮料生产、销售(碳酸饮料、果汁饮料、蔬菜汁饮料、含乳饮料、植物蛋白饮料、茶饮料、固体饮料等)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("饮料生产、销售(碳酸饮料、果汁饮料、蔬菜汁饮料、含乳饮料、植物蛋白饮料、茶饮料、固体饮料等)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="酒类生产、销售"){
		if(document.forms[0].chk5.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="酒类生产、销售(蒸馏酒(白酒)、配制酒、发酵酒(啤酒、黄酒、葡萄酒、果酒等))";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；酒类生产、销售(蒸馏酒(白酒)、配制酒、发酵酒(啤酒、黄酒、葡萄酒、果酒等))";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("酒类生产、销售(蒸馏酒(白酒)、配制酒、发酵酒(啤酒、黄酒、葡萄酒、果酒等))","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="调味品生产、销售"){
		if(document.forms[0].chk6.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="调味品生产、销售(酱油、酱、食醋、味精、食盐、复合调味品、水产调味品等)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；调味品生产、销售(酱油、酱、食醋、味精、食盐、复合调味品、水产调味品等)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("调味品生产、销售(酱油、酱、食醋、味精、食盐、复合调味品、水产调味品等)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="糖果蜜饯生产、销售"){
		if(document.forms[0].chk7.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="糖果蜜饯生产、销售(巧克力、糖果、蜜饯、果冻、干果、坚果等)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；糖果蜜饯生产、销售(巧克力、糖果、蜜饯、果冻、干果、坚果等)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("糖果蜜饯生产、销售(巧克力、糖果、蜜饯、果冻、干果、坚果等)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="茶叶加工、销售"){
		if(document.forms[0].chk8.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="茶叶加工、销售(红茶、绿茶、乌龙茶、紧压茶、花茶、袋泡茶等)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；茶叶加工、销售(红茶、绿茶、乌龙茶、紧压茶、花茶、袋泡茶等)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("茶叶加工、销售(红茶、绿茶、乌龙茶、紧压茶、花茶、袋泡茶等)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="粮食及其制品加工、销售"){
		if(document.forms[0].chk9.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="粮食及其制品加工、销售(米、面及其制品(米粉、面条、速冻米面制品等))";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；粮食及其制品加工、销售(米、面及其制品(米粉、面条、速冻米面制品等))";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("粮食及其制品加工、销售(米、面及其制品(米粉、面条、速冻米面制品等))","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="食用油加工、销售"){
		if(document.forms[0].chk60.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="食用油加工、销售(植物油、动物油、调和油、氢化油等)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；食用油加工、销售(植物油、动物油、调和油、氢化油等)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("食用油加工、销售(植物油、动物油、调和油、氢化油等)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="肉及肉制品加工、销售"){
		if(document.forms[0].chk61.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="肉及肉制品加工、销售(肉禽屠宰、肉灌肠、酱卤肉、烧烤肉、肉松、香(腊)肠、火腿、广式腊肉、肉干(脯)、板鸭、扒鸡等)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；肉及肉制品加工、销售(肉禽屠宰、肉灌肠、酱卤肉、烧烤肉、肉松、香(腊)肠、火腿、广式腊肉、肉干(脯)、板鸭、扒鸡等)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("肉及肉制品加工、销售(肉禽屠宰、肉灌肠、酱卤肉、烧烤肉、肉松、香(腊)肠、火腿、广式腊肉、肉干(脯)、板鸭、扒鸡等)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="乳及乳制品加工、销售"){
		if(document.forms[0].chk62.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="乳及乳制品加工、销售(消毒鲜乳、奶粉、炼乳、酸奶、乳酪、奶油等乳制品)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；乳及乳制品加工、销售(消毒鲜乳、奶粉、炼乳、酸奶、乳酪、奶油等乳制品)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("乳及乳制品加工、销售(消毒鲜乳、奶粉、炼乳、酸奶、乳酪、奶油等乳制品)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="蛋及蛋制品"){
		if(document.forms[0].chk63.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="蛋及蛋制品(鲜蛋、再制蛋(皮蛋、咸蛋、糟蛋等)、干蛋类(干蛋粉、干蛋白、干蛋黄等)、冰蛋类(冰蛋粉、冰蛋白、冰蛋黄等)等)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；蛋及蛋制品(鲜蛋、再制蛋(皮蛋、咸蛋、糟蛋等)、干蛋类(干蛋粉、干蛋白、干蛋黄等)、冰蛋类(冰蛋粉、冰蛋白、冰蛋黄等)等)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("蛋及蛋制品(鲜蛋、再制蛋(皮蛋、咸蛋、糟蛋等)、干蛋类(干蛋粉、干蛋白、干蛋黄等)、冰蛋类(冰蛋粉、冰蛋白、冰蛋黄等)等)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="水生产加工、销售品"){
		if(document.forms[0].chk64.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="水生产加工、销售品(各种冷冻水产品、水产盐干制品、烤鱼片、鱼松等)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；水生产加工、销售品(各种冷冻水产品、水产盐干制品、烤鱼片、鱼松等)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("水生产加工、销售品(各种冷冻水产品、水产盐干制品、烤鱼片、鱼松等)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="冷冻食品生产、销售"){
		if(document.forms[0].chk65.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="冷冻食品生产、销售(冰淇淋、冰棍、食用冰块等)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；冷冻食品生产、销售(冰淇淋、冰棍、食用冰块等)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("冷冻食品生产、销售(冰淇淋、冰棍、食用冰块等)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="豆制品加工、销售"){
		if(document.forms[0].chk66.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="豆制品加工、销售(发酵性豆制品(腐乳、豆鼓、霉豆腐)、非发酵性豆制品(豆腐、豆腐干、腐竹及其他卤制、油炸、炸卤、熏制、干燥豆制品)、淀粉制品(凉粉、粉皮、粉丝、粉条、淀粉等)、面筋等)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；豆制品加工、销售(发酵性豆制品(腐乳、豆鼓、霉豆腐)、非发酵性豆制品(豆腐、豆腐干、腐竹及其他卤制、油炸、炸卤、熏制、干燥豆制品)、淀粉制品(凉粉、粉皮、粉丝、粉条、淀粉等)、面筋等)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("豆制品加工、销售(发酵性豆制品(腐乳、豆鼓、霉豆腐)、非发酵性豆制品(豆腐、豆腐干、腐竹及其他卤制、油炸、炸卤、熏制、干燥豆制品)、淀粉制品(凉粉、粉皮、粉丝、粉条、淀粉等)、面筋等)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="酱腌菜加工、销售"){
		if(document.forms[0].chk68.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="酱腌菜加工、销售(酱菜、发酵性与非发酵性腌菜、渍菜)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；酱腌菜加工、销售(酱菜、发酵性与非发酵性腌菜、渍菜)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("酱腌菜加工、销售(酱菜、发酵性与非发酵性腌菜、渍菜)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="果蔬类制品加工、销售"){
		if(document.forms[0].chk74.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="果蔬类制品加工、销售(新鲜配菜、脱水果蔬、干鲜食用菌等)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；果蔬类制品加工、销售(新鲜配菜、脱水果蔬、干鲜食用菌等)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("果蔬类制品加工、销售(新鲜配菜、脱水果蔬、干鲜食用菌等)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="其他食品生产加工、销售"){
		if(document.forms[0].chk75.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="其他食品生产加工、销售(其他食品生产加工、销售)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；其他食品生产加工、销售(其他食品生产加工、销售)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("其他食品生产加工、销售(其他食品生产加工、销售)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="糕点加工、销售"){
		if(document.forms[0].chk67.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="糕点加工、销售(中式糕点、西式糕点、饼干、膨化食品等)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；糕点加工、销售(中式糕点、西式糕点、饼干、膨化食品等)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("糕点加工、销售(中式糕点、西式糕点、饼干、膨化食品等)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="中、西餐制售"){
		if(document.forms[0].chk16.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="中、西餐制售(注明是否还有凉菜、烧卤熟肉食品、沙律、裱花糕等)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；中、西餐制售(注明是否还有凉菜、烧卤熟肉食品、沙律、裱花糕等)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("中、西餐制售(注明是否还有凉菜、烧卤熟肉食品、沙律、裱花糕等)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="中餐制售"){
		if(document.forms[0].chk17.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="中餐制售(是否还有凉菜、烧卤熟肉食品、沙律、裱花糕等)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；中餐制售(是否还有凉菜、烧卤熟肉食品、沙律、裱花糕等)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("中餐制售(是否还有凉菜、烧卤熟肉食品、沙律、裱花糕等)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="西餐制售"){
		if(document.forms[0].chk18.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="西餐制售(西餐制售)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；西餐制售(西餐制售)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("西餐制售(西餐制售)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="中式快餐制售"){
		if(document.forms[0].chk19.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="中式快餐制售(注明是否还有凉菜、烧卤熟肉食品等,配餐中心需注明是否含营养膳食)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；中式快餐制售(注明是否还有凉菜、烧卤熟肉食品等,配餐中心需注明是否含营养膳食)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("中式快餐制售(注明是否还有凉菜、烧卤熟肉食品等,配餐中心需注明是否含营养膳食)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="西式快餐制售"){
		if(document.forms[0].chk20.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="西式快餐制售(注明是否还有凉菜、烧卤熟肉食品、沙律等)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；西式快餐制售(注明是否还有凉菜、烧卤熟肉食品、沙律等)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("西式快餐制售(注明是否还有凉菜、烧卤熟肉食品、沙律等)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="粥、粉、面食制售"){
		if(document.forms[0].chk21.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="粥、粉、面食制售(粥、粉、面食制售)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；粥、粉、面食制售(粥、粉、面食制售)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("粥、粉、面食制售(粥、粉、面食制售)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="风味饮食制售"){
		if(document.forms[0].chk22.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="风味饮食制售(日、韩式料理,泰国餐,印度餐等)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；风味饮食制售(日、韩式料理,泰国餐,印度餐等)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("风味饮食制售(日、韩式料理,泰国餐,印度餐等)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="点心、小吃制售"){
		if(document.forms[0].chk23.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="点心、小吃制售(中式点心、小吃,西饼糕点(注明是否含有裱花蛋糕))";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；点心、小吃制售(中式点心、小吃,西饼糕点(注明是否含有裱花蛋糕))";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("点心、小吃制售(中式点心、小吃,西饼糕点(注明是否含有裱花蛋糕))","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="冷热饮品制售"){
		if(document.forms[0].chk24.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="冷热饮品制售(甜品、炖品、冰淇淋、豆桨、奶茶、咖啡、酒、凉茶、茶艺等)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；冷热饮品制售(甜品、炖品、冰淇淋、豆桨、奶茶、咖啡、酒、凉茶、茶艺等)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("冷热饮品制售(甜品、炖品、冰淇淋、豆桨、奶茶、咖啡、酒、凉茶、茶艺等)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="其他食品制售"){
		if(document.forms[0].chk25.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="其他食品制售(其他食品制售)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；其他食品制售(其他食品制售)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("其他食品制售(其他食品制售)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="员工膳食"){
		if(document.forms[0].chk26.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="员工膳食(员工膳食)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；员工膳食(员工膳食)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("员工膳食(员工膳食)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="学生膳食"){
		if(document.forms[0].chk28.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="学生膳食(学生膳食)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；学生膳食(学生膳食)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("学生膳食(学生膳食)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="幼儿膳食"){
		if(document.forms[0].chk29.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="幼儿膳食(幼儿膳食)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；幼儿膳食(幼儿膳食)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("幼儿膳食(幼儿膳食)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="凉茶销售"){
		if(document.forms[0].chk76.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="凉茶销售(凉茶销售)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；凉茶销售(凉茶销售)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("凉茶销售(凉茶销售)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="食品批发、零售"){
		if(document.forms[0].chk10.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="食品批发、零售(食品批发、零售)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；食品批发、零售(食品批发、零售)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("食品批发、零售(食品批发、零售)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="食品批发"){
		if(document.forms[0].chk11.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="食品批发(食品批发)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；食品批发(食品批发)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("食品批发(食品批发)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="食品零售"){
		if(document.forms[0].chk12.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="食品零售(食品零售)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；食品零售(食品零售)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("食品零售(食品零售)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="定型包装食品批发、零售"){
		if(document.forms[0].chk13.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="定型包装食品批发、零售(定型包装食品批发、零售)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；定型包装食品批发、零售(定型包装食品批发、零售)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("定型包装食品批发、零售(定型包装食品批发、零售)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="定型包装食品批发"){
		if(document.forms[0].chk14.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="定型包装食品批发(定型包装食品批发)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；定型包装食品批发(定型包装食品批发)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("定型包装食品批发(定型包装食品批发)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="定型包装食品零售"){
		if(document.forms[0].chk15.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="定型包装食品零售(定型包装食品零售)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；定型包装食品零售(定型包装食品零售)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("定型包装食品零售(定型包装食品零售)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="职工膳食"){
		if(document.forms[0].chk26.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="职工膳食(职工膳食)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；职工膳食(职工膳食)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("职工膳食(职工膳食)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="师生员工膳食"){
		if(document.forms[0].chk27.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="师生员工膳食(师生员工膳食)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；师生员工膳食(师生员工膳食)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("师生员工膳食(师生员工膳食)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="旅业"){
		if(document.forms[0].chk30.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="旅业(旅业)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；旅业(旅业)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("旅业(旅业)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="美容美发"){
		if(document.forms[0].chk31.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="美容美发(美容美发)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；美容美发(美容美发)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("美容美发(美容美发)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="游泳场"){
		if(document.forms[0].chk32.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="游泳场(游泳场)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；游泳场(游泳场)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("游泳场(游泳场)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="商场"){
		if(document.forms[0].chk33.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="商场(商场)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；商场(商场)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("商场(商场)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="书店"){
		if(document.forms[0].chk34.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="书店(书店)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；书店(书店)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("书店(书店)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="图书馆"){
		if(document.forms[0].chk35.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="图书馆(图书馆)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；图书馆(图书馆)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("图书馆(图书馆)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="候车室"){
		if(document.forms[0].chk36.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="候车室(候车室)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；候车室(候车室)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("候车室(候车室)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="体育馆"){
		if(document.forms[0].chk37.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="体育馆(体育馆)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；体育馆(体育馆)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("体育馆(体育馆)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="候诊室"){
		if(document.forms[0].chk38.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="候诊室(候诊室)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；候诊室(候诊室)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("候诊室(候诊室)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="展览馆"){
		if(document.forms[0].chk40.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="展览馆(展览馆)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；展览馆(展览馆)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("展览馆(展览馆)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="博物馆"){
		if(document.forms[0].chk41.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="博物馆(博物馆)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；博物馆(博物馆)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("博物馆(博物馆)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="卡拉OK"){
		if(document.forms[0].chk43.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="卡拉OK(卡拉OK)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；卡拉OK(卡拉OK)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("卡拉OK(卡拉OK)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="歌舞厅"){
		if(document.forms[0].chk44.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="歌舞厅(歌舞厅)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；歌舞厅(歌舞厅)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("歌舞厅(歌舞厅)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="公共浴室（含公共浴室、桑拿、足浴、按摩）"){
		if(document.forms[0].chk45.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="公共浴室（含公共浴室、桑拿、足浴、按摩）(公共浴室（含公共浴室、桑拿、足浴、按摩）)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；公共浴室（含公共浴室、桑拿、足浴、按摩）(公共浴室（含公共浴室、桑拿、足浴、按摩）)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("公共浴室（含公共浴室、桑拿、足浴、按摩）(公共浴室（含公共浴室、桑拿、足浴、按摩）)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="游艺厅"){
		if(document.forms[0].chk46.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="游艺厅(游艺厅)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；游艺厅(游艺厅)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("游艺厅(游艺厅)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="影剧院"){
		if(document.forms[0].chk47.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="影剧院(影剧院)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；影剧院(影剧院)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("影剧院(影剧院)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="音乐厅"){
		if(document.forms[0].chk48.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="音乐厅(音乐厅)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；音乐厅(音乐厅)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("音乐厅(音乐厅)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="录像厅"){
		if(document.forms[0].chk49.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="录像厅(录像厅)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；录像厅(录像厅)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("录像厅(录像厅)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="水厂"){
		if(document.forms[0].chk50.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="水厂(水厂)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；水厂(水厂)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("水厂(水厂)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
	if(str=="二次供水"){
		if(document.forms[0].chk51.checked ==true){
			if(document.forms[0].pinz0.value==""){
				document.forms[0].pinz0.value="二次供水(二次供水)";
			}
			else{
				document.forms[0].pinz0.value= document.forms[0].pinz0.value +"；二次供水(二次供水)";
			}
		}
		else{
			document.forms[0].pinz0.value = pz.replace("二次供水(二次供水)","");
			var newpz = document.forms[0].pinz0.value;
			document.forms[0].pinz0.value = newpz.replace("；","");
		}
	}
}
//发改局加载数据
function SelectGlxmFG(webname,xmmc,xmmc_key,url_key,jslink,div_key){
	//xmmc="dwmq";zshm="gqxzyxzph";glxmmc="dwmq";
	var sUrl="/"+webname+"/SelectGlxmFG.jsp?xmmc="+xmmc+"&xmmc_key="+xmmc_key+"&url_key="+url_key+"&jslink="+jslink+"&div_key="+div_key+"&currUserId=";
	var c = jslink.charAt(jslink.length-1);
	
	if (c=='/')
		jslink=jslink.substring(0,jslink.length-2); 
		
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
	
}
function SelectGlxmFG1(webname,xmmc,xmmc_key,url_key,jslink,div_key){
	//xmmc="dwmq";zshm="gqxzyxzph";glxmmc="dwmq";
	var sUrl="/"+webname+"/SelectGlxmFG1.jsp?xmmc="+xmmc+"&xmmc_key="+xmmc_key+"&url_key="+url_key+"&jslink="+jslink+"&div_key="+div_key+"&currUserId=";
	var c = jslink.charAt(jslink.length-1);
	
	if (c=='/')
		jslink=jslink.substring(0,jslink.length-2); 
		
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
	
}
//函数名:selnotnew
//功能介绍:显示同个事项中新建项目以供选择(环保局变更)
//参数说明: webname: web应用名 ; xmmc_value : 项目名称 ；xmmc_name：项目名称字段名；zshm_name : 证书号码字段名 ；
function selnotnew(webname,xmmc_value,xmmc_name,zshm_name,auditId,xmxz_name,xmxz_value,examinersultid){
	//var value = eval("document.all."+xmxz_name+".options[document.all."+xmxz_name+".selectedIndex].value");
	//var pURL = reurl + "?" + query_paras;
	var sUrl="/"+webname+"/SelectNotnew.jsp?xmmc_value="+xmmc_value+"&xmmc_name="+xmmc_name+"&zshm_name="+zshm_name+"&auditId="+auditId+ "&xmxz_name=" + xmxz_name+"&xmxz_value="+xmxz_value+"&examinersultid="+examinersultid;
	
	if (xmxz_value != "新建"){
		
	
		window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');	
	}
	else {
		var key = "&templateProcInsId=";
		var pos = reurl.indexOf(key);
		if(pos == -1)
			return;
	    var url = reurl.substring(0,pos+key.length);
		//alert(url);
		window.location.href = url;
		}	
}

//函数名:queryDate
//功能介绍:查询临时排污许可证的有效日期(环保局---试运行事项)
//参数说明: webname: web应用名 ; dwmc:单位名称
function queryDate(webname,dwmc,date_key){

	var sUrl="/"+webname+"/queryDate.jsp?&dwmc="+dwmc+"&date_key="+date_key;
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');	
	
}

//函数名:SelInfectant
//功能介绍:查询临时排污许可证的有效日期(环保局)
//sort_type :0全部，1废气，2废水
//参数说明: webname: web应用名 ;
function SelInfectant(webname,sort_name,sort_key,sort_type){

	var sUrl="/"+webname+"/js/SelInfectant.jsp?sort_name="+sort_name+"&sort_key="+sort_key+"&sort_type="+sort_type;
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');	
}


//函数名:selSort
//功能介绍:查询临时排污许可证的有效日期(环保局---试运行事项)
//sort_type :0全部，1废气，2噪声，3废水，4废物
//参数说明: webname: web应用名 ;
function selSort(webname,sort_name,sort_key,sort_type){

	var sUrl="/"+webname+"/selSort.jsp?sort_name="+sort_name+"&sort_key="+sort_key+"&sort_type="+sort_type;
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');	
	
}


//函数名:SavePrintCode
//功能介绍:保存环保局印刷编号
//参数说明: 
//function savaPrintCode(webname,auditId,pricode){
//	var sUrl="/"+webname+"/SavePrintCode.jsp?auditId="+auditId+"&pricode="+pricode;
//	window.open(sUrl,'newwindow', 'height=250, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=no, resizable=yes,location=no, status=no');
//}

//函数名:SavePrintCode
//功能介绍:保存印刷编号
//参数说明: 
//resultName:证书名称 ；resulthm_key:证书编号对应的字段名

function savePrintCode(webname,printInsIdKey,OrganizationId,codeInsId,procInsId,result_name,auditId){
	var sUrl="/"+webname+"/SaveLicence.jsp?printInsIdKey="+printInsIdKey+"&OrganizationId="+OrganizationId+"&codeInsId="+codeInsId+"&procInsId="+procInsId+"&result_name="+result_name+"&auditId="+auditId;
	window.open(sUrl,'newwindow', 'height=250, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=no, resizable=yes,location=no, status=no');
}



function selfeiqi(webname,oldSel,aname)
{
	var type="code";
	var sUrl="/"+webname+"/js/Selectfeiqi.jsp?calling="+oldSel+"&seltype="+type+"&pname="+aname;
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');	
}

//函数名:selfeishui
//功能介绍:显示废气种类以供选择
//参数说明:  item: 父窗口中的域对象
//        webname: web应用名
function selfeishui(webname,oldSel,aname)
{
	var type="code";
	var sUrl="/"+webname+"/js/Selectfeishui.jsp?calling="+oldSel+"&seltype="+type+"&pname="+aname;
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');	
}
//函数名:selshuiqi
//功能介绍:显示废气种类以供选择
//参数说明:  item: 父窗口中的域对象
//        webname: web应用名
function selshuiqi(webname,oldSel,aname)
{
	var type="code";
	var sUrl="/"+webname+"/js/Selectshuiqi.jsp?calling="+oldSel+"&seltype="+type+"&pname="+aname;
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');	
}

//函数名:selhydm
//功能介绍:显示行业代码供选择 
//参数说明:  atype: 取得代码或是名称"code"
//        webname: web应用名
function selhydm(webname,oldSel,aname,atype)
{	
	var type=atype;
	var sUrl="/"+webname+"/js/SelectCallingHB.jsp?calling="+oldSel+"&seltype="+type+"&pname="+aname+"&ptype="+atype;
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');	
}

//函数名:selcode
//功能介绍:显示证书编码供选择 
//参数说明:  atype: 取得代码或是名称"code"
//        webname: web应用名
function selcode(webname,auditId,oldSel,aname,atype)
{	
	var type=atype;
	var sUrl="/"+webname+"/js/SelectCode.jsp?calling="+oldSel+"&seltype="+type+"&pname="+aname+"&ptype="+atype+"&auditId="+auditId;
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');	
}

//函数名:selhydmStat 用于污控科统计查询行业代码
//功能介绍:显示行业代码供选择 
//参数说明:  atype: 取得代码或是名称"code"
//        webname: web应用名
function selhydmStat(webname,oldSel,aname,atype)
{	
	var type=atype;
	var sUrl="/"+webname+"/js/SelectCallingHBStat.jsp?calling="+oldSel+"&seltype="+type+"&pname="+aname+"&ptype="+atype;
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');	
}

//函数名:selAnJian
//功能介绍：显示案件审核信息以供选择
//参数说明：webname: web应用名 ; oldSel : 原有选项 ；type : 选择类型（案件审核人，执法编号）
function selAnJian(webname,oldSel,type,mname,dname,tname,nname){
	var sUrl="/"+webname+"/SelectZsShenHe.jsp?calling="+oldSel+"&seltype="+type+"&mname="+mname+"&dname="+dname+"&tname="+tname+"&nname="+nname;
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
}

//函数名:selhydmStatList 用于污控科统计查询行业代码
//功能介绍:显示行业代码供选择 
//参数说明:  atype: 取得代码或是名称"code"
//        webname: web应用名
function selhydmStatList(webname,oldSel,aname,atype)
{	
	var type=atype;
	var sUrl="/"+webname+ "/js/SelectCallingHBStatList.jsp?calling="+oldSel+"&seltype="+type+"&pname="+aname+"&ptype="+atype;
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');	
}

//函数名:selWrwStatList 用于污控科统计查询污染物
//功能介绍:显示污染物供选择 (多选）
//参数说明:  
//        webname: web应用名
//        sort_key: 返回值给的select的ID
// 				sort_type:污染物类型 1：废水 2： 废气
//        sort_name:查询关键字
function selWrwStatList(webname,sort_key,sort_type,sort_name){
	var sUrl="/"+webname+ "/js/SelInfectantlist.jsp?sort_key="+sort_key+"&sort_type="+sort_type+"&sort_name="+sort_name ;
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');	
}

//函数名:selWrwSortList 用于污控科统计查询污染物种类
//功能介绍:显示污染种类物供选择 (多选）
//参数说明:  
//        webname: web应用名
//        sort_key: 返回值给的select的ID
// 				sort_type:污染物类型 
//        sort_name:查询关键字
function selWrwSortList(webname,sort_key,sort_type,sort_name){
	var sUrl="/"+webname+ "/js/selSortlist.jsp?sort_key="+sort_key+"&sort_type="+sort_type+"&sort_name="+sort_name ;
	window.open(sUrl,'newwindow', 'height=550, width=650, top=50,left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');	
}

//函数名:showContrastResult
//功能介绍:显示比对校验的结果
//参数说明: webname: web应用名
//           userid: 以便校验页面进行日志记录
//        procInsId: 流程实例ID
//          auditId: 审批事项ID
//          keyword: 关键字名称
//        condition: 是否条件选择校验程序
function showContrastResult(webname,userid,procInsId,auditId,keyword,condition){
	var returnV=new Array();
	var str="noset";

	//组装调用相应的校验页面
	var sUrl="/"+webname+"/AutoVerify.jsp";
	sUrl+="?process_id="+procInsId;
	sUrl+="&userid="+userid;
	sUrl+="&auditid="+auditId;
	sUrl+="&keyword="+keyword;
	sUrl+="&condition="+condition;

	//获取返回值并重写前一页的证明材料的核对状态  1: 核对通过  2: 核对不通过
	var options="dialogHeight:530px;dialogWidth:400px;resizable:no;status:no;help:no";
	try{
		returnV=window.showModalDialog(sUrl,"item",options);
		str=returnV[0];
		var id=returnV[1];

		var divObj = window.opener.document.getElementsByTagName("span") ;
		var btnStr="AutoCheck_"+id;
		if(id!="0"){
			for (var iIndex=0;iIndex<divObj.length; iIndex++){
				if(btnStr==divObj[iIndex].id){
					if(str=="2"){
						var showThis="";
						showThis+="<input type=hidden name=CheckAttach_cert_auto_"+id+" value=2>";
						showThis+="<img src=/"+webname+"/images/flow/error.gif border=0>";
						divObj[iIndex].innerHTML=showThis;
					}
					else if(str=="1"){
						var showThis="";
						showThis+="<input type=hidden name=CheckAttach_cert_auto_"+id+" value=1>";
						showThis+="<img src=/"+webname+"/images/flow/vote.gif border=0>";
						divObj[iIndex].innerHTML=showThis;
					}
					else{
						var showThis="";
					}
				}
			}
		}
	}
	catch(e){
		;
	}
}

//add by itang
//函数名:showContrastResult_ex 
//功能介绍:显示比对校验的结果 扩展 showContrastResult function 上增加 matchkeyword参数
//参数说明: webname: web应用名
//           userid: 以便校验页面进行日志记录
//        procInsId: 流程实例ID
//          auditId: 审批事项ID
//          keyword: 关键字名称
//        condition: 是否条件选择校验程序
//     matchkeyword: 描述对应的域名(描述可以是法人名称、公司名称)
function showContrastResult_ex(webname,userid,procInsId,auditId,keyword,condition,matchkeyword){
  var returnV=new Array();
  var str="noset";

  //组装调用相应的校验页面
  var sUrl="/"+webname+"/AutoVerify.jsp";
  sUrl+="?process_id="+procInsId;
  sUrl+="&userid="+userid;
  sUrl+="&auditid="+auditId;
  sUrl+="&keyword="+keyword;
  sUrl+="&condition="+condition;
  sUrl+="&matchkeyword="+matchkeyword;
  
  
  //获取返回值并重写前一页的证明材料的核对状态  1: 核对通过  2: 核对不通过
  var options="dialogHeight:530px;dialogWidth:400px;resizable:yes;status:no;help:no";
  try{
    returnV=window.showModalDialog(sUrl,"item",options);
   str=returnV[0];
    var id=returnV[1];

    var divObj = window.opener.document.getElementsByTagName("span") ;
    var btnStr="AutoCheck_"+id;
    if(id!="0"){
      for (var iIndex=0;iIndex<divObj.length; iIndex++){
        if(btnStr==divObj[iIndex].id){
          if(str=="2"){
            var showThis="";
            showThis+="<input type=hidden name=CheckAttach_cert_auto_"+id+" value=2>";
            showThis+="<img src=/"+webname+"/images/flow/error.gif border=0>";
            divObj[iIndex].innerHTML=showThis;
          }
          else if(str=="1"){
            var showThis="";
            showThis+="<input type=hidden name=CheckAttach_cert_auto_"+id+" value=1>";
            showThis+="<img src=/"+webname+"/images/flow/vote.gif border=0>";
            divObj[iIndex].innerHTML=showThis;
          }
          else{
            var showThis="";
          }
        }
      }
    }
  }
  catch(e){
    ;
  }
}


//函数名:check(write for showForm.wvm)
//功能介绍:检查Form数据
//参数说明:  str:环节ID
//返回: false: 数据不合法  true: 数据合法
function check(str){
	
	//必须选择附件方案add by fangl
	try
	{
		if (document.forms[0].processscheme.value == '-1')
		{
			alert("请选择一种申请类型");
			document.forms[0].processscheme.focus();
			return false;
		}
	}
	catch (e)
	{
		;
	}
	
	var result=false;
   //扩展校验补充页面的必需填
   try{
	   
		result=eval("doCheckAdd()");
		
	}
	catch(e){
		result=true;
	}

	//alert(result);
	if(result==false){
		return false;
	}
	//执行扩展script方法
	try{
		result=eval("doCheckThis()");
	}
	catch(e){
		result=true;
	}
   //alert(result);
	if(result==false){
		return false;
	}
	
	//执行扩展流程条件流转方法
	try{
		result=eval("action_script()");
	}
	catch(e){
		result=true;
	}

	if(result==false){
		return false;
	}
	
	//扩展校验通用数据的必需填
	try{
		result=eval("checkCommonData()");
	}
	catch(e){
		result = true;
	}

	if(result==false){
		return false;
	}
	
	try{
		result=eval("validateFormField()");
	}
	catch(e){
		result = true;
	}

	if(result==false){
		return false;
	}

	//扩展提示用户校验附件以及证明材料的核对状态

	try{
		result=eval("checkAttach()");
		//return result;
	}
	catch(e){
		result = true;
	}

    return true;
}

//函数名:notEmptyStr
//功能介绍:判断字符是否为空
//返回: -1: 为空  0:不为空
function notEmptyStr(str,infoStr){
	if(str==""){
		var infoPrefix="请输入";
		if(infoStr!=""){
			infoStr="["+infoStr+"]";
		}
		alert(infoPrefix+infoStr+"内容");
		return -1;
	}
	return 0;
}

//函数名:addToBar
//功能介绍:增加导航栏按钮
//参数说明:  id: 该导航按钮对应的table的id   
//         name: 导航按钮显示的文字
//      webname: web应用名,以便引用图片显示导航栏按钮
//        barId: 导航栏所使用的Id
//      imgName: 默认显示的图片
function addToBar(id,name,title,webname,barId,imgName){
	var divObj = document.getElementsByTagName("span") ;
	var strHtml="";
	var tablePre="<table border=0 cellspacing=0 cellpadding=0><tbody><tr>";
	var tableThen="<table border=0 cellspacing=0 cellpadding=0><tbody>";
	var tableEnd="</tr></tbody></table>";
	var tmpHtml="";
	pageCount=pageCount+1;
	
	for (var iIndex=0;iIndex<divObj.length; iIndex++){
		if(barId==divObj[iIndex].id){
			if(divObj[iIndex].innerHTML!=""){
				tmpHtml=divObj[iIndex].innerHTML;
				if(pageCount%5==0){
					strHtml=tmpHtml+tablePre;
				}
				else{
					strHtml=tableThen;
					tmpHtml=tmpHtml.substring(tablePre.length,tmpHtml.length-tableEnd.length);
					strHtml+=tmpHtml;
				}
			}
			else{
				strHtml=tablePre;
			}
			strHtml=strHtml+"<td><span id=\""+barId+id+"_1\"><img src=/"+webname+"/images/img_shenqin/banner_"+imgName+"1.gif width=6 height=18></span></td>";
			strHtml=strHtml+"<td><span id=\""+barId+id+"_2\"><table cellspacing=0 cellpadding=0 border=0><tr><td background=/"+webname+"/images/img_shenqin/banner_"+imgName+"3.gif>";
			strHtml=strHtml+"<a  title='"+title+"' style=font-size:10pt href=javascript:showTable('"+id+"','"+name+"','"+title+"','"+webname+"','"+barId+"'); >"+name+"</a></td></tr></table></span>";
			strHtml=strHtml+"</td><td><span id=\""+barId+id+"_3\"><img src=/"+webname+"/images/img_shenqin/banner_"+imgName+"2.gif width=6 height=18></span></td>";
			strHtml=strHtml+tableEnd;
			divObj[iIndex].innerHTML=strHtml;
			break;
		}
	}
}

//函数名:showTable
//功能介绍:显示对应的table栏
//参数说明:  id: 需要显示的table的id
function showTable(id,name,title,webname,barId){
	var divObj = document.getElementsByTagName("table") ;
	var targetObj1 = document.getElementById(barId+id+"_1");
	var targetObj2 = document.getElementById(barId+id+"_2");
	var targetObj3 = document.getElementById(barId+id+"_3");
	var otherObj1,otherObj2,otherObj3,otherObjId;
	var obj1Html="<img src=/"+webname+"/images/img_shenqin/banner_left1.gif width=6 height=18>";
	var obj1SelHtml="<img src=/"+webname+"/images/img_shenqin/banner_over1.gif width=6 height=18>";
	var obj2Html="<a title='"+title+"' style=font-size:10pt href=javascript:showTable('"+id+"','"+name+"','"+title+"','"+webname+"','"+barId+"');>"+name+"</a></td></tr></table>";
	var obj2SelHtml="<a title='"+title+"' style=font-size:10pt href=javascript:showTable('"+id+"','"+name+"','"+title+"','"+webname+"','"+barId+"');>"+name+"</a></td></tr></table>";
	var obj2HtmlChange="<table cellspacing=0 cellpadding=0 border=0><tbody><tr><td background=/"+webname+"/images/img_shenqin/banner_left3.gif>";
	var obj2SelHtmlChange="<table cellspacing=0 cellpadding=0 border=0><tbody><tr><td background=/"+webname+"/images/img_shenqin/banner_over3.gif>";
	var obj3Html="<img src=/"+webname+"/images/img_shenqin/banner_left2.gif width=6 height=18>";
	var obj3SelHtml="<img src=/"+webname+"/images/img_shenqin/banner_over2.gif width=6 height=18>";
	try{
		for (var iIndex=0;iIndex<divObj.length; iIndex++){
			if(id==divObj[iIndex].id){
				divObj[iIndex].style.display="block";
				if(id=="navBar.needAttach" || id=="navBar.certAttach" || id =="navBar.textAttach"){
					if (getIEVersion() > 5)
					{
						var allframe = divObj[iIndex].all.tags("iframe");
						if (allframe.length > 0)
						{
							var iframeobj = allframe[0];
							if (iframeobj.contentWindow.document.body.innerText == "") {
								iframeobj.contentWindow.location.reload();
							} else if (iframeobj.contentWindow.document.body.scrollHeight != 0) {
								iframeobj.height = iframeobj.contentWindow.document.body.scrollHeight + 'px';
							}
						}
					}
				}
				
				targetObj1.innerHTML=obj1SelHtml;
				targetObj2.innerHTML=obj2SelHtmlChange+obj2SelHtml;
				targetObj3.innerHTML=obj3SelHtml;
			}
			else{
				if(divObj[iIndex].id!="")
					if(divObj[iIndex].id.indexOf(barId) > -1){
						otherObjId=divObj[iIndex].id;
						divObj[iIndex].style.display="none";
						otherObj1=document.getElementById(barId+otherObjId+"_1");
						otherObj2=document.getElementById(barId+otherObjId+"_2");
						otherObj3=document.getElementById(barId+otherObjId+"_3");
						otherObj1.innerHTML=obj1Html;
						otherObj2.innerHTML=obj2HtmlChange+otherObj2.innerHTML.substring(obj2HtmlChange.length+6);
						otherObj3.innerHTML=obj3Html;
					}
			}
		}

		if(id=="navBar.yddlfjhzb"){
					             
                              doOk();
							 
	                  }
	}
	catch(e){
		;
	}
}

//函数名:submitForm
//功能介绍:WVM页面中按钮对应的提交Form Script
//参数说明:  
//     actionName：需要执行的动作名(与FlowForm.xml中对应)
//   nextTemplate：动作执行后转入的页面
//  activityDefId：环节定义ID
//       btnValue：按钮名称(以进行确定的提示)
//          check：是否需要校验表单中域的合法性 true：需要校验  false：不需要
function execAction(actionName,nextTemplate,activityDefId,btnValue,msgCheck){
	forbid_href();
	if((actionName=="发送" || actionName=="提交申请")&&(sendAction!="")){
		actionName=sendAction;
	}
	document.forms[0].WorkflowAction_Submit.value=actionName;
	document.forms[0].WorkflowAction_NextTemplate.value=nextTemplate;
	closed=false;
	if(msgCheck=="true"){
		if(check(activityDefId)){
			if(infoExec(btnValue)){
				try{
					eval("showWait();")
				}
				catch(e){
				}
				document.forms[0].submit();
			}
		}else{
			allow_href();
		}
	}
	else{
		if(infoExec(btnValue)){
			try{
				eval("showWait();")
			}
			catch(e){
			}
			document.forms[0].submit();
		}
	}
}

//函数名:forbid_href
//功能介绍:禁止各链接
function forbid_href(){
for(i=0;i<document.all.tags("A").length;i++){
	document.all.tags("A")[i].shuxing=document.all.tags("A")[i].href;document.all.tags("A")[i].removeAttribute("href")
}
}
//函数名:allow_href
//功能介绍:允许各链接
function allow_href(){
for(i=0;i<document.all.tags("A").length;i++){
document.all.tags("A")[i].href=document.all.tags("A")[i].shuxing;}
}


function execActionforxz(actionName,nextTemplate,activityDefId,btnValue,msgCheck,type){
	if((actionName=="发送" || actionName=="提交申请")&&(sendAction!="")){
		actionName=sendAction;
	}

	document.forms[0].FlowFormComment_commentContent.value="保存处理意见";
	document.forms[0].WorkflowAction_Submit.value=actionName;
	document.forms[0].WorkflowAction_NextTemplate.value=nextTemplate;
	document.forms[0].AddFormSubmit_type.value=type;
	closed=false;
	if(msgCheck=="true"){
		if(check(activityDefId)){
			if(infoExec(btnValue)){
				try{
					eval("showWait();")
				}
				catch(e){
				}
				document.forms[0].submit();
			}
		}
	}
	else{
		if(infoExec(btnValue)){
			try{
				eval("showWait();")
			}
			catch(e){
			}
			document.forms[0].submit();
		}
	}
}

//函数名:selAddressByName
//功能介绍:根据名字查询地址
//参数说明:  
//     item：域
//   queryName：查询的名字
function selAddressByName(webname,queryName,queryAddress){
	if((queryName=="")&&(queryAddress=="")){
		alert("请至少输入一个查询条件：名字/地址");
		return;
	}
	var sUrl="/"+webname+"/selectAddress.jsp?queryName="+queryName+"&queryAddress="+queryAddress;
    var options="Height:350px;Width:550px;resizable:no;status:no;help:no";
    window.open(sUrl,'SelectAddress',options);
}

//函数名:infoExec
//功能介绍:提示确定执行动作
//参数说明:  
//     msg：提示信息
function infoExec(msg){
	if(msg=="下载申请表"){
		if(window.confirm("是否"+msg+"？下载申请表时，请确认关闭浏览器的弹出窗口拦截功能。")==1){
			return true;
		}
	} if(msg=="暂存"){
   		try{	   
   			if(typeof(doCheckTempSave)=="function")
				result=eval("doCheckTempSave()");
				
			if(window.confirm("是否"+msg+"？")==1){
				return true;
			}else{
			allow_href();
			}						
		}
		catch(e){
			result=true;
		}		
	} else{
		if(window.confirm("是否"+msg+"？")==1){
			return true;
		}else{
			allow_href();
			}	
	}
	return false;
}

function checkClose(){
	window.onunload=onClose;
}

function onClose(){
	if(closed){
		window.showModelessDialog(cancelUrl);
	}
}

//上传相片
function doUploadPhoto(webname, procInsId, loginId) {
	var fileid = document.forms[0].photo.value; // add by raomh 2008-07-11
	
	window.open('/' + webname + '/attachment/uploadPhoto.jsp?procInsId=' + procInsId + '&attachDefType=procphoto&loginId=' + loginId + '&' + fileid, '_AttachUpload', 'height=400, width=650, top=50, left=150, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');}

//显示相片
function showPhoto(webname, fieldvalue, afterupload) {
	
	document.forms[0].photo.value = fieldvalue;

	if (fieldvalue == '') {
		document.forms[0].showphoto.src = '/' + webname + '/images/photo.gif';
	} else {
		document.forms[0].showphoto.src = '/' + webname + '/dodownloadfile?' + fieldvalue;
	}

	if (afterupload == true || fieldvalue == '' || afterupload == false) {   //modify br raomh 2008-07-10
		photooption.style.display = 'block';
	}
}

// 四舍五入
// object : 当前对象 使用 this
// m      : 精度，保留多少位小数
function format(object,m){
	if(object.value=="")
		object.value = "0";
	object.value = parseFloat(object.value).toFixed(m);		
    
}

  try   {   
      (1).toFixed(1);   //   ie5不支持此方法   
  }   
  catch(e)   {   
      Number.prototype.toFixed   =   function(dot)   {   //   所以要在这里定义   
          with(Math){   
              var   m=pow(10,Number(dot))   
              var   s   =   (round(this*m)/m).toString();   
          }   
          if(s.indexOf('.')   <   0)   
                s   +=   ".";   
          s   +=   "000000000000";   
          return   s.substr(0,s.indexOf('.')+dot+1)+"a";   
      }   
  } 
//函数名:date2chinese
//功能介绍:获取中文格式日期字符串
//返回值:中文格式字符串
  function getchinesedate()
  {
	 var ydm =['年','月','日'];
	 var date=new Date();
	 var datestr=date.getYear()+"-"+(date.getMonth()+1)+"-"+date.getDate();//获得日起字符串，如2006-02-27。
     var datePat = /^(\d{2}|\d{4})(\/|-)(\d{1,2})(\2)(\d{1,2})$/; //日期格式的正则表达式。
     var matchArray = datestr.match(datePat);//验证日期格式.并提取相关数字.
     var chinesedate="";
     if (matchArray == null) return false;
     for(var i=1;i<matchArray.length;i=i+2)
     {
         chinesedate+=number2chinese(matchArray[i]-0)+ydm[(i-1)/2];
     }
   return chinesedate;
  }
//函数名:number2chinese
//功能介绍:获取中文格式日期时调用此函数将数字转换成汉字字符串。
//参数说明:
//			s: 年月日对应的数字
  function number2chinese(s)
  { 
    var chinese = ['零','一','二','三','四','五','六','七','八','九'];
	var len = ['十'];
	s=""+s;
	slen = s.length;
	var result="";
    if(s.length==2)//处理两位数字，一般为月和日.
    {
         if(s.charAt(0)=="1")
         {
            if(s.charAt(1)=="0")return len[0];
            return len[0]+chinese[s.charAt(1)];
         }
		 if(s.charAt(1)=="0")return chinese[s.charAt(0)]+len[0];
		
		 return chinese[s.charAt(0)]+len[0]+chinese[s.charAt(1)];
	}else{//将单个数字转成中文，一般是年份的数字。
		for(var i=0;i<slen;i++)
		{
			result+=chinese[s.charAt(i)];
		}
		return result;
	 }
  }
  
  
//函数名:checknum1
//参  数: object,当前对象,使用 this.
//功能介绍:<input>的onkeypress事件，只允许输入数字和小数点。
  function checknum1(Object)
  {
	if(!Object.value.match(/^[\+\-]?\d*?\.?\d*?$/))
	{
		Object.t_value=0;
		Object.value=Object.t_value;
	}
	else
		Object.t_value=Object.value;

	if(Object.value.match(/^(?:[\+\-]?\d+(?:\.\d+)?)?$/))
		Object.o_value=Object.value;
  }

//函数名:checknum2
//参  数: object,当前对象,使用 this.
//功能介绍:<input>的onkeyup事件，只允许输入数字和小数点。
  function checknum2(Object)
  {
	if(!Object.value.match(/^[\+\-]?\d*?\.?\d*?$/))
	{
		Object.t_value=0;
		Object.value=Object.t_value;
	}
    else 
		Object.t_value=Object.value;

	if(Object.value.match(/^(?:[\+\-]?\d+(?:\.\d+)?)?$/))
		Object.o_value=Object.value;
  }

//函数名:checknum3
//参  数: object,当前对象,使用 this.
//		  m,精确到的小数位数。
//功能介绍:<input>的onblur事件，只允许输入数字和小数点，小数点自动补零。
  function checknum3(Object,m)
  {
    if(!Object.value.match(/^(?:[\+\-]?\d+(?:\.\d+)?|\.\d*?)?$/))
		Object.value=Object.o_value;
	else{
		if(Object.value.match(/^\.\d+$/))
			Object.value=0+Object.value;
		if(Object.value.match(/^\.$/))
			Object.value=0;
			Object.o_value=Object.value;
		}
	if(m != null)
		format(Object,m);
  }

//将数字日期转换为中文日期
//参数:numDate 格式:2006-8-1
//转换后日期格式:二〇〇六/八/一
function NumberDateToChina(numDate)
{
  var month;
  var year;
  var date;
  yearMonthDate=numDate.split("-");
  year=ChangeWord(yearMonthDate[0],"0123456789","〇一二三四五六七八九");
  if(yearMonthDate[1].length==1)
    month=ChangeWord(yearMonthDate[1],"0123456789","〇一二三四五六七八九");
  else
    month=ChangeWord(yearMonthDate[1].substr(0,1),"0123456789","  二三四五六七八九")+"十"+ChangeWord(yearMonthDate[1].substr(1,1),"0123456789"," 一二三四五六七八九");
  if(yearMonthDate[2].length==1)
    date=ChangeWord(yearMonthDate[2],"0123456789","〇一二三四五六七八九");
  else
    date=ChangeWord(yearMonthDate[2].substr(0,1),"0123456789","  二三四五六七八九")+"十"+ChangeWord(yearMonthDate[2].substr(1,1),"0123456789"," 一二三四五六七八九");
  return year+"/"+month+"/"+date;
}

//按照参数normal与change中对应的字符
//将sourceStr中在normal出现的字符用change中的替换
//当normal中在change参数中对应的字符为空格时,则忽略
function ChangeWord(sourceStr,normal,change)
{var returnStr="";
 if(sourceStr =="") return sourceStr;
 for(i=0;i<sourceStr.length;i++)
 {
   var str=sourceStr.substr(i,1);
   for(j=0;j<normal.length;j++)
   {
     if(str==normal.substr(j,1))
	 {
	   if(change.substr(j,1)==" ")
	     str="";
	   else
	     str=change.substr(j,1);
	 }
   }
   returnStr+=str;
 }
 return returnStr;
}

function $() {
  var elements = new Array();

  for (var i = 0; i < arguments.length; i++) {
    var element = arguments[i];
    if (typeof element == 'string')
      element = document.getElementById(element);

    if (arguments.length == 1)
      return element;

    elements.push(element);
  }

  return elements;
}

/**
 * 将当前表单对象值累加到目标表单对象上
 */
function valueTo(target){
	var source = $(target).value
	$(target).value = source + '(' + window.event.srcElement.value + ')';
}

/*-------------------------------------------------|
| DynamicTable 0.2 |                               |
|--------------------------------------------------|
| Copyright (c) 2006-2007 (LuYang)SixSun           |
|                                                  |
| This UI can be used freely as long as all        |
| copyright messages are intact.                   |
|                                                  |
| Updated: 2006.09.29                              |
| GOOD IE TT MT                                    |
| BAD  FireFox                                     |    
|--------------------------------------------------*/

/**
 * ==================================================
 * 动态表格的封装类 Version0.2 by SixSun
 * 此 [DynamicTable] 编写方式模拟 Java OOP
 *
 * 可用接口:
 * getRowNum()     - 返回记录总数
 * addRow()        - 增加一行(IE下起作用，FireFox下不起作用)
 * delRow()        - 删除Last一行
 * getTableData()  - 获取整个动态表格数据
 * getRows()       - 获取动态表格行对象数组
 * getRowData(idx) - 获取动态表格某行的数据(idx为行号)
 * getRow(idx)     - 获取动态表格行对象(idx为行号)
 * getFieldByName(fieldName) - 获取动态表格某列的所有数据(fieldName为字段的名称)
 * getFieldByIdx(fieldIdx)   - 获取动态表格某列的所有数据(fieldIdx为字段的顺序号)
 * 
 * ==================================================
 */
function DynamicTable(tableName) {

	/**
	 * ==================================================
	 * Constant values
	 * ==================================================
	 */

	/** Cell分割符号 **/ 
	var CELLSPLIT = '^';
	/** Cell Field分割符号 **/ 
	var CELLFIELDSPLIT = ',';
	/** Row分割符号 **/ 	
	var ROWSPLIT  = '|';
	
	/** Row前缀 **/ 
	var ROWPREFIX = 'RowNo_';

	/**
	 * ==================================================
	 * Private Field
	 * ==================================================
	 */
	var _dynamicTable = $(tableName);
	var _dynamicTableRows = new Array();

	var _headDynamicTableRow;
	var _tableId = tableName;
	

	/**
	 * ==================================================
	 * DynamicTable Methods
	 * ==================================================
	 */	

	
	/**
	 * ==================================================
	 * constructor method(用于初始化一些数据)
	 * ==================================================
	 */

	function dynamicTable(){
		var tableRows = _dynamicTable.getElementsByTagName('TR');
		var headRow = tableRows[1];

		// 将Dom元素封装到 DynamicTableRow(获得首行)
		_headDynamicTableRow = new DynamicTableRow(headRow);
		_dynamicTableRows[_dynamicTableRows.length] = _headDynamicTableRow;
				
		_headDynamicTableRow.setRowId(_dynamicTableRows.length);
		_headDynamicTableRow.setRowIdx(_dynamicTableRows.length);		
	}
	dynamicTable();
	
	/**
	 * ==================================================
	 * public Get methods
	 * ==================================================
	 */
	 
	/** 返回Table的Id **/	 
	this.getTableId = getTableId;
	function getTableId() {
		return _tableId;
	}

		
	/**
	 * ==================================================
	 * public methods(操作表格的接口)
	 * ==================================================
	 */	
	
	/** 返回记录总数 **/
	this.getRowNum = getRowNum;
	function getRowNum() {
		return _dynamicTableRows.length;
	}
    
	/** 增加一行 **/
	this.addRow = addRow;
	function addRow(){
		
		var newRow = _headDynamicTableRow.getBaseRow().cloneNode(true);

		// 将Dom元素封装到 DynamicTableRow
		var dynamicTableRow = new DynamicTableRow(newRow);		
		_headDynamicTableRow.getBaseRow().parentNode.insertAdjacentElement("beforeEnd",dynamicTableRow.getBaseRow());

		_dynamicTableRows[_dynamicTableRows.length] = dynamicTableRow;
		
		
		dynamicTableRow.setRowId(_dynamicTableRows.length);
		dynamicTableRow.setRowIdx(_dynamicTableRows.length);
		dynamicTableRow.clearRowData();
	}

	/** 删除Last一行 **/
	this.delRow = delRow;
	function delRow(){
		if( _dynamicTableRows.length==1 )
			return;

		_dynamicTable.deleteRow();
		_dynamicTableRows[_dynamicTableRows.length--];
	}

	/** 获取整个动态表格数据 **/
	this.getTableData = getTableData;
	function getTableData(){
		var tableData = '';

		for(var i=0; i<_dynamicTableRows.length; i++) {
	   		var dynamicTableRow = _dynamicTableRows[i];
	   		
	   		if(i == _dynamicTableRows.length-1)
				tableData = tableData + dynamicTableRow.getRowData();
			else
			    tableData = tableData + dynamicTableRow.getRowData() + ROWSPLIT;	
        }
		
		return tableData;
	}
	
	/** 获取动态表格行对象数组 **/
	this.getRows = getRows;
	function getRows(){
		return _dynamicTableRows;
	}

	/** 获取动态表格某行的数据 **/
	this.getRowData = getRowData;
	function getRowData(idx){
		if( idx > _dynamicTableRows.length ) return;

	   	var dynamicTableRow = _dynamicTableRows[idx-1];
		return  dynamicTableRow.getRowData();
	}

	/** 获取动态表格行对象 **/
	this.getRow = getRow;
	function getRow(idx){
		if( idx >_dynamicTableRows.length ) return;

	    var dynamicTableRow = _dynamicTableRows[idx-1];
		return dynamicTableRow;
	}

	/** 获取动态表格fieldName列下的所有数据 **/
	this.getFieldByName = getFieldByName;
	function getFieldByName(fieldName){
		var fieldDatas = '';

		for(var i=0; i<_dynamicTableRows.length; i++) {
	   		var dynamicTableRow = _dynamicTableRows[i];
	   		
	   		if(i == _dynamicTableRows.length-1)
				fieldDatas = fieldDatas + dynamicTableRow.getCellFieldData(fieldName);			
			else
				fieldDatas = fieldDatas + dynamicTableRow.getCellFieldData(fieldName) + ROWSPLIT;	
        }

		return fieldDatas;
	}
	
	/** 获取动态表格某列(列的顺序数值,从左到右1开始)下的所有数据 **/
	this.getFieldByIdx = getFieldByIdx;
	function getFieldByIdx(fieldIdx){
		var fieldDatas = '';

		for(var i=0; i<_dynamicTableRows.length; i++) {
	   		var dynamicTableRow = _dynamicTableRows[i];
	   		
	   		if(i == _dynamicTableRows.length-1)
				fieldDatas = fieldDatas + dynamicTableRow.getCellDataByIdx(fieldIdx);
			else
				fieldDatas = fieldDatas + dynamicTableRow.getCellDataByIdx(fieldIdx) + ROWSPLIT;	
        }

		return fieldDatas;
	}

	/**
	 * ==================================================
	 * public methods(还原表格的接口)
	 * ==================================================
	 */
	
	/** 通过已有数据恢复动态表视图组件 **/
	/** data这里暂且为一个表单域的名称  **/

	this.buildTable = buildTable;
	function buildTable(data) {
		
		/** 判断是否需要根据数据自动还原表格 **/
		if(!isBuildTable(data)) 
			return;

		// 获取记录数组
		var records = $(data).value.split(ROWSPLIT);
		
		// 恢复首行记录
		var headRecord = records[0];		
		//alert('headRecord:' + headRecord + '-' + '_headDynamicTableRow:' + _headDynamicTableRow.getRowIdx());
		buildRow(headRecord, _headDynamicTableRow);
				
		/** 从第二条记录开始构建 **/
		for(var i=1; i < records.length; i++) {
			var record = records[i];
			// 创建dynamicTableRow
			addRow();
			// 取回dynamicTableRow
			var dynamicTableRow = getRow(i+1);
			
			//alert('record:' + record + '-' + 'dynamicTableRow:' + dynamicTableRow.getRowIdx());		
			buildRow(record, dynamicTableRow);
		}
	}
	
	/** 通过数据恢复动态表格行视图组件 **/
	function buildRow(record, dynamicTableRow) {
	
		var cells = dynamicTableRow.getCells();
		var cellDatas = record.split(CELLSPLIT);
			
		for(var i=0; i<cells.length; i++) {
			var cell = cells[i];
			var cellData = cellDatas[i];
			cell.setCellData(cellData);
		}
	}

	/** 判断是否需要根据数据自动还原表格 **/
	function isBuildTable(data) {
		if( !isNull( $(data).value ) ) {
			return true;
		} else {
			return false;
		}
	}
	
	/**
	 * ==================================================
	 * private methods
	 * ==================================================
	 */
	function isNull(value) {
		if(value==null) return true;		
		if(value==undefined) return true;		
		if(value=='undefined') return true;		
		if(value.length == 0 ) return true;		
		if(value.length == '' ) return true;		
		return false;
	} 

	/**
	 * ==================================================
	 * Inner function object - Row
	 * ==================================================
	 */
    function DynamicTableRow(row){
		
		/** 被封装的原始TR Dom对象 **/
	    var _baseRow = row;
		var _dynamicTableCells = new Array();
		
		/** 行Id **/
	    var _rowId;
	    /** 行索引号  **/
	    var _rowIdx;

		/**
		 * ==================================================
		 * constructor methods(用于初始化一些数据)
	     * ==================================================
		 */
		this.dynamicTableRow = dynamicTableRow;
		function dynamicTableRow() {

			var tds = _baseRow.getElementsByTagName('TD');

			for(var i=0; i<tds.length; i++) {
	    		var td = tds[i];
				var cell = td.childNodes // 同一个TD下面可能有多个输入域
				
				// 将Dom元素封装到 DynamicTableCell
				var dynamicTableCell = new DynamicTableCell(cell);
				_dynamicTableCells[_dynamicTableCells.length] = dynamicTableCell;				
			}
			
		}
		/** 执行构造函数 **/
		dynamicTableRow();
		
		/**
		 * ==================================================
		 * public set methods
	     * ==================================================
		 */
		 
		/** 设置行Id **/
		this.setRowId = setRowId;
		function setRowId(rowId) {
			_rowId = rowId;
		}
		
		/** 设置行索引号 **/
		this.setRowIdx = setRowIdx;
		function setRowIdx(rowIdx) {
			_rowIdx = rowIdx;
		}		

		/**
		 * ==================================================
		 * public methods
	     * ==================================================
		 */
		
		/** 返回未封装的Row **/
		this.getBaseRow = getBaseRow;
		function getBaseRow() {
			return _baseRow;
		}

		/** 返回Row的Id **/
		this.getRowId = getRowId;
		function getRowId() {
			return _rowId;
		}
		
		/** 返回Row的index **/
		this.getRowIdx = getRowIdx;
		function getRowIdx() {
			return _rowIdx;
		}
		
		/** 获取行数据 **/
		this.getRowData = getRowData;
		function getRowData() {

			var rowData='';
			
			for(var i=0; i< _dynamicTableCells.length; i++) {
	   			var dynamicTableCell = _dynamicTableCells[i];
	   			
	   			if(i == _dynamicTableCells.length-1)
					rowData = rowData + dynamicTableCell.getCellData();
				else
					rowData = rowData + dynamicTableCell.getCellData() + CELLSPLIT;	
			}

			return rowData;
		}
		
		/** 获取当前行的所有Cell对象数组 **/
		this.getCells = getCells;
		function getCells() {
			return _dynamicTableCells;				
		}		
		
		/** 获取当前行中序号为 idx 的Cell对象(1开始,从左到右递增 ) **/
		this.getCellByIdx = getCellByIdx;
		function getCellByIdx(idx) {
		    if( idx >_dynamicTableCells.length ) return;
		    
	   		var dynamicTableCell = _dynamicTableCells[i-1];
			return dynamicTableCell;		
		}
		
		/** 获取当前行中 序号为 idx 的Cell对象值(1开始,从左到右递增 ) **/
		this.getCellDataByIdx = getCellDataByIdx;
		function getCellDataByIdx(idx) {
			if( idx >_dynamicTableCells.length ) return;
			
	   		var dynamicTableCell = _dynamicTableCells[idx-1];
			return dynamicTableCell.getCellData();		
		}
		
		/** 获取当前行中 Cell对象中名称为 fieldName 的 **/
		this.getCellFieldData = getCellFieldData;
		function getCellFieldData(cellFieldName) {
			
			var cellFieldData='';
			
			for(var i=0; i< _dynamicTableCells.length; i++) {
	   			var dynamicTableCell = _dynamicTableCells[i];
				cellFieldData = dynamicTableCell.getCellFieldData(cellFieldName);
							
				if( !isNull(cellFieldData) )
					return cellFieldData;
			}
			
			return cellFieldData;
			
		}		
	
		/** 清除行数据 **/
		this.clearRowData = clearRowData;
		function clearRowData() {
			
			/** 清空当前行对象数据 **/		
			for(var i=0; i< _dynamicTableCells.length; i++) {
	   			var dynamicTableCell = _dynamicTableCells[i];
				dynamicTableCell.clearCellData();
			}	
		}
		
	 }

	/**
	 * ==================================================
	 * Inner function object - Cell
	 * ==================================================
	 */

	 function DynamicTableCell(cell){
		 
		 /** 被封装的原始  Input/Select/TextArea Dom对象 **/	
		 /** cell可由多个 Input/Select/TextArea Dom对象构成 **/
	     var _baseCell = cell;
	     
		/**
		 * ==================================================
		 * constructor methods(用于初始化一些数据)
	     * ==================================================
		 */
		 function dynamicTableCell() {
		 
		 }
		 dynamicTableCell();

		/**
		 * ==================================================
		 * public methods
	     * ==================================================
		 */
		
		/** 返回未封装的cell **/
		this.getBaseCell = getBaseCell;
		function getBaseCell() {
			return _baseCell;
		}

		/** 设置cell的data **/
		this.setCellData = setCellData;
		function setCellData(data) {
			
			/** Cell中有多个值域时 **/
			if(_baseCell.length > 1) {
				
				var cellFieldDatas = data.substr(1,data.length-1).split(CELLFIELDSPLIT);				
				for(var i=0; i < _baseCell.length; i++) {				
					var cellField = _baseCell[i];
					var cellFieldData = cellFieldDatas[i];
					
		 			if(cellField.tagName=='INPUT' && ( cellField.type=='radio' || cellField.type=='checkbox') && !isNull(data) ) {
						cellField.checked=true;	
					} else {		
						cellfield.value = cellFieldData;
		 			}
				}
				
			/** Cell中只有一个值域时 **/
			} else if( _baseCell.length == 1 ) {
				
				var cellField = _baseCell[0];
		 		if(cellField.tagName=='INPUT' && ( cellField.type=='radio' || cellField.type=='checkbox') && !isNull(data) ) {
					cellField.checked=true;	
				} else {		
					cellField.value = data;
		 		}
			/** Cell中没有值域时 **/
			} else if( _baseCell.length < 1 ) {
					
			}

		}

		/** 返回cell的数据 **/
		this.getCellData = getCellData;
		function getCellData() {

			var cellData = '';
			
			/** Cell中有多个值域时 **/			
			if(_baseCell.length > 1) {
				
				cellData = cellData + '[';				
				for(var i=0; i < _baseCell.length; i++) {				
					var cellField = _baseCell[i];
					
					if( i == _baseCell.length-1 )
						cellData = cellData + getFieldValue(cellField);
					else
						cellData = cellData + getFieldValue(cellField) + CELLFIELDSPLIT;	
				}				
				cellData = cellData + ']';
			
			/** Cell中只有一个值域时 **/
			} else if( _baseCell.length == 1 ) {
				var cellField = _baseCell[0];
				cellData = getFieldValue(cellField);
			
			/** Cell中没有值域时 **/
			} else if( _baseCell.length < 1 ) {
				cellData = null;
			}
			
			return cellData;
		}
		
		/** 如果cell中有多个值域,返回指定名称的字段值 **/
		this.getCellFieldData = getCellFieldData;
		function getCellFieldData(cellFieldName) {
			
			if(_baseCell.length > 0) {

				for(var i=0; i < _baseCell.length; i++) {				
					var cellField = _baseCell[i];		
					if(cellField.id == cellFieldName) {
						return getFieldValue(cellField);
					}
				}
			}

			return '';
		}		
		
		/** 清空当前Cell对象数据 **/
		this.clearCellData = clearCellData;
		function clearCellData() {
	
			if(_baseCell.length > 0) {
				for(var i=0; i < _baseCell.length; i++) {				
					var cellField = _baseCell[i];
					clearFieldValue(cellField);
				}
			}
		}
		
		/**
		 * ==================================================
		 * private methods
	     * ==================================================
		 */
		 function getFieldValue(cellField) {
		 	if( cellField.tagName=='INPUT' && (cellField.type=='radio' || cellField.type=='checkbox') ) {
	 			if(cellField.checked == true)
		 			return cellField.value;
		 		else
		 		    return '';//是否用null?		
		 	} else {
		 		return cellField.value;
		 	}
		 }
		 
		 function clearFieldValue(cellField) {
		 	if(cellField.tagName=='INPUT' && (cellField.type=='radio' || cellField.type=='checkbox') ) {

		 	} else if(cellField.tagName=='SELECT') {

		 	} else {
		 		cellField.value = '';
		 	}
		 }		 
		 		
    }
}

/**
 * get Element By Id or name.
 * 根据一个dom对象的名称返回这个对象，省略了你
 * 直接操作document.getElementById的过程.
 * 
 * 例如: $('默认文本框的名称').value 
 *       就可以取得它的value
 */
function $() {
  var elements = new Array();

  for (var i = 0; i < arguments.length; i++) {
    var element = arguments[i];
    if (typeof element == 'string')
      element = document.getElementById(element);

    if (arguments.length == 1)
      return element;

    elements.push(element);
  }

  return elements;
}


//全角转半角

function CtoH(obj)
{ 
var str=obj.value;
var result="";
for (var i = 0; i < str.length; i++)
{
if (str.charCodeAt(i)==12288)
{
result+= String.fromCharCode(str.charCodeAt(i)-12256);
continue;
}
if (str.charCodeAt(i)>65280 && str.charCodeAt(i)<65375)
result+= String.fromCharCode(str.charCodeAt(i)-65248);
else result+= String.fromCharCode(str.charCodeAt(i));
} 
obj.value=result;
} 


//公务员修改申请表
//参数:name       要修改的申请表字段ID
//     describe   要修改的申请表字段中文名(定制时指定)
//功能介绍:定制申请表$ModifyButton.add().setKeyword("name").setDescribe("describe"),name指定的字段允许公务员修改。

function showModifyPage(webName,userId,auditId,schemeId,procInsId,name,describe){
	var obj = document.getElementById(name)
	var type = obj.type;
	var oldValue = obj.value;
	if(type == 'select-one'){
		var optionsStr="";
		for(i = 0;i < obj.length; i++){
			optionName = obj.options[i].text;
			optionValue = obj.options[i].value;
			if(optionName != ''){
				optionsStr = optionsStr+optionName+':'+optionValue
					if(i != obj.length-1)
						optionsStr = optionsStr + ';'
			}
		}
		var sUrl="/"+webName+ "/js/modifyPage.jsp?userId="+userId+"&auditId="+auditId+"&schemeId="+schemeId+"&procInsId="+procInsId+"&name="+name+"&oldValue="+oldValue+"&describe="+describe+"&optionsStr="+optionsStr;
		window.open(sUrl,'修改页面', 'height=240, width=400, top=300,left=350, toolbar=no, menubar=no, scrollbars=no, resizable=yes,location=no, status=no');
	}else{
		var sUrl="/"+webName+ "/js/modifyPage.jsp?userId="+userId+"&auditId="+auditId+"&schemeId="+schemeId+"&procInsId="+procInsId+"&name="+name+"&oldValue="+oldValue+"&describe="+describe;
		window.open(sUrl,'修改页面', 'height=240, width=400, top=300,left=350, toolbar=no, menubar=no, scrollbars=no, resizable=yes,location=no, status=no');
	}
}