function isEmpty(str) {
for (var intLoop = 0; intLoop<str.length; intLoop++)
if (" " != str.charAt(intLoop))
return false;
return true;
}

function chk(f) {
for (var intLoop = 0; intLoop<f.elements.length; intLoop++)
if ("sfondo"==f.elements[intLoop].className) {
alert(sfo_obb);
return false;
}
}

function fixUp(el) {
el.className = isEmpty(el.value) ? "sfondo" : "";
}

function checkChar(el) {
if (32 != event.keyCode)
el.className = "";
}
