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 isEmptyDateIED(formObjectName){ var empty = false; var day = document.getElementById(formObjectName+"Day"); var month = document.getElementById(formObjectName+"Month"); var year = document.getElementById(formObjectName+"Year"); clearErrorIED(formObjectName); if(day.value=="" || month.value=="" || year.value==""){ empty=true; showErrorIED(formObjectName, false); setFocus(day); } 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); }