
	var warning = '0';
	var thismessage = '----WARNING---------------------------------\nchanges made to this page will be lost\n-------------------------------------------------\nIt looks like you may have entered some \nform data and forgotten to save.\n-------------------------------------------------\nClick OK to discard changes and proceed.\nClick CANCEL to finish what you were doing first.\n';
	var hrefMsg = '----WARNING---------------------------------\nThis action cannot be undone.\nAre you sure you want to delete this record?\n';
		
	function checkWarning(cautionMsg,destination){
		if (warning != '0') {
			if (confirm(cautionMsg)) {
				document.location.href(destination);
				return false;
			} else {
				return true;
			}
		} else {
			document.location.href(destination);
			return false;
		}
	}
	
	
	
	function checkHrefWarning(cautionHrefMsg,destination){
		if (confirm(cautionHrefMsg) && document.location.href) {
			document.location.href(destination);
			return false;
		} else {
			return true;
		}
	}
