code: function addSearchHeaderRenderHtml( divId, type , params, config ) {
  	log( "PoNG-Search", "add content " );
  	if ( ! config.page ) return;
  	var html = [];		
  	var lang = '';
    html.push( '<div class="pongSearch" id="'+divId+'">' );
    html.push( '<form id="'+divId+'Form">' );
    html.push( '<input type="hidden" name="layout" value="'+ config.page + '"/>' ); 
    if ( getParam( 'lang' ) != '' ) {
      html.push( '<input type="hidden" name="lang" value="'+ getParam( 'lang' ) + '"/>' ); 
    } 
    var role = '';
    if ( userRole != '' ) {
      html.push( '<input type="hidden" name="role" value="'+ getParam( 'role' ) + '"/>' ); 
    } 
    var title = ( config.title ? config.title : '' );
    var name = ( config.name ? config.name : 'search' );
    if ( config.label ) {
      html.push( '<label class="pongSearchLabel" for="'+divId+'Input">'+$.i18n( config.label )+'</label>' )
    }
    html.push( '<input id="'+divId+'Input" class="pongSearchInput" title="'+title+'" name="'+name+'" accessKey="s"></input>' )
    html.push( '</form>' )
    html.push( '<script>' )
    //html.push( '  $( function(){ alert("yepp") } );' )
    html.push( '  $( "#'+divId+'Form" ).submit( function(event){   } );' )
    html.push( '</script>' )
    html.push( '</div>' )
  	$( "#"+divId ).html( html.join( "\n" ) );
  }
docs: search header html rendering