Never tried this but see if this helps, wrap the above two subforms in another subform and put the script on it's initialize.
http://stackoverflow.com/questions/13313267/how-to-write-javascript-to-reorder-pages-of-a-pdf-
Never tried this but see if this helps, wrap the above two subforms in another subform and put the script on it's initialize.
http://stackoverflow.com/questions/13313267/how-to-write-javascript-to-reorder-pages-of-a-pdf-