NetSuite SuiteScript to populate email template in Email Popup Window

Job ID: 37337081

Budget: $10 – $30 AUD

Need a suitescript - either client or user event, which provides a button on the document header 'Email', when the user presses that button, to, when the popup window opens, default the email template from the field Email message template (internal id 'emailbodylayout') of the form definition that the user is in, and allow the user to make changes to the email before sending.
The script needs to work for any document type and not just invoice.
Would prefer script is in suitescript v.2.0 but if not possible in 2.0, 1.0 will be OK.
Related categories: JavaScript NetSuite