function openInContents( name, page, data)
{
    if (window.ActiveXObject)
    {
        var XhrObj = new ActiveXObject("Microsoft.XMLHTTP") ;
    }
    else
    {
        var XhrObj = new XMLHttpRequest();
    }
    
    
    if ( !XhrObj )
    	return false;

    var content = document.getElementById(name);
    
    XhrObj.open("GET", page+"?"+data);

    XhrObj.onreadystatechange = function()
    {
        if (XhrObj.readyState == 4 && XhrObj.status == 200)
            content.innerHTML = XhrObj.responseText ;
    }    

	XhrObj.send(null);
	
	return true;
}

function emptyContents( name)
{
    var content = document.getElementById(name);

    content.innerHTML = "" ;
	return true;
}


function evalCommand( page, data )
{
    if (window.ActiveXObject)
    {
        var XhrObj = new ActiveXObject("Microsoft.XMLHTTP") ;
    }
    else
    {
        var XhrObj = new XMLHttpRequest();
    }
   
    if ( !XhrObj )
    	return false;
    	
	XhrObj.open("GET", page+"?"+data);

    XhrObj.onreadystatechange = function()
    {
        if (XhrObj.readyState == 4 && XhrObj.status == 200)
        {	
			eval(XhrObj.responseText);
        }
    }    

	XhrObj.send(null);
	
	return true;
}

/*function ajout_click (titre_id,page)
{
data="scpp_id="+titre_id;

evalCommand("titres.php" , data );
}*/
