rem: if( oIEC.length == 1 ) 
add: if( oIEC.length > 0 ) 
context: 	collect_parameter : function( )	{		// Clear parameter array		this.__parameter = new Array( );								var k = 0;		//oTRC[i] is <tr></tr> section		var oTRC = document.getElementById( "parameter_table" ).getElementsByTagName( "TR" );		for( var i = 0; i < oTRC.length; i++ )		{			if( !this.__parameter[k] )			{				this.__parameter[k] = { };			}						//input element collection			var oIEC = oTRC[i].getElementsByTagName( "input" );			//select element collection			var oSEC = oTRC[i].getElementsByTagName( "select" );			//avoid group parameter			var oTable = oTRC[i].getElementsByTagName( "table" );			if( oTable.length > 0 || ( oSEC.length == 0 && oIEC.length == 0 ) || ( oIEC.length == 1 && oIEC[0].type == 'submit' ) )			{				continue;			}						if( oSEC.length == 1 && oIEC.length <= 1 )			{				// deal with "select" parameter				if( oIEC.length == 1 )				{					this.__parameter[k].name = oIEC[0].name;				}				else				{					this.__parameter[k].name = oSEC[0].name;				}				this.__parameter[k].value = oSEC[0].options[oSEC[0].selectedIndex].value;				k++;			}						if( oSEC.length == 0 && ( oIEC.length == 1 || oIEC.length == 2 ) )			{				var temp = {};				var tempDef = null;				if( oIEC.length == 1 )				{					temp = oIEC[0]				}				else if( oIEC[0].type == 'hidden' )				{					tempDef = oIEC[0]					temp = oIEC[1];				}				else				{					continue;				}								if( temp.type == 'text' || temp.type == 'password' )				{					// deal with "text" parameter					this.__parameter[k].name = temp.name;					// if the parameter neither has a value nor a default value, error					if( birtUtility.trim( temp.value ) == '' )					{						if( tempDef )						{							temp.focus( );							alert( temp.name + ' cannot be blank' );							return false;						}						else						{							this.__parameter[k].value = temp.value;						}					}					else					{						this.__parameter[k].value = temp.value;					}					k++;				}				else if( temp.type == 'checkbox' )				{					// deal with checkbox					this.__parameter[k].name = temp.value;					temp.checked?this.__parameter[k].value = 'true':this.__parameter[k].value = 'false';  					k++;				}				else				{					//handle more cases				}			}			else if( oSEC.length <= 1 && oIEC.length > 2 )			{				for( var j = 0; j < oIEC.length; j++ )				{					// deal with radio					if( oIEC[j].type == 'radio' && oIEC[j].checked )					{						if( oIEC[j+1] && ( oIEC[j+1].type == 'text' || oIEC[j+1].type == 'password' ) )						{							//Check if allow blank							var temp = oIEC[j+2];							if ( temp && temp.value == 'true' )							{								if ( birtUtility.trim( oIEC[j+1].value ) == '' )								{									oIEC[j+1].focus( );									alert( temp.name + ' cannot be blank' );									return false;								}							}														// deal with radio box with textarea or password area							if( oIEC[j+1].name && oIEC[j+1].value )							{								this.__parameter[k].name = oIEC[j+1].name								this.__parameter[k].value = oIEC[j+1].value;								k++;							}							else							{								this.__parameter[k].name = oIEC[j].value								this.__parameter[k].value = oIEC[j+1].value;								//oIEC[j+1].value = "";								k++;	            							}						}						else if( oSEC[0] )						{							// deal with "select" parameter														if ( oSEC[0].selectedIndex == -1 )							{								oSEC[0].focus( );								alert( oIEC[j].value + " should have a value" );								return false;							}														var temp = oSEC[0].options[oSEC[0].selectedIndex].text;							if ( !temp )							{								oSEC[0].focus( );								alert( oIEC[j].value + " should have a value" );								return false;															}														// Check if select 'Null Value' option															if( temp && temp != 'Null Value' )							{									this.__parameter[k].name = oIEC[j].value;															this.__parameter[k].value = oSEC[0].options[oSEC[0].selectedIndex].value;								k++;							}							else							{								this.__parameter[k].name = this.__isnull;								this.__parameter[k].value = oIEC[j].value;								k++;															}						}						else if( !oIEC[j+1] && !oIEC[j].name )						{							//deal with common radio with null value							this.__parameter[k].name = this.__isnull;							this.__parameter[k].value = oIEC[j-1].name;							k++;						}						else						{							//deal with common radio							this.__parameter[k].name = oIEC[j].name;							this.__parameter[k].value = oIEC[j].value;							k++;						}					}				}			}		}		return true;	},
meta: 855	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/855/55ddebd8b3c630b013039df20d94a214fb18d6dd/BirtParameterDialog.js/buggy/viewer/org.eclipse.birt.report.viewer/birt/webcontent/birt/ajax/ui/dialog/BirtParameterDialog.js