Bug 128582 Set jpg image to chart background, preview in html, background image is displayed incorrectly.
Set jpg image to chart background, preview in html, background image is displayed incorrectly. Steps: 1.Create a bar chart 2.Set image to chart background 3.Preview in html Actual Results: 1.See the attachment Expected Results: 1.The background image can be previewed correctly.
chart/org.eclipse.birt.chart.device.svg/src/org/eclipse/birt/chart/device/svg/SVGGraphics2D.java
* 
	 * @param script the code that will be inlined in the generated svg output
	 */
	public void addScript(String script){
		scriptBuffer.append(script);	
	}
	
	/**
	 * Adds a script reference in the generated svg output.
	 * 
	 * @param ref the script reference that will be added to the generated svg output.
	 */
	public void addScriptRef(String ref){
		Element rootElem = dom.getDocumentElement( );
		Element scriptElem = dom.createElement( "script" ); 
		rootElem.appendChild( scriptElem );
		scriptElem.setAttribute( "language", "JavaScript" ); 
		scriptElem.setAttribute( "xlink:href", ref ); 		
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	/**
	 * Defer setting the stroke and color on an SVG element.
	 * 
	 * @return the state of the flag that ignores setting the stroke style and color on a svg element.
	 */