/*********************************************************Set of JavaScript functions used throughout the databaseJavaScript Validation 3.0, 19/May/2005Jake Howlett, http://www.codestore.org/**********************************************************/String.prototype.trim = function() {	a = this.replace(/^\s+/, '');	return a.replace(/\s+$/, '');};/***********************************************************doDelete is used to delete the 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";	}}
