function MonthNumToMonthShortStr(intMonth) {
	if (intMonth == 1) {
		return "Jan";
	}
	if (intMonth == 2) {
		return "Feb";
	}
	if (intMonth == 3) {
		return "Mar";
	}
	if (intMonth == 4) {
		return "Apr";
	}
	if (intMonth == 5) {
		return "May";
	}
	if (intMonth == 6) {
		return "Jun";
	}
	if (intMonth == 7) {
		return "Jul";
	}
	if (intMonth == 8) {
		return "Aug";
	}
	if (intMonth == 9) {
		return "Sep";
	}
	if (intMonth == 10) {
		return "Oct";
	}
	if (intMonth == 11) {
		return "Nov";
	}
	if (intMonth == 12) {
		return "Dec";
	}
	else {
		return "Err";
	}	

/*	switch (intMonth) 
	{ 
  	case 1 : 
			return "Jan"; 
			break; 
  	case 2 : 
			return "Feb"; 
			break; 
  	case 3 : 
			return "Mar"; 
			break; 
  	case 4 : 
			return "Apr"; 
			break; 
  	case 5 : 
			return "May"; 
			break; 
  	case 6 : 
			return "Jun"; 
			break; 
  	case 7 : 
			return "Jul"; 
			break; 
  	case 8 : 
			return "Aug"; 
			break; 
  	case 9 : 
			return "Sep"; 
			break; 
  	case 10 : 
			return "Oct"; 
			break; 
  	case 11 : 
			return "Nov"; 
			break; 
  	case 12 : 
			return "Dec"; 
			break;
		default :
			return "Err";
			break;
		} */
}

function IsDate(strDate){
	var dtTest = new Date(Date.parse(strDate));
	if(dtTest.getYear()){
		return 1;
	} 
	else {
		return 0;
	}
}

function UKtoISO8601Date(strDate) { 
	return strDate.split('/').reverse().join('');
}

function UKtoUSDate(strDate) {
	return new Date(strDate.replace(/(\d+).(\d+).(\d+)/, '$2/$1/$3'));
}

function c2DigitYearTo4DigitYear(strDate) {
//Note: Assumes that dates are always 20XX
	return strDate.replace(/(\d+).(\d+).(\d+)/, '$1/$2/20$3');
}

function c4DigitYearTo2DigitYear(strDate) {
	return strDate.substr(0, 6) + strDate.substr(8, 2);
}