rem: var iPageNo = -1; var oGotoPage = $( 'gotoPage' ); var pageNo = oGotoPage.value; if ( pageNo != null && birtUtility.trim( pageNo ).length > 0 ) { iPageNo = parseInt( pageNo ); } if ( iPageNo > 0 && iPageNo <= totalPage ) { birtEventDispatcher.broadcastEvent( birtEvent.__E_GETPAGE, { name : "page", value : oGotoPage.value } ); } else { oGotoPage.focus( ); alert( Constants.error.invalidPageNumber ); } 
add: this.__gotoGage( ); 
context: 	__neh_click : function( event )	{		var pageNumber = parseInt( this.__oPageNumber.firstChild.data );		var totalPage = ( this.__oTotalPage.firstChild.data == '+' )? '+' : parseInt( this.__oTotalPage.firstChild.data );				var oBtn = Event.element( event );		if ( oBtn )		{			switch ( oBtn.name )			{   				case 'first': 				{ 					if ( pageNumber > 1 ) 					{						birtEventDispatcher.broadcastEvent( birtEvent.__E_GETPAGE, { name : "page", value : 1 } );					} 					break; 				}   				case 'previous': 				{ 					if ( pageNumber > 1 ) 					{						birtEventDispatcher.broadcastEvent( birtEvent.__E_GETPAGE, { name : "page", value : pageNumber - 1 } );					} 					break; 				}   				case 'next': 				{ 					if ( totalPage == '+' || pageNumber < totalPage ) 					{	 					birtEventDispatcher.broadcastEvent( birtEvent.__E_GETPAGE, { name : "page", value : pageNumber + 1 } ); 					} 					break; 				}   				case 'last': 				{ 					if ( totalPage == '+' || pageNumber < totalPage ) 					{ 						birtEventDispatcher.broadcastEvent( birtEvent.__E_GETPAGE, { name : "page", value : totalPage } ); 					} 					break; 				}   				case 'goto':   				{   					var iPageNo = -1;   					var oGotoPage = $( 'gotoPage' );   					var pageNo = oGotoPage.value;   					if ( pageNo != null && birtUtility.trim( pageNo ).length > 0 )   					{   						iPageNo = parseInt( pageNo );   					}   					if ( iPageNo > 0 && iPageNo <= totalPage )   					{ 						birtEventDispatcher.broadcastEvent( birtEvent.__E_GETPAGE, { name : "page", value : oGotoPage.value } );   					} 					else 					{ 						oGotoPage.focus( ); 						alert( Constants.error.invalidPageNumber ); 					}   					break;   				}				default:				{					break;				}				}		}	},
meta: 855	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/855/91348aa4d8b0afd24cda830bb8fa6ac0a4a95200/BirtNavigationBar.js/clean/viewer/org.eclipse.birt.report.viewer/birt/webcontent/birt/ajax/ui/app/BirtNavigationBar.js