if ( this.__is_parameter_not_allowblank( oIEC ) && birtUtility.trim( paramValue ) == '' && this.visible ) 
if ( this.__is_parameter_required( oIEC ) && birtUtility.trim( paramValue ) == '' && this.visible ) 
	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;			}						// control type			var oType = oIEC[0].value;			// deal with "hidden" parameter			if( oType == 'hidden' )			{				var temp = oIEC[1];				this.__parameter[k].name = temp.name;				this.__parameter[k].value = temp.value;				k++;								// set display text				if( !this.__parameter[k] )				{					this.__parameter[k] = { };				}				this.__parameter[k].name = this.__isdisplay + this.__parameter[k-1].name;				this.__parameter[k].value = oIEC[2].value;				k++;										continue;			}						// deal with "checkbox" parameter			if( oType == 'checkbox' )			{				var temp = oIEC[2];				this.__parameter[k].name = temp.value;				temp.checked?this.__parameter[k].value = 'true':this.__parameter[k].value = 'false';  				k++;				continue;			}									// deal with "text" parameter			if( oType == 'text' )			{				// allow null				if( oIEC[1] && oIEC[1].type == 'radio' )				{					if( oIEC[1].checked )					{						var paramName = oIEC[2].name;						var paramValue = oIEC[3].value;						var displayText = oIEC[4].value;												if( displayText != oIEC[2].value )						{							// change the text field value,regard as a locale string							paramValue = oIEC[2].value;														// set isLocale flag														this.__parameter[k].name = this.__islocale;							this.__parameter[k].value = paramName;							k++;							}												// check if allow blank						if( this.__is_parameter_not_allowblank( oIEC ) 							&& birtUtility.trim( paramValue ) == '' && this.visible )						{							oIEC[2].focus( );							alert( paramName + ' cannot be blank' );							return false;						}																			// set parameter value						if( !this.__parameter[k] )						{							this.__parameter[k] = { };						}						this.__parameter[k].name = paramName;						this.__parameter[k].value = paramValue;						k++;												// set display text						if( !this.__parameter[k] )						{							this.__parameter[k] = { };						}						this.__parameter[k].name = this.__isdisplay + this.__parameter[k-1].name;						this.__parameter[k].value = oIEC[2].value;						k++;											}					else					{						// select null value						this.__parameter[k].name = this.__isnull;						this.__parameter[k].value = oIEC[1].value;						k++;					}														}				// not allow null				else				{					var paramName = oIEC[1].name;					var paramValue = oIEC[2].value;					var displayText = oIEC[3].value;										if( displayText != oIEC[1].value )					{						// change the text field value,regard as a locale string						paramValue = oIEC[1].value;												// set isLocale flag													this.__parameter[k].name = this.__islocale;						this.__parameter[k].value = paramName;						k++;						}										// check if allow blank					if( this.__is_parameter_not_allowblank( oIEC ) 						&& birtUtility.trim( paramValue ) == '' && this.visible )					{						oIEC[1].focus( );						alert( paramName + ' cannot be blank' );						return false;					}											// set parameter value					if( !this.__parameter[k] )					{						this.__parameter[k] = { };					}					this.__parameter[k].name = paramName;					this.__parameter[k].value = paramValue;					k++;											// set display text					if( !this.__parameter[k] )					{						this.__parameter[k] = { };					}					this.__parameter[k].name = this.__isdisplay + this.__parameter[k-1].name;					this.__parameter[k].value = oIEC[1].value;					k++;									}								continue;			}						// deal with "radio" parameter			if( oType == 'radio' )			{				if( oIEC.length > 1 )				{					for( var j = 1; j < oIEC.length; j++ )					{						// deal with radio						if( oIEC[j].type == 'radio' && oIEC[j].checked )						{							// null value							if( oIEC[j].id == oIEC[j].name + "_null" )							{								this.__parameter[k].name = this.__isnull;								this.__parameter[k].value = oIEC[j].name;								k++;							}							else							{								// common radio value								this.__parameter[k].name = oIEC[j].name;								this.__parameter[k].value = oIEC[j].value;									k++;																// set display text for the "radio" parameter								var displayLabel = document.getElementById( oIEC[j].id + "_label" );								if( displayLabel )								{																if( !this.__parameter[k] )									{										this.__parameter[k] = { };									}									this.__parameter[k].name = this.__isdisplay + this.__parameter[k-1].name;									this.__parameter[k].value = displayLabel.title;									k++;											}							}															break;														}						}				}												continue;					}						// deal with "select" parameter			if( oType == 'select' && oSEC.length == 1 )			{				var paramName = oIEC[1].name;								var flag = true;				if( oIEC[2] && oIEC[2].type == 'radio' && !oIEC[2].checked )				{					flag = false;				}								// check select				if( flag )				{					if ( oSEC[0].selectedIndex < 0 && this.visible )					{						oSEC[0].focus( );						alert( paramName + " should have a value" );						return false;					}																									var tempText = oSEC[0].options[oSEC[0].selectedIndex].text;					var tempValue = oSEC[0].options[oSEC[0].selectedIndex].value;											// Check if select 'Null Value' option					if( tempText == this.__display_null && tempValue == '' )					{						this.__parameter[k].name = this.__isnull;						this.__parameter[k].value = paramName;						k++;							continue;					}					if ( this.__is_parameter_not_allowblank( oIEC ) && birtUtility.trim( tempValue ) == '' && this.visible )					{						oSEC[0].focus( );						alert( paramName + " cannot be blank" );						return false;					}									}								// allow new value				if( oIEC[2] && oIEC[2].type == 'radio' )				{										if( oIEC[2].checked )					{						// select value						var tempText = oSEC[0].options[oSEC[0].selectedIndex].text;						var tempValue = oSEC[0].options[oSEC[0].selectedIndex].value;												// set value						this.__parameter[k].name = paramName;						this.__parameter[k].value = tempValue;						k++;												// set display text						if( !this.__parameter[k] )						{							this.__parameter[k] = { };						}						this.__parameter[k].name = this.__isdisplay + this.__parameter[k-1].name;						this.__parameter[k].value = tempText;						k++;											}					else					{						var inputValue = oIEC[4].value;						var paramValue = oIEC[1].value;						var displayText = oIEC[5].value;												// if change the text field value or input text field isn't focus default,regard as a locale string 						if( displayText != inputValue || oIEC[4].name.length <= 0 )						{														paramValue = inputValue;														// set isLocale flag														this.__parameter[k].name = this.__islocale;							this.__parameter[k].value = paramName;							k++;							}												// text value						if ( this.__is_parameter_not_allowblank( oIEC ) && birtUtility.trim( paramValue ) == '' && this.visible )						{							oIEC[4].focus( );							alert( paramName + " cannot be blank" );							return false;						}												// set value						if( !this.__parameter[k] )						{							this.__parameter[k] = { };						}						this.__parameter[k].name = paramName;						this.__parameter[k].value = paramValue;						k++;																	// set display text						if( !this.__parameter[k] )						{							this.__parameter[k] = { };						}						this.__parameter[k].name = this.__isdisplay + this.__parameter[k-1].name;						this.__parameter[k].value = inputValue;						k++;											}				}				else				{					// don't allow new value					var tempText = oSEC[0].options[oSEC[0].selectedIndex].text;					var tempValue = oSEC[0].options[oSEC[0].selectedIndex].value;										// set value					this.__parameter[k].name = paramName;					this.__parameter[k].value = tempValue;					k++;										// set display text					if( !this.__parameter[k] )					{						this.__parameter[k] = { };					}					this.__parameter[k].name = this.__isdisplay + this.__parameter[k-1].name;					this.__parameter[k].value = tempText;					k++;									}								continue;			}					}				return true;	},
9270	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9270/fcf7dfa1bd7630765ae41ee879e60b2d9ad3e748/BirtParameterDialog.js/buggy/viewer/org.eclipse.birt.report.viewer/birt/webcontent/birt/ajax/ui/dialog/BirtParameterDialog.js