Matthias L was browsing through some code from a (publicly available) web application that his company developed and came across this rather curious bit of code. It's a JavaScript function that runs in the HTML document's OnLoad() event. Matthias stared at it for a little while, and its existence remained a complete mystery. He sent it to me, so I stared at it for a little while. I've got nothing. Any brave "code defenders" want to take a stab at this?

function headerInit()
{
  var intCount=0;
  intCount=1;
  intCount=2;
  intCount=3;
  intCount=4;
  intCount=5;
  intCount=6;
  intCount=7;
  intCount=8;
  intCount=9;
  intCount=10;
  intCount=11;
  intCount=12;
  intCount=13;
  intCount=14;
  intCount=15;
  if (intCount != 0) 
  {
    document.getElementById('btnChkRslts').click();
  }
}

Also, I wanted to thank Mike for bringing back the Hotel Reservation System from Hell while I was at the VS.NET Launch Event yesterday. If you're curious, I wrote about my experience. It was good overall, much in part because it was the first time I've ever seen such miniature jars of honey.

[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!