function setAddTo(theForm, addToType) { theForm.addTo.value = addToType; theForm.submit(); }