	var checkbookTables = 1;
// Set to 1 to have automatically alternating 
// colors on checkbook tables, or 0 to not.
		
	// Makes the items of class "clsCheckbook" alternate in color.
	function CheckThis(objNode){
		// Variable for toggling colors
		var which = 1;
		var isWhite = true;
		
		var nodes = objNode.rows;
		if (nodes != null) {
			// Go through all the nodes on the page looking for checkbooks
			for (var nodeNum=0; nodeNum < nodes.length; nodeNum++){
				//alert("This Child " + nodeNum + " = " + nodes[nodeNum].nodeName);
				CheckThis(nodes[nodeNum]);
		        if (nodes[nodeNum].className=="clsCheckbook"){
					// This is one to alternate!
					//alert("Woopie! " + which);
					// Change the class so it displays in alternating colors
			        if (!isWhite) {
						nodes[nodeNum].className = "clsBody" + which;
					} else {
						// The following makes "alternate" rows an alternate style.
						nodes[nodeNum].className = "clsBody" + (1-which);
					};  // if not white
					isWhite = !isWhite;
		        };  // if clsCheckbook
		    };  // for nodeNum
		} else {
			//alert("has no rows!");
		}; // if != null
	};  // CheckThis()
	//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	
		
	// CheckTables()
	// Makes the items of class "clsCheckbook" alternate in color.
	function CheckTables(){
		// Variable for toggling colors
		var which = 1;
		
		var nodes = document.getElementsByTagName("table");  // <<<<<<  NEED TO GET TO WORK IN NS!
		if (nodes != null) {
			// Go through all the nodes on the page looking for checkbooks
			for (var nodeNum=0; nodeNum < nodes.length; nodeNum++){
				//alert("Table " + nodeNum + " = " + nodes[nodeNum].className);
	        	CheckThis(nodes[nodeNum]);
	    	};  // for nodeNum
		} else {
			//alert("No Tables!");
		};  // if != null
	};  // CheckTables()
	//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

