var Hledat = new Array();
Hledat[Hledat.length] = new Array("searchstring", "value.length > 2", "La stringa deve essere lunga al massimo 3 caratteri!");

var okplusKonto = new Array();
okplusKonto[okplusKonto.length] = new Array("csano", "value > ''", "Prego inserire un numero di tessera valido!");
okplusKonto[okplusKonto.length] = new Array("csano", "isValidCSAno(value)", "Prego inserire un numero di tessera valido!");
okplusKonto[okplusKonto.length] = new Array("sitano_pom", "value.length >= 5", "Prego inserire una password valida!");
okplusKonto[okplusKonto.length] = new Array("sitano_pom", "value.length <= 10", "Prego inserire una password valida!");

var okplusCorp = new Array();
okplusCorp[okplusCorp.length] = new Array("login", "value > ''", "Prego inserire un Numero Aziendale valido!");
okplusCorp[okplusCorp.length] = new Array("pwd_pom", "value > ''", "Prego inserire una password valida!");
okplusCorp[okplusCorp.length] = new Array("language", "value > ''", "Please choose your language!");

var checkmytrip = new Array();
checkmytrip[checkmytrip.length] = new Array("surname", "value > ''", "Inserisca il Cognome del passeggero!");
checkmytrip[checkmytrip.length] = new Array("pnr", "value > ''", "Si prega di inserire il Codice della prenotazione!");

var internetCheckin = new Array();
internetCheckin[internetCheckin.length] = new Array("identNumber", "value > ''", "Si prega di inserire il numero del biglietto elettronico!");
internetCheckin[internetCheckin.length] = new Array("identFlightNumber", "value > ''", "Si prega di inserire il numero del volo!");

/**
* Funkce pro zmenu action na formulari login do FBP
*/
function changeActionFBP() {
    var frm = document.forms['okplusCorp'];
    var actionStart = frm.actionStart.value;
    var actionEnd = frm.actionEnd.value;
    var choosenLng = frm.language.options[frm.language.selectedIndex].value;
    frm.action = actionStart+choosenLng+actionEnd;
}

function zmenZalozku(name, prefix){
	var obj_body, obj_butA, obj_butP;
	var active = '';
	eval('active = '+prefix+'Active;');
	if (active != name) {
        try {
            obj_butA = document.getElementById(prefix+'A_'+active);
            obj_butP = document.getElementById(prefix+'P_'+active);
            obj_body = document.getElementById(prefix+'Body_'+active);
            obj_butA.style.display = 'none';
            obj_butP.style.display = 'block';
            obj_body.style.display = 'none';
            obj_butA = document.getElementById(prefix+'A_'+name);
            obj_butP = document.getElementById(prefix+'P_'+name);
            obj_body = document.getElementById(prefix+'Body_'+name);
            obj_butA.style.display = 'block';
            obj_butP.style.display = 'none';
            obj_body.style.display = 'block';
            eval(prefix+"Active = '"+name+"';");
            //mn_init();
        } catch(eException) {}
	}
}

function changeFormAction() {
    var frm = document.forms['okplusKonto'];
    var obj = document.forms['okplusKonto'].ok_action;
    if (obj && frm) {
        for (i=0;i<obj.length;i++) {
            if (obj[i].checked) {
                frm.action = obj[i].value;
                i = obj.length;
            }
        }
    }
    return true;
}