function showReqFld(){ var pBlk=parent.document.getElementById('spnStat').innerHTML; if(!pBlk||pBlk.match("Edit")) { if (Page_Validators) { for (i=0;i<Page_Validators.length;i++) { if(Page_Validators[i].innerHTML.match('Required'))Page_Validators[i].style.display="block"; } } } var Loading = parent.document.getElementById('loading'); if (Loading) Loading.style.display="none"; }However, despite the added check for if (Page_Validators) it still fails saying Page_Validators is undefined. What is the appropriate way to test for the existence of Page_Validators?