/**
 * Gestisce la visualizzazione dei componeneti della form
 * @return {[type]} [description]
 */
function renderForm() {


    if (!isGuest) {

        //utility.showVertical($.tipoWrapper);
        $.telefono.value = userData['userInfo.mobile'] || userData['userInfo.mobileTemp'];
        $.tipoAiuto.value = 'auto';

    } else {

        // utility.hideVertical($.tipoWrapper);
        $.telefono.value = '';

    }



    //serve ad evitare il problema che la tastiera viene visualizzata all'apertura
    if (OS_ANDROID) {
        $.telefono.once('focus', function() {
            $.telefono.blur();
            setScrollOnFocus();
        });
    } else {
        setScrollOnFocus();
    }

    function setScrollOnFocus() {
        /*  $.telefono.addEventListener('focus', function() {
            $.main.scrollToBottom();
        }); */
    }



    //stato: mostra form
    utility.hideVertical($.responseWrapper);
    utility.showVertical($.formWrapper)

}
function renderConferma() {



    //
    //immette i valori nella schermata
    //

    //orario
    var now = new Date();
    //  $.richiestaOrario.text = [now.getHours(), now.getMinutes()].join(':');
    $.responseTime.text = formatOrario(now);
    $.responsePhone.text = $.telefono.value;
    $.responseAddress.text = currentAddress;


    //
    //stato: mostra richiesta inviata
    //
    utility.hideVertical($.formWrapper)
    utility.showVertical($.responseWrapper);


}