
//公用
var EvaluationCommon = {
	url : '',
	//查看表
 	viewPlan : function (plan_id,year_or_month,owner){
		url='../plan/!commonViewPlanRead.do';
		new Ajax.Request(url, {
			method: 'post',
			parameters: {
				id:plan_id,
				year_or_month:year_or_month
			},
			onComplete: function(transport){
				var result = transport.responseText;//eval( '(' + transport.responseText + ')' );
				$('div_plan_content').innerHTML = result;
				$('div_index_content').style.display='none';
				$('div_plan_content').style.display='block';
				$('un_planlist_window').style.display='none';
				EvaluationCommon.showPlansListRead(plan_id,year_or_month);
				EvaluationCommon.showPlansNoteListRead(plan_id,year_or_month);
			}
		});
	},
	
	viewPlan1 : function (plan_id,year_or_month,owner){
		url='../plan/!commonViewPlanReadCheck.do';
		new Ajax.Request(url, {
			method: 'post',
			parameters: {
				id:plan_id,
				year_or_month:year_or_month
			},
			onComplete: function(transport){
				var result = transport.responseText;//eval( '(' + transport.responseText + ')' );
				$('div_plan_content').innerHTML = result;
				$('div_index_content').style.display='none';
				$('div_plan_content').style.display='block';
				$('un_planlist_window').style.display='none';
				
				EvaluationCommon.showPlansListRead(plan_id,year_or_month);
				EvaluationCommon.showPlansNoteListRead(plan_id,year_or_month);
			}
		});
	},
	
	//显示plans_list
	showPlansListRead : function (plan_id,year_or_month){
		
		var url='../plans/!commonShowPlansListRead.do';
		new Ajax.Request(url, {
			method: 'post',
			parameters: {
				plan_id:plan_id,
				year_or_month:year_or_month
			},
			onComplete: function(transport){
				var result = transport.responseText;//eval( '(' + transport.responseText + ')' );
				$('div_plans_list').innerHTML = result;
	
			}
		});
	},
	
	//显示div_plans_note_list
	showPlansNoteListRead : function (plan_id,year_or_month){
		var url='../plans/!commonShowPlansNoteListRead.do';
		new Ajax.Request(url, {
			method: 'post',
			parameters: {
				plan_id:plan_id,
				year_or_month:year_or_month
			},
			onComplete: function(transport){
				var result = transport.responseText;//eval( '(' + transport.responseText + ')' );
				$('div_plans_note_list').innerHTML = result;
	
			}
		});
	},

	/*
	*关闭plan
	*/
	closePlan : function (){

		$('div_index_content').style.display='block';
		$('div_plan_content').style.display='none';
		
	},
	
	closePlan1 : function (){
			
		$('div_index_content').style.display='block';
		$('div_plan_content').style.display='none';
		$('un_planlist_window').style.display='block';
	},
	
	windowHide : function (ww){
		ww.hide();
	}
}
var message;
function Message(){
	var name;
	var unPositionId;
	var unPositionName;
	var unEmployeeName;
	var upPositionId;
	var upPositionName;
	var content;
	var planId;
}

