﻿function checkForInt(evt) 
{
	var charCode = ( evt.which ) ? evt.which : event.keyCode;
	if ((charCode >= 48 && charCode <= 57) || charCode == 8)
	{
		// Mark the page as dirty.
		if (window.setPageDirty != null) setPageDirty();

		return true;
	}

	return false;
}
