rem: action = action.replace( reg, "/run" ); 
add: action = action.replace( reg, "/preview" ); 
context: 	__beh_print : function( id )	{				// If print the whole report		if ( confirm( "Do you want to print the whole report?" ) )		{			var action = window.location.href;			var reg = new RegExp( "/frameset[^\\?]*", "g" );			action = action.replace( reg, "/run" );			var divObj = document.createElement( "DIV" );			document.body.appendChild( divObj );			divObj.style.display = "none";						var formObj = document.createElement( "FORM" );			divObj.appendChild( formObj );						if ( !birtParameterDialog.collect_parameter( ) )				return;						if ( birtParameterDialog.__parameter != null )			{				for( var i = 0; i < birtParameterDialog.__parameter.length; i++ )					{					var param = document.createElement( "INPUT" );					formObj.appendChild( param );					param.TYPE = "HIDDEN";					param.name = birtParameterDialog.__parameter[i].name;					param.value = birtParameterDialog.__parameter[i].value;										//replace the URL parameter								var reg = new RegExp( "&" + param.name + "[^&]*&*", "g" );					action = action.replace( reg, "&" );				}			}					formObj.action = action;			formObj.method = "post";			formObj.submit( );								window.print( );		}		else		{			var docObj = document.getElementById( "Document" );			if ( !docObj || birtUtility.trim( docObj.innerHTML ).length <= 0)			{				alert ( "Please generate the current report first." );				return;			}							var pwin = window.open( "", "print" ); 			if ( !pwin )			{				pwin = window;			}							pwin.document.write( docObj.innerHTML ); 					pwin.print( );			pwin.location.reload( );					}			},
meta: 855	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/855/f5d3573e55ae98083c793f6d1503a85bbee5507a/BirtReportDocument.js/buggy/viewer/org.eclipse.birt.report.viewer/birt/webcontent/birt/ajax/ui/report/BirtReportDocument.js