diff --git a/setup/scripts.js b/setup/scripts.js
index 7298e63ac..e6ab823b7 100644
--- a/setup/scripts.js
+++ b/setup/scripts.js
@@ -1,7 +1,5 @@
/**
- * functions used in setup script
- *
- * @version $Id$
+ * Functions used in configuration forms
*/
// show this window in top frame
@@ -18,7 +16,7 @@ var PMA_messages = {};
/**
* Returns field type
*
- * @param Element field
+ * @param {Element} field
*/
function getFieldType(field) {
field = $(field);
@@ -42,9 +40,9 @@ function getFieldType(field) {
* o boolean - if field_type is 'checkbox'
* o Array of values - if field_type is 'select'
*
- * @param Element field
- * @param String field_type see getFieldType
- * @param mixed value
+ * @param {Element} field
+ * @param {String} field_type see {@link #getFieldType}
+ * @param {String|Boolean} [value]
*/
function setFieldValue(field, field_type, value) {
field = $(field);
@@ -80,9 +78,9 @@ function setFieldValue(field, field_type, value) {
* o boolean - if type is 'checkbox'
* o Array of values - if type is 'select'
*
- * @param Element field
- * @param String field_type see getFieldType
- * @return mixed
+ * @param {Element} field
+ * @param {String} field_type returned by {@link #getFieldType}
+ * @type Boolean|String|String[]
*/
function getFieldValue(field, field_type) {
field = $(field);
@@ -127,8 +125,8 @@ function getAllValues() {
/**
* Checks whether field has its default value
*
- * @param Element field
- * @param String type
+ * @param {Element} field
+ * @param {String} type
* @return boolean
*/
function checkFieldDefault(field, type) {
@@ -160,7 +158,7 @@ function checkFieldDefault(field, type) {
/**
* Returns element's id prefix
- * @param Element element
+ * @param {Element} element
*/
function getIdPrefix(element) {
return $(element).attr('id').replace(/[^-]+$/, '');
@@ -210,7 +208,7 @@ var validators = {
/**
* Validates positive number
*
- * @param boolean isKeyUp
+ * @param {boolean} isKeyUp
*/
validate_positive_number: function (isKeyUp) {
var result = this.value != '0' && validators._regexp_numeric.test(this.value);
@@ -219,7 +217,7 @@ var validators = {
/**
* Validates non-negative number
*
- * @param boolean isKeyUp
+ * @param {boolean} isKeyUp
*/
validate_non_negative_number: function (isKeyUp) {
var result = validators._regexp_numeric.test(this.value);
@@ -228,7 +226,7 @@ var validators = {
/**
* Validates port number
*
- * @param boolean isKeyUp
+ * @param {boolean} isKeyUp
*/
validate_port_number: function(isKeyUp) {
var result = validators._regexp_numeric.test(this.value) && this.value != '0';
@@ -242,7 +240,7 @@ var validators = {
/**
* hide_db field
*
- * @param boolean isKeyUp
+ * @param {boolean} isKeyUp
*/
hide_db: function(isKeyUp) {
if (!isKeyUp && this.value != '') {
@@ -255,7 +253,7 @@ var validators = {
/**
* TrustedProxies field
*
- * @param boolean isKeyUp
+ * @param {boolean} isKeyUp
*/
TrustedProxies: function(isKeyUp) {
if (!isKeyUp && this.value != '') {
@@ -271,7 +269,7 @@ var validators = {
/**
* Validates Server fieldset
*
- * @param boolean isKeyUp
+ * @param {boolean} isKeyUp
*/
Server: function(isKeyUp) {
if (!isKeyUp) {
@@ -282,7 +280,7 @@ var validators = {
/**
* Validates Server_login_options fieldset
*
- * @param boolean isKeyUp
+ * @param {boolean} isKeyUp
*/
Server_login_options: function(isKeyUp) {
return validators._fieldset.Server.apply(this, [isKeyUp]);
@@ -290,7 +288,7 @@ var validators = {
/**
* Validates Server_pmadb fieldset
*
- * @param boolean isKeyUp
+ * @param {boolean} isKeyUp
*/
Server_pmadb: function(isKeyUp) {
if (isKeyUp) {
@@ -311,9 +309,9 @@ var validators = {
/**
* Calls server-side validation procedures
*
- * @param Element parent input field in