	function ShowTaskInfo(oMy)
	{
		if((oMy.val3 != "-1") && (oMy.val3 != "-2")) 
		{
			var sHref = "taskinfo.jsp?command=NEW"
									+ "&PRJCODE="+ oMy.val1
									+ "&RESID="  + oMy.val2
									+ "&TASKID=" + oMy.val3
			var sDimension = 'dialogHeight:300px;dialogWidth:650px';
			showModalDialog( sHref ,"", sDimension );
		}
	}

	function SetEditData(oMy)
	{
		//if((oMy.val3 != "-1") && (oMy.val3 != "-2")) 
		if(oMy.val3 != "-1")
		{
			var oFrom = document.fOperate;
			var strEmpty ="";
			if( strEmpty == oFrom.TASK_ID.value )
			{
				
				oFrom.PRJCODE.value            = oMy.val1;
				oFrom.RESOURCE_ID.value        = oMy.val2;
				oFrom.TASK_ID.value            = oMy.val3;
				oFrom.DYSTART.value            = oMy.val4;
				//oFrom.DYDELAY.value          = 
				oFrom.DURATION.value           = oMy.val5;
				oFrom.NAME.value               = oMy.val6;
			}
			else if( strEmpty == oFrom.TASK_ID3.value )
			{
				oFrom.PRJCODE3.value            = oMy.val1;
				oFrom.RESOURCE_ID3.value        = oMy.val2;
				oFrom.TASK_ID3.value            = oMy.val3;
				oFrom.DYSTART3.value            = oMy.val4;
				//oFrom.DYDELAY3.value          = 
				oFrom.DURATION3.value           = oMy.val5;
				oFrom.NAME3.value               = oMy.val6;
			}
		}
	}

	function ClearForm()
	{
		var oFrom = document.fOperate;
		var oGroup = new Array(
								oFrom.PRJCODE       
							,	oFrom.RESOURCE_ID   
							,	oFrom.TASK_ID       
							,	oFrom.DYSTART       
							,	oFrom.DYDELAY       
							,	oFrom.DURATION      
							,	oFrom.NAME          
							,	oFrom.PRJCODE3     
							,	oFrom.RESOURCE_ID3 
							,	oFrom.TASK_ID3     
							,	oFrom.DYSTART3     
							,	oFrom.DYDELAY3     
							,	oFrom.DURATION3    
							,	oFrom.NAME3    
							,	oFrom.CDKH			);

		for (nIndex in oGroup)	oGroup[nIndex].value = "";

		return true;
	}
