oOption.innerHTML = mediaSizeNames[i].name; 
var oLabel = document.createElement( "LABEL" ); oLabel.innerHTML = mediaSizeNames[i].name; oOption.text = oLabel.innerHTML; 
	__updateInfo : function( )	{		var printerName = $( 'printer' ).value;		var curPrinter = this.__findPrinter( printerName );				if( !curPrinter )		{			this.__enable = false;						this.__setDisabled( 'printer_config',true );			this.__setDisabled( 'printPageSetting',true );			this.__setDisabled( 'printFitSetting',true );			return;		}					this.__printer = curPrinter;					// Generate info			this.__insertHTML( 'printer_status', curPrinter.getStatus( ) );		this.__insertHTML( 'printer_model', curPrinter.getModel( ) );		this.__insertHTML( 'printer_info', curPrinter.getInfo( ) );				// Print settings		if( this.__enable )		{						this.__setDisabled( 'printer_config',false );			this.__setDisabled( 'printPageSetting',false );			this.__setDisabled( 'printFitSetting',false );			var oInputs = $( 'printPageSetting' ).getElementsByTagName( 'input' );			for( var i=0; i<oInputs.length; i++ )				this.__checkPageRadio( oInputs[i] );		}		else		{						this.__setDisabled( 'printer_config',true );			this.__setDisabled( 'printPageSetting',true );			this.__setDisabled( 'printFitSetting',true );					}				if( curPrinter.isCopiesSupported( ) )		{						$( 'printer_copies' ).value = curPrinter.getCopies( );		}		else		{			$( 'printer_copies' ).disabled = true;		}				if( curPrinter.isCollateSupported( ) )		{			if( curPrinter.isCollate( ) )				$( 'printer_collate' ).checked = true;			else				$( 'printer_collate' ).checked = false;		}		else		{			$( 'printer_collate' ).disabled = true;			$( 'printer_collate' ).checked = false;		}				if( curPrinter.isDuplexSupported( ) )		{			var duplex = curPrinter.getDuplex( );			switch( duplex )			{				case curPrinter.DUPLEX_SIMPLEX:					$( 'printer_duplexSimplex' ).checked = true;					break;				case curPrinter.DUPLEX_HORIZONTAL:					$( 'printer_duplexHorz' ).checked = true;					break;									case curPrinter.DUPLEX_VERTICAL:					$( 'printer_duplexVert' ).checked = true;					break;				default:					$( 'printer_duplexSimplex' ).checked = true;				}					}		else		{			$( 'printer_duplexSimplex' ).disabled = true;			$( 'printer_duplexSimplex' ).checked = false;						$( 'printer_duplexHorz' ).disabled = true;			$( 'printer_duplexHorz' ).checked = false;						$( 'printer_duplexVert' ).disabled = true;			$( 'printer_duplexVert' ).checked = false;		}				if( curPrinter.isModeSupported( ) )		{			var mode = curPrinter.getMode( );			switch( mode )			{				case curPrinter.MODE_MONOCHROME:					$( 'printer_modeBW' ).checked = true;					break;				case curPrinter.MODE_COLOR:					$( 'printer_modeColor' ).checked = true;					break;				default:					$( 'printer_modeBW' ).checked = true;				}		}		else		{			$( 'printer_modeBW' ).disabled = true;			$( 'printer_modeBW' ).checked = false;						$( 'printer_modeColor' ).disabled = true;			$( 'printer_modeColor' ).checked = false;		}				if( curPrinter.isMediaSupported( ) )		{			var mediaSize = curPrinter.getMediaSize( );			var mediaSizeNames = curPrinter.getMediaSizeNames( );			var oSize = $( 'printer_mediasize' );			oSize.length = 0;			for( var i=0; i<mediaSizeNames.length; i++ )			{				var oOption = document.createElement( "OPTION" );				oOption.innerHTML = mediaSizeNames[i].name;				oOption.value = mediaSizeNames[i].value;								if( mediaSizeNames[i].value == mediaSize )					oOption.selected = true;								oSize.options.add( oOption );						}			}		else		{			$( 'printer_mediasize' ).length = 0;			$( 'printer_mediasize' ).disabled = true;		}			},
9270	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9270/7b4e42ddb6e5c02c7128d8b934aed1a7c7eed689/BirtPrintReportDialog.js/buggy/viewer/org.eclipse.birt.report.viewer/birt/webcontent/birt/ajax/ui/dialog/BirtPrintReportDialog.js