<!--

function faq_paie()
	{
	 window.open('faqpaiement.php','faqpaie','width=200,height=200,scrollbars=yes');
	}
	
function emo_pop()
	{
	 window.open('smileys.php','Smileys','width=500,height=500,resizable=yes,scrollbars=yes'); 
	}
function pseudo_pop()
	{
	 window.open('inscription_pseudo.php','choix','width=200,height=250'); 
	}
function chat_pop()
	{
	 window.open('chatbox.php?pop=1','chat','width=200,height=400,scrollbars=yes'); 
	}
function faq_pop()
	{
	 window.open('faq.php','faq','width=500,height=500,scrollbars=yes'); 
	}
function condition_pop()
	{
	 window.open('condition.php','condition','width=500,height=480,scrollbars=yes'); 
	}
function demandeConfirmation(message)
	{ 
	return confirm(message);
	}
function noSpam(user,domain)
	{
	locationstring = "mailto:" + user + "@" + domain;
	window.location = locationstring;
	}
function ChangeUrl(formulaire)
	{
	if (formulaire.ListeUrl.selectedIndex != 0)
		{
		location.href = formulaire.ListeUrl.options[formulaire.ListeUrl.selectedIndex].value;
	 	}
	else 
		{
		alert('Veuillez choisir une destination.');
		}
	}

function format(f) {
  var str = document.selection.createRange().text;
  document.formulaire.message.focus();
  var sel = document.selection.createRange();
  sel.text = "[" + f + "]" + str + "[/" + f + "]";
  return;
}
function lien() {
  var str = document.selection.createRange().text;
  document.formulaire.message.focus();
  var lien = prompt("Entre l'url d'un site Internet","http://");
  if (lien != null) {
    var sel = document.selection.createRange();
    sel.text = "[url]" + lien + str + "[/url]";
  }
  return;
}

domok = document.getElementById;
if (domok)
	{
	skn = document.getElementById("topdecklink").style;
	if(navigator.appName.substring(0,3) == "Net")
		document.captureEvents(Event.MOUSEMOVE);
	document.onmousemove = get_mouse;
	}

function poplink(msg)
{

var content ="<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=#000000><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=1><TR><TD BGCOLOR=#FFFFFF><FONT COLOR=#000000>"+msg+"</TD></TR></TABLE></TD></TR></TABLE>";

	if (domok)
		{
	  	document.getElementById("topdecklink").innerHTML = content;
	  	skn.visibility = "visible";
  		}
}

function get_mouse(e)
	{
	var x = (navigator.appName.substring(0,3) == "Net") ? e.pageX : event.x+document.body.scrollLeft;
	var y = (navigator.appName.substring(0,3) == "Net") ? e.pageY : event.y+document.body.scrollTop;
	skn.left = x - 60;
	skn.top = y+30;
	}

function killlink()
	{
	if (domok)
  		skn.visibility = "hidden";
	}

function blanc() 
{ 
document.chatform.submit();
document.chatform.cachecache.value = document.chatform.message.value;
document.chatform.message.value = '';  
}





var pop, IE=document.all?true:false;

if(!IE) {
	document.captureEvents(Event.MOUSEMOVE);
	document.onmousemove=mousePos;
	var netX, netY;
}

function init() {
	if(IE) pop=document.all.pop; else pop=document.getElementById("pop");
	b=document.body;
}

function mousePos(e) {
	netX=e.pageX;
	netY=e.pageY;
}

function popPrzesun(pX, pY) {
	init();
	if(pop.style.visibility!='visible') return;
	if(IE) {myszX=event.clientX; myszY=event.clientY;}
		else {myszX=netX-b.scrollLeft; myszY=netY-b.scrollTop;}

	tempX=myszX+pX;
	if(tempX<0) tempX=0;
	tmp=b.clientWidth-myszX-pX-pop.offsetWidth-20;
	if(tmp<0) {tempX+=tmp; if(tempX<0) tempX=0;}
	pop.style.left=b.scrollLeft+tempX+"px";

	tempY=myszY+pY;
	if(tempY<0) tempY=0;
	tmp=b.clientHeight-myszY-pY-pop.offsetHeight-15;
	if(tmp<0) {
		tmp=myszY-15-pop.offsetHeight;
		if(tmp>=0) tempY=tmp;
	}
	pop.style.top=b.scrollTop+tempY+"px";
}

function popPokaz(pX, pY, src) {
	init();
	pop.style.visibility='visible';
	pop.innerHTML=src;
	popPrzesun(pX,pY);
}

function popZamknij() {
	init();
	pop.style.visibility='hidden';
	pop.innerHTML='';
	pop.style.left=0;
	pop.style.top=0;
}

function popKom(tresc) {
	text='<table cellspacing=0 cellpadding=0 cellpadding=0 border=0><tr><td colspan=3 bgcolor=silver height=1></td></tr>';
	text+='<tr><td width=1 bgcolor=silver></td><td style="background-color: white;"><div style=margin:5px;>'+tresc+'</div></td><td width=1 bgcolor=silver></td><td width=1 rowspan=2 bgcolor=gray></td></tr>';
	text+='<tr><td colspan=2 bgcolor=silver height=1></td></tr><tr><td colspan=4 height=1 bgcolor=gray></td></tr></table>';
	popPokaz(5,20,text);
}

function popLinkPrzesun() {
	popPrzesun(5,20);
}

function popSrodekPrzesun() {
	popPrzesun(-90,20);
}


-->
