function load()
{
   var myName = FileName()

   if (myName.toLowerCase() == 'netstock.aspx')
   {
      //alert('My name is "' + Namer + '"');
      SendClientInfo();
   }
   //else
   //{
   //   alert('My name is DUNNO');
   //}
}

function FileName()
{
   if (location.href.lastIndexOf('/') != -1)
   // Check whether '/' exists.
   {
      // If it does then we ...
      firstpos = location.href.lastIndexOf('/') + 1;

      // Find the first position (the file starts after this)
      lastpos = location.href.length;
      /* Normally, the last position of the filename will be at the end of the complete URL - although it could have a # and a name at the end!*/
      Namer = location.href.substring(firstpos, lastpos);
      // We extract the string (the file's name).
      // alert('My name is "'+Namer+'"');
      // And reveal all to the clicker!
   }
   return Namer
}

function SendClientInfo()
{
   WebService.SendClientInfo(screen.width, screen.height, SendClientInfoCompleted);
}

function SendClientInfoCompleted(result)
{
   //alert('SendClientInfoCompleted');
}

