//弹开查看窗口
function openview(isocid){
	var th =  document.form1;
	var window_height = screen.availHeight -70 ;
	var window_width = screen.availWidth -150 ;
	var window_dimensions = "top = 20" + ",left = 50" + ",height=" + window_height + ",width=" + window_width + ",scrollbars=yes" + ",resizable=1,status=yes";
	window.open('','viewisoc'+isocid,window_dimensions);
	th.action = "showisoc.jsp?isocid="+isocid;
	th.target = "viewisoc"+isocid;
	th.submit();
}
//弹开修改窗口
function openupdate(isocid){
	var th =  document.form1;
	th.action_flag.value="updateisoc";
	var window_height = screen.availHeight -70 ;
	var window_width = screen.availWidth -150 ;
	var window_dimensions = "top = 20" + ",left = 50" + ",height=" + window_height + ",width=" + window_width + ",scrollbars=yes" + ",resizable=1,status=yes";
	window.open('','update',window_dimensions);
	th.action = "updateisoc.jsp?isocid="+isocid;
	th.target = "update";
	th.submit();
}
//弹开添加窗口
function openadd(){
	var th =  document.form1;
	th.action_flag.value="addisoc";
	var window_height = screen.availHeight -70 ;
	var window_width = screen.availWidth -150 ;
	var window_dimensions = "top = 20" + ",left = 50" + ",height=" + window_height + ",width=" + window_width + ",scrollbars=yes" + ",resizable=1,status=yes";
	window.open('','addisoc',window_dimensions);
	th.target = "addisoc";
	th.action = "addisoc.jsp";
	th.submit();
}

//添加提交
function addsubmit(){
	var th =  document.form1;
	if(trim(th.isoc_name.value)==""){
		alert("请输入名称");
		return;
	}
	th.action_flag.value = "add";
	th.action = "addisoc.jsp";
	th.target = "_self";
	th.submit();
}

//修改提交
function updatesubmit(actionurl){
	var th =  document.form1;
	if(actionurl==""){
		if(trim(th.isoc_name.value)==""){
			alert("请输入文件名称！");
			return;
		}
		th.action = "updateisoc.jsp";
	}else{
		th.action = actionurl;	
	}	
	th.action_flag.value = "update";
	th.target = "_self";
	th.submit();
}

//删除提交
function dodelete(isocid){
	if (!confirm("确定删除本条信息么?")){
		return ;
	}
	var th = document.form1;
	th.action_flag.value="delete";
	th.action = "isocmanager.jsp?hid_CurrPage=&isocid="+isocid;
	th.target = "_self";
	th.submit();
}

//回刷
function doreload(){
	var th =  document.form1;
	th.action_flag.value="reload";
	th.action = "";
	th.target = "_self";
	th.submit();
}

//manager界面用
function loadtype(isocid,type){
	var th =  document.form1;
	th.action_flag.value="enter";
	//alert("type-->>"+type);
	if(isocid==""){
		th.action = "isocmanager.jsp?hid_CurrPage=";
	}else if(type=="1"){
		th.action = "isocintromanager.jsp?type="+type+"&isocid="+isocid+"&hid_CurrPage=";
	}else if(type=="2"){
		th.action = "isocorgmanager.jsp?type="+type+"&isocid="+isocid+"&hid_CurrPage=";
	}else if(type=="3"){
		th.action = "isocfilemanager.jsp?type="+type+"&isocid="+isocid+"&hid_CurrPage=";
	}else if(type=="4"){
		th.action = "isoctrendsmanager.jsp?type="+type+"&isocid="+isocid+"&hid_CurrPage=";
	}else{
		th.action = "isocdirectormanager.jsp?type="+type+"&isocid="+isocid+"&hid_CurrPage=";
	}
	th.target = "_self";
	th.submit();
}

//list界面用
function loadtypelist(isocid,type){
	var th =  document.form1;
	th.action_flag.value="enter";
	//alert("type-->>"+type);
	if(isocid==""){
		th.action = "isoclist.jsp?hid_CurrPage=";
	}else if(type=="1"){
		th.action = "isocintrolist.jsp?type="+type+"&isocid="+isocid+"&hid_CurrPage=";
	}else if(type=="2"){
		th.action = "isocorglist.jsp?type="+type+"&isocid="+isocid+"&hid_CurrPage=";
	}else if(type=="3"){
		th.action = "isocfilelist.jsp?type="+type+"&isocid="+isocid+"&hid_CurrPage=";
	}else if(type=="4"){
		th.action = "isoctrendslist.jsp?type="+type+"&isocid="+isocid+"&hid_CurrPage=";
	}else{
		th.action = "isocdirectorlist.jsp?type="+type+"&isocid="+isocid+"&hid_CurrPage=";
	}
	th.target = "_self";
	th.submit();
}

