//********************************************************
//**		Connexion teamspeak     					**
//********************************************************
function ts2connect(ip, port)
{
	var commande = "teamspeak://"+ip+"?port="+port;
	var nick = document.getElementById("pseudo_ts2").value;
	
	if(nick != "")
	{
		commande += "&nickname="+nick;
		//if(channel != undefined)
		//{
		//	commande += "&channel="+channel;
		//}

		var popup = window.open(commande);
		popup.close();
	}
	else
	{
		alert("Merci de choisir un pseudo");
	}
}


function ts3connect(ip, port)
{
	var commande = "ts3server://"+ip+"?port="+port;
	var nick = document.getElementById("pseudo_ts3").value;
	
	if(nick != "")
	{
		commande += "&nickname="+nick;
		//if(channel != undefined)
		//{
		//	commande += "&channel="+channel;
		//}

		var popup = window.open(commande);
		popup.close();
	}
	else
	{
		alert("Merci de choisir un pseudo");
	}
}

// ***********************************************************
// ******************[ DEMANDE CONFIRMATION ]*****************
// ***********************************************************

// ###### => Cofirmation parti serveur <= ########################################################################################

function alerte_action_srv(num,message,service,action)
{
	if(confirm(message))
	{
		document.location.href='module-'+service+'-move-'+action+'-'+num+'.html';
	}
	else
	{
	}
			
}

// ***********************************************************
// ******************[ OUVERTURE POPUP ]**********************
// ***********************************************************

function app(lien)
{
	window.open(lien,"LOG","menubar=no, resizable=yes, scrollbars=yes, statusbar=no, width=800, height=400");
}

function appel_openblock(block)
{
	document.getElementById(block).style.display='block';
	document.getElementById('masque').style.display='block';
	
}

function appel_closeblock(block)
{
	document.getElementById(block).style.display='none';
	document.getElementById('masque').style.display='none';

}

