/*********************************************************** doDelete is used to delete the form from the server The user is first asked to confirm that this is what they want to do. Giving them the chance to cancel the action. This works SIMPLY by changing the end of the URL from "?OpenDocument" to "?DeleteDocument" ************************************************************/ function doDelete() { if ( confirm('Are you sure you want to delete this document?') ){ location.search = "?DeleteDocument"; } }