getelementbyid input.NAME not value
removed script from html string
removed script from html string
commenting stuff out to see if the rest works
commenting stuff out to see if the rest works