function maskujKlawisze(AEvent, AMaska)
{
    if (window.Event) {
        kodKlawisza = AEvent.which;
    } else {
        kodKlawisza = AEvent.keyCode;
    }

    if (kodKlawisza == 13) {
        return true;  // Enter
    };

    if (kodKlawisza == 0) {
        return true;  // klawisze sterujące
    };
	
	if (kodKlawisza == 8) {
        return true;  // klawisze sterujące
    };

    klawisz = String.fromCharCode(kodKlawisza);

    if (AMaska.indexOf(klawisz) == -1) {
        return false;
    } else {
        return true;
    }
}