//CHECKS THE LAST KEY ENTERED TO ENSURE THAT IT IS NUMERIC
function numbersOnly()
{	
	var theEvent
	
	if(!window.event){
		//handle netscape/mozilla key events
		theEvent = arguments.callee.caller.arguments[0];
		//if the event is a special character
		if(theEvent.which >= 32 && theEvent.which <= 45)
		{
			return false;
		}
		//if the event is a letter
		if(theEvent.which >= 58 && theEvent.which <=122)
		{
			return false;
		}
		//if event is '/' character (decimal point is 46)
		if(theEvent.which == 47)
		{
			return false;
		}
		return true;
	}
	else{
		//handle IE key events
		theEvent = window.event;
		//number keys
		if(theEvent.keyCode < 48 || theEvent.keyCode > 57)
		{
			//decimal point
			if(theEvent.keyCode != 46)
			{
				theEvent.keyCode = 0;
			}
		}
	}

}