/*function NavigatorVerifier()
{
	//NETSCAPE
	navigateur=navigator.userAgent.match(/Netscape\/([0-9]+(\.[0-9]+)?)/);
	if(isNaN(navigateur) && parseFloat(navigateur[1])>=6)
	{
		//alert('n');
		return true;
	}
	//OPERA
	navigateur=navigator.userAgent.match(/Opera\/([0-9]+(\.[0-9]+)?)/);
	if(isNaN(navigateur) && parseFloat(navigateur[1])>=6)
	{
		//alert('o');
		return true;
	}
	//FIREFOX
	navigateur=navigator.userAgent.match(/Firefox\/([0-9]+(\.[0-9]+)?)/);
	if(isNaN(navigateur) && parseFloat(navigateur[1])>=1)
	{
		//alert('f');
		return true;
	}
	//INTERNET EXPLORER
	if(navigator.appName=='Microsoft Internet Explorer')
	{
		navigateur=navigator.userAgent.match(/MSIE ([0-9]+(\.[0-9]+)?)/);
		if(isNaN(navigateur) && parseFloat(navigateur[1])>=5)
		{
			//alert('i');
			return true;
		}
	}
	return false;
}*/

function OuvrirPopup(url,popupdessus,titre,option)
{
	switch(OuvrirPopup.arguments.length)
	{
		case 0:
			url='';
		case 1:
			popupDessus=true;
		case 2:
			titre='_blank';
		case 3:
			option='toolbar=1,location=1,personnalbar=1,status=1,menubar=1,scrollbars=1,resizable=1,height=420,width=760,left=0,top=0,channelmode=0,directories=0';
		default:
	}
	if(url=='')
		url='about:blank';
	fenetre=window.open(url,titre,option);
	if(popupdessus==true)
		fenetre.focus();
	else
		window.focus();
}

function FermerPopup(retoursurparent)
{
	switch(FermerPopup.arguments.length)
	{
		case 0:
			retoursurparent=false;
		default:
	}
	if(window.opener!=null && retoursurparent==true)
		if(!window.opener.closed)
			window.opener.focus();
	window.close();
}

if(top!=self)
{
	if (window.opera)
	{
		var balise = document.createElement('a');
		balise.href=self.location;
		balise.target='_top';
		balise.click();
	}
    else
		top.location=self.location;
}