	/*
	function ForceNumericInput(This, AllowDot, AllowMinus, e)
	{
		if(arguments.length == 1)
		{
        	var s = This.value;
        	// if "-" exists then it better be the 1st character
        	var i = s.lastIndexOf("-");
        	if(i == -1)
            	return;
        	if(i != 0)
           		This.value = s.substring(0,i)+s.substring(i+1);
           	return;
        }

        var code = e.keyCode;
        switch(code)
        {
            case 8:     // backspace
            case 37:    // left arrow
            case 39:    // right arrow
            case 46:    // delete
                e.returnValue=true;
                return;
        }
        if(code == 189)     // minus sign
        {
        	if(AllowMinus == false)
        	{
                e.returnValue=false;
                return;
            }


            // wait until the element has been updated to see if the minus is in the right spot
            var s = "ForceNumericInput(document.getElementById('"+This.id+"'))";
            setTimeout(s, 250);
            return;
        }
        if(AllowDot && code == 190)
        {
            if(This.value.indexOf(".") >= 0)
            {
            	// don't allow more than one dot
                e.returnValue=false;
                return;
            }
            e.returnValue=true;
            return;
        }
        // allow character of between 0 and 9

        if ( (code >= 48 && code <= 57) || (code>=96 && code<=105)) // from numeric keyboard too
        {
            e.returnValue=true;
            return;
        }
        e.returnValue=false;
	} 
	*/
	

	  function ValidateNumber(e)
      {
         var charCode = (e.which) ? e.which : event.keyCode
         if (charCode > 31 && (charCode < 48 || charCode > 57))
            return false;

         return true;
      }


