function isDigits(obj)
	{
	var bAlert = ( arguments.length == 1 || ( arguments.length > 1 && arguments[1] ) );

	var re = /\D+/;
	if (re.test(obj.value))
		{
		if ( bAlert ) {
			errAlert(obj, "Only digits allowed.");
		}
		return false;
		}
	return true;
	}
function isNumber(obj)
	{

	var bAlert = ( arguments.length == 1 || ( arguments.length > 1 && arguments[1] ) );

	var re, val = obj.value;
	var inputPfx = obj.name.substr(0,3)
	// For form.asp remove the dollar sign and comma for currency during validation
	if (/form\.asp$/i.test(window.location.pathname) )
		switch ( inputPfx ) {
			case 'cur' : val = val.replace( /[\s,$]/g, '' ); break;
			case 'num' : 
			case 'tny' : val = val.replace( /[\s,]/g, '' ); break;
			case 'pct' : val = val.replace( /[\s%]/g, '' ); break;
			case 'zip' : val = val.replace( /^#{5}$/,'' ); break;
		}
	
	re = /^-?\d*\.?\d{0,6}$/;
	if (re.test(val)==false)
		{
		if (obj.name.substr(0,3)=="cur") {msg = "Dollar amounts only."}
		else {msg = "A numeric entry is required."}
		if ( bAlert ) { 
			errAlert(obj, msg);
		}
		return false;
		}
	return true;
	}

