Right click this window and select "view source" in order to copy the source for this script.
Country Chooser
This is a useful script for a form that needs to know the visitor's country. It saves giving a huge list of countries in one box. For the USA, it also asks the state.