Bug 140620 Chart scripting errors are ignored
Write a chart with an invalid script, the execution simply ignores the script. This makes it difficult to debug scripting. The error message is also not precise and needs improvements.
engine/org.eclipse.birt.report.engine.emitter.html/src/org/eclipse/birt/report/engine/emitter/html/HTMLReportEmitter.java
nt of the stack
	 * 
	 * @return the boolean indicating whether or not the item is hidden
	 *
	public boolean pop( )
	{
		return ( (Boolean) stack.pop( ) ).booleanValue( );
	}
	**
	 * Peeks the element of stack
	 * 
	 * @param style
	 * @return the boolean indicating whether or not the item is hidden
	 *
	public boolean peek( IStyle style )
	{
		boolean isHidden = false;
		 !stack.empty( ) )
		{
			isHidden = ( (Boolean) stack.peek( ) ).booleanValue( );
		}
		 !isHidden )
		{
			String formats = style.getVisibleFormat( );
			 formats != null
					&& ( formats.indexOf( EngineIRConstants.FORMAT_TYPE_VIEWER ) >= 0 || formats
							.indexOf( BIRTConstants.BIRT_ALL_VALUE ) >= 0 ) )
			{
				isHidden = true;
			}
		}
		return isHidden;
	}
	**
	 * Checks if the current item is hidden
	 * 
	 * @return a boolean value
	 *
	public boolean isHidden( )
	{
		return ( (Boolean) stack.peek( ) ).booleanValue( );
	}
	*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.engine.emitter.IContentEmitter#getOutputFormat()
	 *
	public String getOutputFormat( )
	{
		return OUTPUT_FORMAT_HTML;
	}
	**
	 * Fixes a PNG problem related to transparency. See
	 * http:homepage.ntlworld.combobosola for detail.
	 *
	 void fixTransparentPNG( )
	{
		writer.writeCode( "<!--[if gte IE 5.5000]>" ); 
		writer
				.writeCode( "   <script language=\"JavaScript\"> var ie55up = true <script>" ); 
		writer.writeCode( "<![endif]-->" ); 
		writer.writeCode( "<script language=\"JavaScript\">" ); 
		writer
				.writeCode( "   function fixPNG(myImage)  correctly handle PNG transparency in Win IE 5.5 or higher." ); 
		writer.writeCode( "      {" ); 
		writer.writeCode( "      window.ie55up)" ); 
		writer.writeCode( "         {" ); 
		writer
				.writeCode( "         var imgID = (myImage.id) ? \"id='\" + myImage.id + \"' \" : \"\"" ); 
		writer
				.writeCode( "         var imgClass = (myImage.className) ? \"class='\" + myImage.className + \"' \" : \"\"" ); 
		writer
				.writeCode( "         var imgTitle = (my