//主页界面用
function loadmainlist(isocid){
	var th = parent.document.form1;
	parent.document.form1.action = "jsp/webpage/isoc/isocintrolist.jsp?isocid="+isocid;
	th.target = "_self";
	th.submit();
}


//---------------------------文件模块使用的脚本--------------------------
//删除提交
function dodeletefile(isocfileid){
	if (!confirm("确定删除本条信息么?")){
		return ;
	}
	var th = document.form1;
	th.action_flag.value="delete";
	th.action = "isocfilemanager.jsp?isocfileid="+isocfileid;
	th.target = "_self";
	th.submit();
}
//弹开查看窗口
function openviewfile(isocfileid){
	var th =  document.form1;
	var window_height = screen.availHeight -70 ;
	var window_width = screen.availWidth -150 ;
	var window_dimensions = "top = 20" + ",left = 50" + ",height=" + window_height + ",width=" + window_width + ",scrollbars=yes" + ",resizable=1,status=yes";
	window.open('','viewisocfile',window_dimensions);
	th.action = "showisocfile.jsp?isocfileid="+isocfileid;
	th.target = "viewisocfile";
	th.submit();
}
//弹开修改窗口
function openupdatefile(isocfileid){
	var th =  document.form1;
	th.action_flag.value="updateisocfile";
	var window_height = screen.availHeight -70 ;
	var window_width = screen.availWidth -150 ;
	var window_dimensions = "top = 20" + ",left = 50" + ",height=" + window_height + ",width=" + window_width + ",scrollbars=yes" + ",resizable=1,status=yes";
	window.open('','update',window_dimensions);
	th.action = "updateisocfile.jsp?isocfileid="+isocfileid;
	th.target = "update";
	th.submit();
}
//弹开添加窗口
function openaddfile(){
	var th =  document.form1;
	th.action_flag.value="addisocfile";
	var window_height = screen.availHeight -70 ;
	var window_width = screen.availWidth -150 ;
	var window_dimensions = "top = 20" + ",left = 50" + ",height=" + window_height + ",width=" + window_width + ",scrollbars=yes" + ",resizable=1,status=yes";
	window.open('','addisocfile',window_dimensions);
	th.target = "addisocfile";
	th.action = "addisocfile.jsp";
	th.submit();
}

//添加提交
function addfilesubmit(){
	var th =  document.form1;
	if(trim(th.file_name.value)==""){
		alert("请输入文件名称！");
		return;
	}
	th.action_flag.value = "add";
	th.action = "addisocfile.jsp";
	th.target = "_self";
	th.submit();
}

//修改提交
function updatefilesubmit(){
	var th =  document.form1;
	if(trim(th.file_name.value)==""){
		alert("请输入文件名称！");
		return;
	}
	th.action_flag.value = "update";
	th.action = "updateisocfile.jsp";
	th.target = "_self";
	th.submit();
}


//---------------------文件模块使用的脚本---------END------------------------

//---------------------------动态模块使用的脚本--------------------------
//删除提交
function dodeletetrends(isoctrendsid){
	if (!confirm("确定删除本条信息么?")){
		return ;
	}
	var th = document.form1;
	th.action_flag.value="delete";
	th.action = "isoctrendsmanager.jsp?isoctrendsid="+isoctrendsid;
	th.target = "_self";
	th.submit();
}
//弹开查看窗口
function openviewtrends(isoctrendsid){
	var th =  document.form1;
	var window_height = screen.availHeight -70 ;
	var window_width = screen.availWidth -150 ;
	var window_dimensions = "top = 20" + ",left = 50" + ",height=" + window_height + ",width=" + window_width + ",scrollbars=yes" + ",resizable=1,status=yes";
	window.open('','viewisoctrends',window_dimensions);
	th.action = "showisoctrends.jsp?isoctrendsid="+isoctrendsid;
	th.target = "viewisoctrends";
	th.submit();
}
//弹开修改窗口
function openupdatetrends(isoctrendsid){
	var th =  document.form1;
	th.action_flag.value="updateisoctrends";
	var window_height = screen.availHeight -70 ;
	var window_width = screen.availWidth -150 ;
	var window_dimensions = "top = 20" + ",left = 50" + ",height=" + window_height + ",width=" + window_width + ",scrollbars=yes" + ",resizable=1,status=yes";
	window.open('','update',window_dimensions);
	th.action = "updateisoctrends.jsp?isoctrendsid="+isoctrendsid;
	th.target = "update";
	th.submit();
}
//弹开添加窗口
function openaddtrends(){
	var th =  document.form1;
	th.action_flag.value="addisoctrends";
	var window_height = screen.availHeight -70 ;
	var window_width = screen.availWidth -150 ;
	var window_dimensions = "top = 20" + ",left = 50" + ",height=" + window_height + ",width=" + window_width + ",scrollbars=yes" + ",resizable=1,status=yes";
	window.open('','addisoctrends',window_dimensions);
	th.target = "addisoctrends";
	th.action = "addisoctrends.jsp";
	th.submit();
}

