Thanks Josh, I've edited the page to remove the positioning. Not sure why I added that in, but I think it had things working better.
I removed that bit and loaded it up to the same page. I'm still amazingly puzzled at how the alert doesn't trigger. I've moved the function call up to above the cancelForm function, but still nothing.