function nth(d) {
	if(d > 3 && d < 21) {
		return "th";
	}
	switch(d % 10) {
		case 1:  return "st";
		case 2:  return "nd";
		case 3:  return "rd";
		default: return "th";
	}
}
// Get the ordinal number suffix.

Get the ordinal number suffix.
Get the ordinal number suffix .
function nth(d) {
	if(d > 3 && d < 21) {
		return "th";
	}
	switch(d % 10) {
		case 1:  return "st";
		case 2:  return "nd";
		case 3:  return "rd";
		default: return "th";
	}
}
function nth ( d ) { if ( d > 3 && d < 21 ) { return "th" ; } switch ( d % 10 ) { case 1 : return "st" ; case 2 : return "nd" ; case 3 : return "rd" ; default : return "th" ; } }
Get the ordinal number suffix.
Get the ordinal number suffix .