if(fw->doneState==2 || fw->doneState==3 ;cancle & close
then axlFormClose(fw) axlTempFileRemove(MainFormFile))
case(fw->doneState
(1 ;here is the real main thing!
if(CheckCOTValue() then
axlShell("done")
axlSetActiveLayer("etch/top")
axlDBChangeDesignExtents( '((-1000 -1000) (1000 1000)))