/************************************************************************************************************
Ajax dynamic list
Copyright (C) September 2005  DTHMLGoodies.com, Alf Magne Kalleland

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

Dhtmlgoodies.com., hereby disclaims all copyright interest in this script
written by Alf Magne Kalleland.

Alf Magne Kalleland, 2006
Owner of DHTMLgoodies.com
	
************************************************************************************************************/	
function showToolTip(e,text){
text="<form action='form.asp'><table width='374px' style='border-left:solid 1px #043472;border-right:solid 1px #043472;'><tr height='28px'><td bgcolor='#FFFFFF' width='38px'></td><td width='224px' valign='middle'><input size='15' name='usrname'  style='width: 224px; height: 28px; border: 0px; background:url(css/textbox.jpg) no-repeat center right; font-family:Arial; font-size:22px; ' /></td><td width='112px' valign='middle'><font color='#043472' style='font-family:Arial'><b>&nbsp;&nbsp;USERNAME</b></font></td></tr><tr height='10px'></tr><tr height='28px' style='border-right:solid 1px #043472;'><td bgcolor='#FFFFFF' width='38px'></td><td width='224px' valign='middle'><input type='password' size='15' value='' name='pass' style='width: 224px; height: 28px; border: 0px; background:url(css/textbox.jpg) no-repeat center right; font-family:Arial; font-size:22px;' /></td><td width='112px' valign='middle'><font color='#043472' style='font-family:Arial'><b>&nbsp;&nbsp;PASSWORD</b></font></td></tr><tr height='16px'></tr><tr height='20px'><td bgcolor='#FFFFFF' width='38px'></td><td colspan='2' width='338px' valign='middle'><input value='' type='button' style='width: 84px; height: 20px; border: 0px; background:url(css/cancella.jpg) no-repeat center right; cursor:pointer;' onclick='javascript:hideToolTip();' title='Nasconde form'/>&nbsp;&nbsp;<input value='' onclick='javascript:hideToolTip();' type='button' style='width: 61px; height: 20px; border: 0px; background:url(css/invia.jpg) no-repeat center right; cursor:pointer;' title='Verifica login'/></tr><tr><td colspan='3' ><img src='css/buttons.jpg' border='0' usemap='#buttons'/></td></tr><tr height='10px'><td colspan='3' width='376px' bgcolor='#FFFFFF'></td></tr></table></form><map name='buttons' id='buttons'><area shape='rect' coords='219,39,289,56' target='_blank' href='pdf/note_legali.pdf' alt='Visualizza note legali'/><area shape='rect' coords='299,40,348,55' target='_blank' href='pdf/privacy.pdf' alt='Visualizza informativa privacy'/></map>";
	if(document.all)e = event;
	
	var obj = document.getElementById('bubble_tooltip');
	var obj2 = document.getElementById('bubble_tooltip_content');
	obj2.innerHTML = text;
	obj.style.display = 'block';
	var st = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
	if(navigator.userAgent.toLowerCase().indexOf('safari')>=0)st=0; 
	var leftPos = e.clientX - 105;
	if(leftPos<0)leftPos = 0;
	obj.style.left = leftPos + 'px';
	obj.style.top = e.clientY - obj.offsetHeight -1 + st + 'px';
	//document.write(e.clientX);
}	

function hideToolTip()
{
	document.getElementById('bubble_tooltip').style.display = 'none';
	
}
