Buying Thema Forest HTML thema and selling Code Canyon

I am web programmer and i want to sell my script on code canyon.I have some questions about it.I need thema and i think thema forest is the best.If i buy thema forest template and after code i want to sell it on code canyon.Is it legal? Which licence i need? If i buy regular licence template when i sell every script must i buy the template again? Please help me.

You can’t include it with with your script unless you have an agreement and permission with the original author