function KeyPress(obj,max,action) {
	if (document.all) {
        if (obj.value.length > (max-1))
            eval(action);
    }
}