/*Javascript functions for forms
 */
//Makes sure the maximum number of characters does not exceed a set value
function maxCharCheck(cur, maxChars) {
	if(typeof maxChars == 'number' && typeof cur == 'object') {
		if(cur.value.length > maxChars) {
			cur.value = cur.value.substring(0,maxChars);
		}
	}
}