/* -------------------------------------------------- */
/* Form.js                                            */
/* ---------------------------------------------------*/
/* Created:      2006-04-09                           */
/* Issued:       2006-04-09                           */
/* Modified:     2006-04-11                           */
/* Copyright (c) 2006 by Metacentric Internet Limited */
/*               All rights reserved.                 */
/* -------------------------------------------------- */

/**
 *  Focus on the specified input element (onload).
 *  @param  inputId The id attribute of the input to focus on.
 */
function focusOnInput(inputId) {

    if (document.getElementById) {

        var element = document.getElementById(inputId);

        if (element != null) {

            if ((element.value) &&
                (element.value != '')) {

                // Ignore
            }
            else {

                element.focus();
            }
        }
    }
}
