+// Adds a country code selection box
+function addCountryCodeSelectionBox ($countryCode = NULL) {
+ // The admin may see all
+ $whereStatement = "WHERE `is_active`='Y'";
+
+ // Is admin?
+ if (isAdmin()) {
+ // Then display all codes
+ $whereStatement = '';
+ } // END - if
+
+ // Generate the HTML code
+ $OUT = '<select name="country_code" class="form_select" size="1">';
+ $OUT .= generateOptions('countries', 'id', 'descr', $countryCode, 'code', $whereStatement);
+ $OUT .= '</select>';
+
+ // Return it
+ return $OUT;
+}
+