var dlgGiven = new Dialog();
	dlgGiven.Width = 300;
	dlgGiven.Height = 150;
	dlgGiven.Title = "领取任务";
	dlgGiven.OkButtonText='';
	dlgGiven.ButtonStyle="btn_tj";
	dlgGiven.ShowButtonRow=true;
	dlgGiven.CancelButtonText='确 认';
	dlgGiven.CancelEvent=function(){dlgGiven.openerWindow.location.reload();};
	



	var dlgDo = new Dialog();
	dlgDo.Title = "提交任务结果";
	dlgDo.ButtonStyle="btn_tj";
	
	var taskshow = new Dialog();
	taskshow.Title = "查看任务";
	taskshow.ButtonStyle="btn_tj";
	taskshow.ShowButtonRow=true;
	taskshow.OkButtonText='';
	taskshow.CancelButtonText='确 认';
	taskshow.Width = 700;
	taskshow.Height = 520;
	
	var dlgList = new Dialog();
	dlgList.Title = "查看任务执行进度";
	dlgList.ButtonStyle="btn_tj";
	dlgList.ShowButtonRow=true;
	dlgList.OkButtonText='';
	dlgList.CancelButtonText='确 认';
	dlgList.Width = 700;
	dlgList.Height = 520;
	
	function openDo(utId,c,typeid){
		dlgDo.URL = "/Task_"+utId+"_"+typeid+"/taskDo";
		if (c=='ARTICLE'){
			dlgDo.Width = 600;
			dlgDo.Height = 520;			
		}else if (c=='PIECE'){
			dlgDo.Width = 400;
			dlgDo.Height = 550;			
		}else{
			dlgDo.Width = 350;
			dlgDo.Height = 350;			
		}

		dlgDo.OKEvent=function(){
			//dlgDo.innerDoc.getElementById('userTaskId').value=utId;
			//dlgDo.innerDoc.getElementById('actName').value=actName;				
			dlgDo.innerDoc.getElementById('frmDo').submit();
			dlgDo.submited=true;
		};
		dlgDo.OnLoad=function(){
				if(dlgDo.submited){
					alert('您做的任务已经提交!');
					dlgDo.openerWindow.location.reload();
				try{
					dlgDo.close();
				}catch(e){}
			}
		};	
		dlgDo.show();

	}
	var dlgView = new Dialog();
	dlgView.OkButtonText='';
	dlgView.ButtonStyle="btn_tj";
	dlgView.ShowButtonRow=true;
	dlgView.CancelButtonText='确 认';	
	function openView(title,url,refresh,width,height){
		dlgView.Title = title;
		if (refresh) dlgView.CancelEvent=function(){dlgView.openerWindow.location.reload();};
		dlgView.Width=width?width:600;
		dlgView.Heith=height?height:520;
		dlgView.show(url);
	}
