//namespace pro regForm
var regForm = {};

/**
 * Zobrazí informace příslušné pro jednotlivé typy
 * @param string type 'pravnicka', 'fyzicka'
 */
regForm.showForm = function(type) {
    if (type == "fyzicka") {
        $('spolecnostDiv').hide();
    }
    else if(type == "pravnicka") {
        $('spolecnostDiv').show();
    }
}

/**
 * Zobrazí nebo skryje pole pro telefon a fax
 */
regForm.showTelefonFax = function() {
    $('telefonFax').toggle();
}

regForm.showHelp = function(instance) {
    $(instance.name + 'I').show();   
}

regForm.hideHelp = function(instance) {
    $(instance.name + 'I').hide();   
}

regForm.nactiCid = function(instance) {
    window.location.href = './registrace/krok02/cid/' + instance.value;
}

