Unexpected runtime error

The runtime has encountered an unexpected error.

Error source

Page Name:/xpAdvancedSearch.xsp
Control Id: section1

Exception

Error while executing JavaScript computed expression
Script interpreter error, line=6, col=62: [ReferenceError] 'tabconfig' not found

JavaScript code

   1: var contentType = requestScope.activeTab;
   2: if(contentType == "productDoc"){
   3: 	return false;
   4: }else if(contentType === "learning" && !tabconfig.learningnav ){
   5: 	return false;
   6: }else if((contentType === "home" || contentType === null) && !tabconfig.homenav){
   7: 	return false;
   8: }
   9: else{
  10: 	return true;
  11: }

Stack Trace