	function addLogActionSection(suf)
	{
		if (null == suf) suf = '';
		document.writeln('<!-- log action section begin -->');
		document.writeln('<input type="hidden" id="logText' + suf + '" name="logText' + suf + '" />');
		document.writeln('<input type="hidden" id="logComment' + suf + '" name="logComment' + suf + '" />');
		document.writeln('<!-- log action section end -->');
	}
	
	function getLogActionSectionTxt(suf)
	{
		if (null == suf) suf = '';
		return 	'<!-- log action section begin -->' +
				'<input type="hidden" id="logText' + suf + '" name="logText' + suf + '" />' + 
				'<input type="hidden" id="logComment' + suf + '" name="logComment' + suf + '" />' +
				'<!-- log action section end -->';
	}
	
	function copyLogActionSection(suf)
	{
		if (null == suf) return;
		$('logText' + suf).value = $F('logText');
		$('logComment' + suf).value = $F('logComment');
	}
	
	function setLogActionText(text)
	{
		$('logText').value = text; 
	}
	
	function nullIfEmpty(val)
	{
		if (null != val && '' != val)
	  		return val;
	  	else
	  		return 'NULL'; 
	}	  
