title: ASP VBScript Server side programming
body: <p>I am new to the VBScript programming. And just now started programming using ASP. The problem is I have quite 60 options as buttons and have to display the page accordingly. Previously we had 60 functions of same functionality. Now I want to convert it to a single function with select case statement. So I passed different numbers as arguments to the function to get which page to display. But I am getting Overflow when I check the argument value. Is it because type conversion error? I have 2 hierachies. SO am passing 2 digit number like 11. Use 11/10 as first and 11 mod 10 as second level selector
  I have some Image and Onclicking the code is the following.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script&gt;
  function CallFun(a)
  select case int(a/10)
  case 1
  do something
  end select
  end Function
  &lt;/script&gt;&lt;/head&gt;&lt;body&gt;&lt;img src="Source.gif" onclick = CallFun(11)&gt;&lt;/body&gt;
  </code></pre>