Have you tried to simply make it just a <script> in the head of your HTML?



<script language='JavaScript'>
function DelPart(vPartID) {
Ext.Msg.alert('Deleting...', 'Delete...