var ptotal=0;
//window.onerror=ErrorHandler
function ErrorHandler(){
	//alert('A customized error message');
	//return true;
}

function ToggleDisplay(butt,items) {
	
	var oButton = document.getElementById(butt);
	var oItems = document.getElementById(items);
	if (!oButton || !oItems){ return 0;}

	if (oItems.style.display == "none") {
		
		oItems.style.display = "";
		oButton.src = "/tree/minus.gif";
		
	}	else {
		
		oItems.style.display = "none";
		oButton.src = "/tree/plus.gif";
	}

	return false;
}
function HideDisplay(oItems) {
	oItems.style.display = "none";

}

function ShowDisplay(oItems) {
	oItems.style.display = "";
}




function checkvalid(obj,butt,keycode){
	if (obj.value==''){obj.value=0;}
	butt.disabled = isNaN(obj.value);
	if (!butt.disabled){
		obj.value = parseInt(obj.value);
	}
	
}
 

