//overrides specific to an installation 
//place locale-support here

//only works in IE
function metKP(evt) {	
	//to specialize an app for support of european number separatior on US numeric keypad uncomment the code below
	if ((evt.keyCode==46) && (metLK==110)) evt.keyCode=44;
}

//requires WebFx SortableTable - see ../classes/pnt/web/widgets/PntTablePart.php
// should adapt it for dutch number and date format
if (typeof SortableTable == 'function') {
	SortableTable.prototype.getValueFromString = function (aString, aType) {
		switch (aType) {
			case 'Date':
				var arr = aString.split('-');
				var dt = new Date(0);
				dt.setFullYear(arr[2]);
				dt.setMonth(arr[1] - 1);
				dt.setDate(arr[0]);
				return dt.valueOf();
			case 'Number':
				var numStr = aString.replace(/\.+/g, ""); //the dot is the thousends seperator
				numStr = numStr.replace(/,+/g, ".");  //the comma is the decimal separator
				return Number(numStr);
			case 'CaseInsensitiveString':
				return aString.toUpperCase();
		}
		return aString;
	};
}
