Note to Microsoft: Next time you revamp ASP.NET. Create a new attribute on your base web control object called "aspid" and hack away. Just leave "id" alone.
function getElementByRegexId(id, tagName)
var rx = new RegExp("^.*" + id + "$");
var controls = document.getElementsByTagName(tagName);
for(var i = 0; i < controls.length; i++)
result = controls[i];
I've gone through this exercise before, but I can't remember where. Can anyone think of a cooler way to accomplish this?