I updated the function to remove the "0" and "1" alerts that I left behind from my testing.
In the second info window it should be:
<form onsubmit="return false"><input type="text" value="" name="from"><input type="button" onclick="addDirections(this.form.elements[0].value, wagmp_map_1_obj.addresses[1].full,true,wagmp_map_1_obj.obj,wagmp_map_1_obj.icons[1],wagmp_map_1_obj.points[1]);" value="get directions"></form>
Notice I updated all of the references of "[0]" to "[1]"