

function formHasElement(form, elementname) {
	for(i=0; i<document.forms[0].elements.length; i++) {
		if (document.forms[0].elements[i].name == elementname) {
			return true;
		}
	}
	return false;
}


function isFunction(a)
 {
      return typeof a == 'function';
 }

function checkvalue(object) {
	if (object.value!="") {
		valore=parseInt(object.value);
		if (isNaN(valore)) {
			valore="1";
		} else { 
			valore = Math.abs(valore); 
			}
		object.value=valore;
		}
}	
