Error when clicking on Add Order or Add Contract buttons for Sage 300 Integrated Screens

Hi,

I am sorry for cross posting from Sage CRM Community because I was referred to come here to discuss the issue I am facing.

I completed installing and configuring CRM integration on both Sage 300 ERP and CRM7.2f  I tested around the integrated 300 ERP tabs and screens without any issues except when I clicked New Order button under O/E Inquiry tab. When I clicked on the button, it was not responsive at all. I enabled F-12 Developer Tool over IE 11 to track the error, and got the following error message when I clicked on either button:

SCRIPT1018: 'return' statement outside of function

File: PM_MainMenu.asp, Line: 1, Column: 734

I further did some analysis and found that  if I turned on the Inline Translation on Sage CRM, the New Order button becomes responsive so I compared the differences between with and without Inline Translation being turned on.

The URL for New Order button when Inline Translation Mode is turned on:

http://dbb141220/CRM/CustomPages/ACCPAC/OE_MainMenu.asp?SID=129258991278530&Key0=1&Key1=3228&Key2=3783&J=ACCPAC/OE_MainMenu.asp&F=ACCPAC/PM_MainMenu.asp&T=Company#

The URL for New Order button when Inline Translation Mode is turned off:

javascript:window.status='';var xWidth =1;var xHeight=1;if (document.all)     var xMax = screen.width, yMax = screen.height;else     if (document.layers)         var xMax = window.outerWidth, yMax = window.outerHeight;     else         var xMax = 640, yMax=480;var xOffset = (xMax - xWidth)/2, yOffset = (yMax - xHeight)/2;OE_OrderUI=window.open('/CRM/CustomPages/Accpac/OE_OrderUI.asp?SID=129258991278530&Key0=1&Key1=3228&Key2=3783&F=ACCPAC%2FOE%5FMainMenu%2Easp&J=Accpac%2FOE%5FOrderUI%2Easp&QUOTENUM=noquotefound&CUSTID=1200&DATABASE=SAMINC','OE_OrderUI','scrollbars=no,fullscreen=no,resizable=yes,width='+xWidth+',height='+xHeight+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');OE_OrderUI.focus();return false;

Thanks a lot!