/***********************************************************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";	}}function addEvent(obj, evType, fn){ 	if (obj.addEventListener){    		obj.addEventListener(evType, fn, false);    		return true; 	} 	else if (obj.attachEvent){    			var r = obj.attachEvent("on"+evType, fn);    			return r; 		} 		else {    			return false; 				}		}function removeEvent(obj, evType, fn, useCapture){  if (obj.removeEventListener)		{    obj.removeEventListener(evType, fn, useCapture);    				return true;  		} 	else if (obj.detachEvent){    			var r = obj.detachEvent("on"+evType, fn);    			return r;  		} 	else 		{    		alert("Handler could not be removed");  		}	}function getViewportHeight() {		if (window.innerHeight!=window.undefined) return window.innerHeight;	if (document.compatMode=='CSS1Compat') return document.documentElement.clientHeight;		if (document.body) return document.body.clientHeight; 		return window.undefined; }function getViewportWidth() {		if (window.innerWidth!=window.undefined) return window.innerWidth; 		if (document.compatMode=='CSS1Compat') return document.documentElement.clientWidth; 		if (document.body) return document.body.clientWidth; 	return window.undefined; }