I). I was trying to open a new html page in popup window. Popup window is for login into database I tried using a sample [Popup Sample](http://vasplus.info/tutorial.php?id=99&?Yeah_man&_expid=/VXpoc01YRjNjakJqUTNCUGFXWkVURk5qTVhseVVFSXhZMkpWUmtGQkpUTkVKVE5F/2014/mQu5D1bwvu#.U1E1aFdgw-U) but it didn't word. Below is my code which I was trying:

**Menu.html**

```
<table>
   <tr>
     <td>
        <a href="vpb_show_login_box()" class="vpb_general_button">Login</a>
     </td>
   </tr>
</table>

```

**Changes in jquery:**

```
function vpb_show_login_box()
{
    $("#vpb_pop_up_background").css({
        "opacity": "0.4"
    });
    $("#vpb_pop_up_background").fadeIn("slow");
    $("#vpb_login_pop_up_box").fadeIn('fast');
    $("#vpb_login_pop_up_box").load("login.html");
    window.scroll(0,0);
}

```

May I know what mistake I am doing?

II). Also I have another question. I have two different database. One Database consisting client details and another client's project. If my menu is like below:

**Menu.html**

```
<table>
   <tr>
     <td>
        <a href="vpb_show_login_box()" class="vpb_general_button">Client Detail</a>
        <a href="vpb_show_login_box()" class="vpb_general_button">Client Project</a>
     </td>
   </tr>
</table>

```

Question: How can I use same login page but it adds on extra login requirements. i.e.

For *Client Detail* (Login)

Username and Passowrd requirement to login

For *Client Project*

Username, Passowrd and Department requirement to login