var aHelp = new Array();
//Personnes
aHelp[0] = 'Aide prénom';
aHelp[1] = 'Aide nom';
aHelp[2] = 'Aide adresse';
aHelp[3] = 'Aide code postal';
aHelp[4] = 'Aide ville';
aHelp[5] = 'Aide region';
aHelp[6] = 'Aide pays';
aHelp[7] = 'Aide tel';
aHelp[8] = 'Aide tel pro';
aHelp[9] = 'Aide mobile';
aHelp[10] = 'Aide fax';
aHelp[11] = 'Aide e-mail';
aHelp[12] = 'Aide site web';
//Produits
aHelp[13] = 'Aide Produit Libellé';
aHelp[26] = 'Aide Produit Référence';
aHelp[14] = 'Aide Produit Catégorie';
aHelp[15] = 'Aide Produit Prix par défaut';
aHelp[16] = 'Aide Produit Prix revendeur';
aHelp[17] = 'Aide Produit Prix d\'achat';
//Société
aHelp[18] = 'Aide Répertoire des métiers';
aHelp[19] = 'Aide Siret';
aHelp[20] = 'Aide Intracom';
aHelp[21] = 'Aide Activité';
aHelp[22] = 'Aide Catégorie';
aHelp[23] = 'Aide Responsable du compte';
aHelp[24] = 'Aide Date 1er contact';
aHelp[25] = 'Aide Type';

//
aHelp[27] = '';
aHelp[28] = '';
aHelp[29] = '';
aHelp[30] = '';
aHelp[31] = '';

aHelp[50] = '<b>Please enter the following information :</b><br>&nbsp;&nbsp;&nbsp;&nbsp;Room number<BR> or Booth number<br>or Name of the meeting room';


function showTooltip(index)
{
	var divTooltip = document.getElementById('divTooltip');
	var myHeight;
 	
 	if (divTooltip != null)
	{
		if  (typeof( window.innerWidth ) == 'number') 
			myWidth = window.innerWidth;
		else
			myWidth = document.body.clientWidth;

		divTooltip.style.right = 4;//myWidth -270 ;
		divTooltip.style.posTop = 280;
		divTooltip.innerHTML = aHelp[index];
		divTooltip.style.display = '';
	}
}

function hideTooltip()
{
	var divTooltip = document.getElementById('divTooltip');
	if (divTooltip != null)
	{
		divTooltip.style.display = 'none';
	}
}

function ReloadCart()
{	
	if(window.top.frames["frmCenter"].frames["frmCartSummary"] != null)
	{
		window.top.frames["frmCenter"].frames["frmCartSummary"].location.href = "CartSummary.aspx";
	}
}

function RefreshFrameScript(sFrame, sUrl)
{	
	if(window.top.frames[sFrame] != null)
	{
		window.top.frames[sFrame].location.href = sUrl;
	}
	else if (window.top.frmCenter.frames[sFrame] != null)
	{
		window.top.frmCenter.frames[sFrame].location.href = sUrl;	
	}
}

function popupWnd(sUrl)
{
	window.open(sUrl, '','location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0,width=800,height=600');
	return false;	
}

function MoveToSecure(SecureUrl)
{
//alert(SecureUrl);
window.top.location.href = SecureUrl;
}

function TrapKeyDown(btn, event)
{
	if (document.all)
	{
		if (event.keyCode == 13)
		{
			event.returnValue=false;
			event.cancel = true;
			btn.click();
		}
	}
	else if (document.getElementById)
	{
		if (event.which == 13)
		{
			event.returnValue=false;
			event.cancel = true;
			btn.click();
		}
	}
	else if(document.layers)
	{
		if(event.which == 13)
		{
			event.returnValue=false;
			event.cancel = true;
			btn.click();
		}
	}
}

