rem:   var action = window.location.href; var reg = new RegExp( "&__format=html", "g" ); action = action.replace( reg, "&__format=pdf" );  formObj.action = action; formObj.method = "post"; formObj.submit( ); 
context: 	__beh_pdf : function( id )	{		// Collect parameters		if ( !birtParameterDialog.collect_parameter( ) )			return;				var divObj = document.createElement( "DIV" );		document.body.appendChild( divObj );		divObj.style.display = "none";				var formObj = document.createElement( "FORM" );		divObj.appendChild( formObj );						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 "html" to "pdf"				var action = window.location.href;				var reg = new RegExp( "&__format=html", "g" );		action = action.replace( reg, "&__format=pdf" );				formObj.action = action;		formObj.method = "post";					formObj.submit( );	}		
meta: 855	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/855/b4d5e8445588656d9392fdd19357f24e4da219ba/BirtReportDocument.js/buggy/viewer/org.eclipse.birt.report.viewer/birt/webcontent/birt/ajax/ui/report/BirtReportDocument.js