javascript function to retrieve data

retrieve span, select and input data and pass it along to hidden form