Hope this solves, if you have any queries in using this reply.
<html>
<head>
</head>
<body>
<form>
<table id="loginTable" style="display: none;">
<tr><td>Load your form here</td></tr>
</table>
<img src="http://crm-online.ho.ua/img/admin_login_icon.png">
onclick="ToggleLoginForm();" style="width: 40px; height: 40px;" />
</img></form>
<script>
function ToggleLoginForm()
{
var tableObj = document.getElementById('loginTable');
if(tableObj.style.display == 'none')
tableObj.style.display='';
else
tableObj.style.display='none';
}
</script>
</body>
</html>