function isEmptyFieldIED(formObjectName){ var empty = false; var formObject = document.getElementById(formObjectName); clearErrorIED(formObjectName); if(formObject && !formObject.disabled){ if(formObject.value==""){ empty=true; showErrorIED(formObjectName, false); setFocus(formObject); } } return empty; } function showErrorIED(formObjectName, ok){ var formObject = document.getElementById(formObjectName+"Label"); if(formObject){ var className = formObject.className; if(ok){ if(className.indexOf("Error")>0){ formObject.className = className.split("Error")[0]; } }else{ if(className.indexOf("Error")==-1){ formObject.className = className+"Error"; } } } } function popea(popPage, popTitle, popAttributes ){ window.open("/" + popPage, popTitle, popAttributes); } function clearErrorIED(formObjectName){ showErrorIED(formObjectName, true); }