Problem with opening a new Tab and showing a specific URL Based on item Clicked ----

Problem with opening a new Tab and showing a specific URL Based on item Clicked ----

Hello All,
Greetings,

I'm getting a few errors [well, outputs not as expected] on a scenario. I'll describe it.

Basically, on my web page, I have several small image thumbnails. These are just images of some organisations/companies. Now, on clicking any of them, I wanted that it would open a new separate tab on the browser, and display a certain specific page; namely the careers page of that particular comp/org. That's it. Sounds brief and straight enough.

What I did was like this::
The html markup portion --

  1. <table style="background-color:rgb(242, 231, 189)">
  2.         <tr>
  3.             <td><a href="" onclick="return showParentSite('deloitte');"><span class="Cfocus"></span><img src="Resource/Comps/comp1.jpg" width="145px" height="65px" alt="" title="" /></a></td>
  4.             <td><a href="" onclick="return showParentSite('infosys');"><span class="Cfocus"></span><img src="Resource/Comps/comp2.png" width="145px" height="65px" alt="" title="" /></a></td>
  5.             <td><a href="" onclick="return showParentSite('wipro');"><span class="Cfocus"></span><img src="Resource/Comps/comp3.jpg" width="145" height="" alt="" title="" /></a></td>
  6.             <td><a href="" onclick="return showParentSite('adecco');"><span class="Cfocus"></span><img src="Resource/Comps/comp4.png" width="145" height="" alt="" title="" /></a></td>
  7.             <td><a href="" onclick="return showParentSite('sungard');"><span class="Cfocus"></span><img src="Resource/Comps/comp5.jpg" width="145" height="65px" alt="" title="" /></a></td>
  8.             <td><a href="" onclick="return showParentSite('hp');"><span class="Cfocus"></span><img src="Resource/Comps/comp6.png" width="145" height="" alt="" title="" /></a></td>
  9.             <td><a href="" onclick="return showParentSite('schlumberger');"><span class="Cfocus"></span><img src="Resource/Comps/comp7.jpg" width="145" height="65px" alt="" title="" /></a></td>
  10.             <td><a href="" onclick="return showParentSite('odessa');"><span class="Cfocus"></span><img src="Resource/Comps/comp8.png" width="145" height="65px" alt="" title="" /></a></td>
  11.             <td><a href="" onclick="return showParentSite('infomedia');"><span class="Cfocus"></span><img src="Resource/Comps/comp9.jpg" width="145" height="" alt="" title="" /></a></td>
  12.         </tr>
  13. </table>

The jQuery I wrote --


  1. function showParentSite(obj) {
  2.         var url = null;
  3.         switch(obj)
  4.         {
  5.             case 0:
  6.                 obj = 'deloitte';
  7.                 url="http://www2.deloitte.com/in/en.html";
  8.                 break;
  9.             case 1:
  10.                 obj = 'infosys';
  11.                 url="http://www.infosys.com/";
  12.                 break;
  13.             case 2:
  14.                 obj = 'wipro';
  15.                 url="http://www.wipro.com/";
  16.                 break;
  17.             case 3:
  18.                 obj = 'adecco';
  19.                 url="http://www.adecco.co.in/";
  20.                 break;
  21.             case 4:
  22.                 obj = 'sungard';
  23.                 url="https://www.sungard.com/";
  24.                 break;
  25.             case 5:
  26.                 obj = 'hp';
  27.                 url="http://www8.hp.com/us/en/jobs/index.html?jumpid=va_jtfz1bkq3m";
  28.                 break;
  29.             case 6:
  30.                 obj = 'schlumberger';
  31.                 url="https://careers.slb.com/";
  32.                 break;
  33.             case 7:
  34.                 obj = 'odessa';
  35.                 url="https://www.odessatechnologies.com/";
  36.                 break;
  37.             case 8:
  38.                 obj = 'infomedia';
  39.                 url="https://infomedia.com/";
  40.                 break;
  41.             
  42.             

  43.         }
  44.         var win = window.open(url, '_blank');
  45.         win.focus();
  46.     }


Now what happens, is that even though a new separate tab opens, the page won't be displayed. It is blank. Even though the url and all I checked them, are all absolutely ok and correct. The url bar of the newly opened window shows 'about:blank'.
Why is this so? Just needed some help on getting this work neat, friends. Please help me a little on this one.

Thanks,
And Merry Christmas All.