I am dynamically creating some of my IDs within my page and want to check to see if that ID exists before calling document.getElementById("id1") and creating a javascript error. Is there a better way than creating an array of document IDs and then checking it versus all of those before calling the document.getElementById() funtion? Any help would be appreciated