function WinCommand_onLoad(Var)
	{
	if (window.opener)
		{
		window.opener.WinCommand =window;
		}
	}
function WinCommand_onUnload(Var)
	{
	if (window.opener)
		{
		window.opener.WinCommand=null;
		}
	}
var	WinCommand =null

function WinCommandDisplay(theUrl, theAttribut)
	{
	if (WinCommand)
		{
		if (!WinCommand.closed)
			WinCommand.document.location.href=theUrl;
		else
			WinCommand=null
		}
	if (WinCommand==null)
		{
		WinCommand= window.open(theUrl,"Commander",theAttribut)
		}
	WinCommand.focus()
	}
function Commander(IdArticle, Validate)
	{
//	theUrl="";
	switch(Validate)
		{
		case "on" : 
			theUrl ="Display.php?P=110401&CardId="+IdArticle
	//	theUrl+="&start_debug=1&debug_port=10000&debug_host=192.168.0.100,127.0.0.1&send_sess_end=1&debug_no_cache=1087160233023&debug_stop=1&debug_url=1";
			window.onerror=null;
			theAttribut = "top=200,left=150,height=280,width=600,menubar=no,toolbar=no,scrollbars=yes,resizable=yes";
			window.onerror=null;
			WinCommandDisplay(theUrl, theAttribut)
			break;
		case "off" :
			break;
		}
	}

