I have another question related to this topic, how to make yours script to change (according to my first post) from name="device" to name='xxx' vice versa?