} 
} 
	__exportAction : function( )	{		var format = $( 'exportFormat' ).value.toLowerCase( );				var docObj = document.getElementById( "Document" );		if ( !docObj || birtUtility.trim( docObj.innerHTML ).length <= 0)		{			alert ( "Report document should be generated first." );				return;		}			else		{				var divObj = document.createElement( "DIV" );			document.body.appendChild( divObj );			divObj.style.display = "none";					var formObj = document.createElement( "FORM" );			divObj.appendChild( formObj );			// Set selected output format			var action = window.location.href;			var reg = new RegExp( "([&|?]{1}__format\s*)=([^&|^#]*)", "gi" );			if( action.search( reg ) < 0 )			{				action = action + "&__format=" + format;			}			else			{				action = action.replace( reg, "$1=" + format );			}						// Delete page and pagerange settings in url if existed			reg = new RegExp( "([&|?]{1})__page\s*=[^&|^#]*", "gi" );			action = action.replace( reg, "$1");						reg = new RegExp( "([&|?]{1})__pagerange\s*=[^&|^#]*", "gi" );			action = action.replace( reg, "$1");										if( $( 'exportPageCurrent' ).checked )			{				// Set page setting				var currentPage = birtUtility.trim( $( 'pageNumber' ).innerHTML );				action = action + "&__page=" + currentPage;							}			else if( $( 'exportPageRange' ).checked )			{				// Set page range setting				var pageRange = birtUtility.trim( $( 'exportPageRange_input' ).value );				action = action + "&__pagerange=" + pageRange;			}									// If output format is pdf/postscript, set some options			if( format == 'pdf' || format == 'postscript' )			{				var fittopage = "false";				var pagebreakonly = "false";								// fit to page width				if( $( 'exportFitToWidth' ).checked )				{					fittopage = "true";				}				else if( $( 'exportFitToWhole' ).checked )				{					fittopage = "true";					pagebreakonly = "true";				}				reg = new RegExp( "([&|?]{1}__fittopage\s*)=([^&|^#]*)", "gi" );				if( action.search( reg ) < 0 )				{					action = action + "&__fittopage=" + fittopage;				}				else				{					action = action.replace( reg, "$1=" + fittopage );				}								reg = new RegExp( "([&|?]{1}__pagebreakonly\s*)=([^&|^#]*)", "gi" );				if( action.search( reg ) < 0 )				{					action = action + "&__pagebreakonly=" + pagebreakonly;				}				else				{					action = action.replace( reg, "$1=" + pagebreakonly );				}							}						// Force "__asattachment" as true			reg = new RegExp( "([&|?]{1}__asattachment\s*)=([^&|^#]*)", "gi" );			if( action.search( reg ) < 0 )			{				action = action + "&__asattachment=true";			}			else			{				action = action.replace( reg, "$1=true" );			}									// Force "__overwrite" as false			reg = new RegExp( "([&|?]{1}__overwrite\s*)=([^&|^#]*)", "gi" );			if( action.search( reg ) < 0 )			{				action = action + "&__overwrite=false";			}			else			{				action = action.replace( reg, "$1=false" );			}									formObj.action = action;			formObj.method = "post";						formObj.submit( );		}			},
9270	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9270/183a4eef0f755c872f0d31b8cca4f2badcf5b196/BirtExportReportDialog.js/clean/viewer/org.eclipse.birt.report.viewer/birt/webcontent/birt/ajax/ui/dialog/BirtExportReportDialog.js