//添加提交
function addtrendssubmit(){
	var th =  document.form1;
	if(trim(th.title.value)==""){
		alert("请输入文件名称！");
		return;
	}
	th.action_flag.value = "add";
	th.action = "addisoctrends.jsp";
	th.target = "_self";
	th.submit();
}

//修改提交
function updatetrendssubmit(){
	var th =  document.form1;
	if(trim(th.title.value)==""){
		alert("请输入文件名称！");
		return;
	}
	th.action_flag.value = "update";
	th.action = "updateisoctrends.jsp";
	th.target = "_self";
	th.submit();
}


//---------------------动态模块使用的脚本---------END------------------------

//---------------------------理事单位模块使用的脚本--------------------------
//删除提交
function dodeletedirector(isocdirectorid){
	if (!confirm("确定删除本条信息么?")){
		return ;
	}
	var th = document.form1;
	th.action_flag.value="delete";
	th.action = "isocdirectormanager.jsp?isocdirectorid="+isocdirectorid;
	th.target = "_self";
	th.submit();
}
//弹开查看窗口
function openviewdirector(isocdirectorid){
	var th =  document.form1;
	var window_height = screen.availHeight -70 ;
	var window_width = screen.availWidth -150 ;
	var window_dimensions = "top = 20" + ",left = 50" + ",height=" + window_height + ",width=" + window_width + ",scrollbars=yes" + ",resizable=1,status=yes";
	window.open('','viewisocdirector',window_dimensions);
	th.action = "showisocdirector.jsp?isocdirectorid="+isocdirectorid;
	th.target = "viewisocdirector";
	th.submit();
}
//弹开修改窗口
function openupdatedirector(isocdirectorid){
	var th =  document.form1;
	th.action_flag.value="updateisocdirector";
	var window_height = screen.availHeight -70 ;
	var window_width = screen.availWidth -150 ;
	var window_dimensions = "top = 20" + ",left = 50" + ",height=" + window_height + ",width=" + window_width + ",scrollbars=yes" + ",resizable=1,status=yes";
	window.open('','update',window_dimensions);
	th.action = "updateisocdirector.jsp?isocdirectorid="+isocdirectorid;
	th.target = "update";
	th.submit();
}
//弹开添加窗口
function openadddirector(){
	var th =  document.form1;
	th.action_flag.value="addisocdirector";
	var window_height = screen.availHeight -70 ;
	var window_width = screen.availWidth -150 ;
	var window_dimensions = "top = 20" + ",left = 50" + ",height=" + window_height + ",width=" + window_width + ",scrollbars=yes" + ",resizable=1,status=yes";
	window.open('','addisocdirector',window_dimensions);
	th.target = "addisocdirector";
	th.action = "addisocdirector.jsp";
	th.submit();
}

//添加提交
function adddirectorsubmit(){
	var th =  document.form1;
	if(trim(th.dep_name.value)==""){
		alert("请输入单位名称！");
		return;
	}
	th.action_flag.value = "add";
	th.action = "addisocdirector.jsp";
	th.target = "_self";
	th.submit();
}

//修改提交
function updatedirectorsubmit(){
	var th =  document.form1;
	if(trim(th.dep_name.value)==""){
		alert("请输入文件名称！");
		return;
	}
	th.action_flag.value = "update";
	th.action = "updateisocdirector.jsp";
	th.target = "_self";
	th.submit();
}

//---------------------理事单位模块使用的脚本---------END------------------------
