To make a document the same size as another open document, while in the Image Size and Canvas Size dialog boxes, select the other open document from the bottom of the Window menu and Photoshop will automatically fill in the values.