// JavaScript Document

	function see_player(membre_id)
	{
		NewWindow('../public/player.php?pid=' + membre_id, 750, 600);
	}

	function FindPlayer()
	{
		NewWindow('../public/FindPlayer.php', 750, 600);
	}

	function see_tournoi(tournoi_id)
	{
		NewWindow('../public/tournoi.php?tid=' + tournoi_id, 750, 600);
	}
	
	function PrintJQ( SubCatID )
	{
		NewWindow('print_jq.php?SubCatID=' + SubCatID, 750, 600);
	}
	
	function NewWindow( Url, Width, Height )
	{
		var address = Url;   
		var op_tool  = 0;  
		var op_loc_box  = 0;   
		var op_dir  = 0;   
		var op_stat  = 0;    
		var op_menu  = 0;   
		var op_scroll  = 1;    
		var op_resize  = 0;    
		var op_wid  = Width;   
		var op_heigh = Height;                 
		var option = "toolbar="+ op_tool +",location="+ op_loc_box +",directories=" + op_dir +",status="+ op_stat +",menubar="+ op_menu +",scrollbars="  + op_scroll +",resizable="  + op_resize +",width=" + op_wid +",height="+ op_heigh;
		var neo = window.open(address, "PopUp", option);
		if(neo.focus)
		{
			neo.focus();
		}
	}
	
	function PrintClassement( Type, Mois, Annee )
	{
		var TypeValue = document.getElementById( Type ).value;
		var MoisValue = document.getElementById( Mois ).value;
		var AnneeValue = document.getElementById( Annee ).value;
		
		NewWindow('../public/classement.php?Temps=1&' + Type + '=' + TypeValue + '&' + Mois + '=' + MoisValue + '&' + Annee + '=' + AnneeValue + '&PRINT', 750, 600);
	}
	
	function VoirClassement( ARGS )
	{
		NewWindow('../public/classement.php?' + ARGS, 750, 600);
	}

