Bug 166732 Duplicate id isn't handled in BIRT viewer tag.[0603]
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/taglib/AbstractViewerTag.java
writer.write( "if( !bodyObj )\n" ); 
		writer.write( "  bodyObj = document.createElement(\"BODY\");\n" ); 
		writer.write( "bodyObj.appendChild( divObj );\n" ); 
		writer.write( "divObj.style.display = \"none\";\n" ); 
		writer.write( "var formObj = document.createElement( \"FORM\" );\n" ); 
		writer.write( "divObj.appendChild( formObj );\n" ); 
		Iterator it = viewer.getParameters( ).values( ).iterator( );
		while ( it.hasNext( ) )
		{
			ParameterField param = (ParameterField) it.next( );
			
			if ( param.getValue( ) == null )
			{
				writer
						.write( "var param = document.createElement( \"INPUT\" );\n" ); 
				writer.write( "formObj.appendChild( param );\n" ); 
				writer.write( "param.TYPE = \"HIDDEN\";\n" ); 
				writer.write( "param.name='" + ParameterAccessor.PARAM_ISNULL 
						+ "';\n" ); 
				writer.write( "param.value='" + param.getName( ) + "';\n" ); 
				continue;
			}
			
			String paramValue = DataUtil.getDisplayValue( param.getValue( ) );
			
			writer.write( "var param = document.createElement( \"INPUT\" );\n" ); 
			writer.write( "formObj.appendChild( param );\n" ); 
			writer.write( "param.TYPE = \"HIDDEN\";\n" ); 
			writer.write( "param.name='" + param.getName( ) + "';\n" ); 
			writer.write( "param.value='" + paramValue + "';\n" );