Unexpected runtime error

The runtime has encountered an unexpected error.

Error source

Page Name:/shopCat.xsp
Control Id: _id12
Property: value

Exception

Error while executing JavaScript computed expression
Script interpreter error, line=1, col=19: Reference error: 'sdoc' not found

Javascript code

   1: txt='<h2>' + sdoc.getItemValueString("Subject")+ '</h2>\n'
   2: if(sdoc.getItemValueString("Produktnrextern")!="")
   3: 	txt+='<h3 class="herstnr">Bestellnummer: ' + sdoc.getItemValueString("Produktnrextern") +'</h3>\n';
   4: txt+='<div class="clear"></div>\n';
   5: txt+='<p><i>' + sdoc.getItemValueString("Anreisser") + '</i></p>';
   6: 	txt+='<p>' +sdoc.getItemValueString("Body") + '</p>';
   7: 
   8: txt=@ReplaceSubstring(txt,"%%DBNAME",facesContext.getExternalContext().getRequestContextPath());           
   9: return txt

Stack Trace