/*
this is thought for (de-/in)crement integer values in (e.g. input) form elements
calling like
*/
function crmnt( e, i ) { /* read: in-/decrement ( dom-element, signed-integer ) */
var d = parseInt( e.value ) + i;
e.value = ( d < 1 )? 1 : e.value = d;
}