Hi,
Cool about the Javascript API, there was no problem in making another preview function
About the pop-up window. the problem is not to make a custom button, but to make the contents when you click the custom button. So do you know if you can download allready done scripts?