//check max string length
function chklen(o,maxl) {
	if (o.value.length > maxl) {
		o.value = o.value.substring(0,maxl);
		}
	return true;
	}
