Hi I am getting this kind of error , and I am not able to resolve it .. Please help me out ..following is the source code ..
Code:
<html>
	
	<head>
		<link rel="stylesheet" type="text/css" href="ext/resources/css/ext-all.css">
		<script type="text/javascript" src="ext/adapter/ext/ext-base.js"></script>
    	<script type="text/javascript" src="ext/ext-all-debug.js"></script>
		<script type="text/javascript">
		
		Ext.onReady(function(){
			Ext.ns("OMS");  


			OMS.POHeaderDetailsForm = Ext.extend(Ext.form.FormPanel,{
			  title             : 'PurchaseOrder',
			  autoScroll        : true,
			  itemid            : 'poHeaderDetailsForm',
			  id                : 'poHeaderDetailsForm',
			  fieldsPrefix      : 'SCC$Order$',
			  termsFieldsPrefix : 'SCC$OrderLine$',
			  url               : "/oms/rest/OMS/enhancedPurchaseOrder/",
			  defaultState      : 'Awaiting Approval',
			  modelLevelType    : "SCC.Order",
			  sysId             : null,
			  orderType         : 'Spot Order',
			  Notes             : {},
			  initComponent     : function(){
			                      //this.layoutConfig = {align: 'stretch'}
			                      //this.plugins      = [new OMS.POHeaderDetailsController()];
			                      //this.addEvents("actionclick"); // this event will be fired when button clicked and is handled in controller
			                      //var poLinesGrid   = OMS.POGrid.getPOLinesGrid(); // create lines grid
			                      //var poLinesLink   = OMS.POHyperLink.getPOLinesHyperLink(); // hyperlink to navigate lines tab
			    
			                      this.items        = [{
			                                              xtype      : 'tabpanel',
			                                              id         : 'poTabbedPanel',
			                                              itemid     : 'poTabbedPanel',
			                                              activeTab  : 0,
			                                              autoScroll : true,
			                                              items      : [this.orderDetailTabItems,
			                                                             { 
			                                                              xtype : 'panel',
			                                                              preventheader : true,
			                                                              autoScroll: true,
			                                                              layout: 'anchor',
			                                                              id : 'poLineGridTab',
			                                                              title : 'Order Lines ('+0+')',
			                                                              items : []
			                                                              } 
			                                                            ]
			                                            }];
			                                           OMS.POHeaderDetailsForm.superclass.initComponent.call(this);
			                        }
			                        
			,orderDetailTabItems : {
			                        labelAlign : 'right',
			                        title      : 'Order Details',
			                        layout     : 'column',
			                        autoScroll : true,
			                        items      : [{
			                                         labelAlign  : 'right' 
			                                        ,layout      : 'form'
			                                        ,items       : [this.leftColumnItems]
			                                      },
			                                      {
			                                        labelAlign  : 'right' 
			                                       ,layout      : 'form'
			                                       ,items       : [this.leftColumnItems]
			                                     }]
			                       }
			,leftColumnItems     : [
			{


			  name               : 'ShipToSite',
			  xtype              : 'autocomplete',
			  fieldLabel         : 'Ship To Site',
			  allowBlank         : false
			}
			                        ]
			});
		
		po= new OMS.POHeaderDetailsForm ();
		po.render(document.body);
		});		


		
		</script>
    	
	</head>
	
	<body>
	
	</body>
</html>