rem: if( url.indexOf( '&__format=' ) < 0 ) return false;   if( url.indexOf( '&__format=htm' ) > 0 || url.indexOf( '&__format=html' ) > 0 ) 
add: var reg = new RegExp( "[&|?]{1}__format\s*=[^&|^#]*", "gi" ); if( url.search( reg ) < 0 ) return false   reg = new RegExp( "[&|?]{1}__format\s*=htm[l]{0,1}", "gi" ) if( url.search( reg ) > -1 ) 
context: 	__ifSubmit: function( mode, url )	{		// if use '/preview' pattern, submit anyway		if( mode == 'preview' )			return true;				if( url )			url = url.toLowerCase( );		else			url = "";					// if use '/frameset' or '/run', check format.		// if format is not HTML, submit request.			if( mode == 'run' || mode == 'frameset' )		{			// if don't set format, default is HTML			if( url.indexOf( '&__format=' ) < 0 )				return false;						// if format is htm/html, return false				if( url.indexOf( '&__format=htm' ) > 0 || url.indexOf( '&__format=html' ) > 0 )					return false;						return true;					}				return false;	}
meta: 855	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/855/2859505a2b515915ac277ff18417d7d9ce65a593/BirtParameterDialog.js/clean/viewer/org.eclipse.birt.report.viewer/birt/webcontent/birt/ajax/ui/dialog/BirtParameterDialog.js