sc_field_display doesn't hide fields in ajax onBlur event

Hi,
I need to have to hide some fields (in control form type) depending on pull down selection field “Tipo”
But nothing happens when Tipo lost focus.
What’s wrong.
Thanx

that’s ajax onBlur event

sc_field_display({nome_new}, on);
sc_field_display({cognome}, on);
sc_field_display({societa}, on);
sc_field_display({pi}, on);
sc_field_display({pec}, on);
sc_field_display({sdi}, on);

if({Tipo} == “N”) // NESSUNO
{
sc_error_message(“Scegli un tipo”); // you must choose a type
sc_error_exit();
}

if({Tipo} == “P”) // Private
{
sc_field_display({pi}, off);
sc_field_display({societa}, off);
}

if({Tipo} == “A”) // Company
{
sc_field_display({nome_new}, off);
sc_field_display({cognome}, off);
}

if({Tipo} == “R”) // Professional
{
sc_field_display({societa}, off);
}

if({Tipo} == “S”) // PA
{
sc_field_display({nome_new}, off);
sc_field_display({cognome}, off);
}

Solved…
Simply remove first 6 line of ajax onblur event