function assertNumericInput( event) {
	code = event.which==null ? event.keyCode : event.which;
	return code==0 || code==8 || (code>=48 && code<=57);
}

function getHeight( obj) {
	return obj.clientHeight>0 ? obj.clientHeight :
		document.defaultView.getComputedStyle( obj, "").getPropertyValue( "height");
}

function alignSidebar() {
	return;
	
	var sidebar = document.getElementById( "sidebar");
	var content = document.getElementById( "content");
	
	sidebarHeight = parseInt( getHeight( sidebar));
	contentHeight = parseInt( getHeight( content))-100;
	
	if( sidebarHeight<contentHeight) {
		sidebar.style.height = contentHeight + "px";
	}
}

function updateCounter( component, max) {
	counterLabel = document.getElementById( "counter_" + component.name);
	len = component.value.length;
	counterLabel.innerHTML = len>max ? "<em>" + len + "</em>" : len;
	return true;
}