function activeFocus()
{
  self.focus();
}

function DivStatus()
{
	var divID = 'explicationInput';
	if ( document.getElementById && document.getElementById( divID ) ) // Pour les navigateurs récents
		{
			Pdiv = document.getElementById( divID );
			PcH = true;
		}
	else if ( document.all && document.all[ divID ] ) // Pour les veilles versions
		{
			Pdiv = document.all[ divID ];
			PcH = true;
		}
	else if ( document.layers && document.layers[ divID ] ) // Pour les très veilles versions
		{
			Pdiv = document.layers[ divID ];
			PcH = true;
		}
	else
		{

			PcH = false;
		}
	if ( PcH )
		{
			if ( Pdiv.className == 'explicationInputHide' )
			{
				Pdiv.className = '';
				document.form_rate.form_explication.focus();
			}
			else
			{
				Pdiv.className = 'explicationInputHide';
			}
		}
}

function send_form (note)
{
	document.forms["form_rate"]["form_note"].value = note;
	document.forms["form_rate"]["form_screen_width"].value=getViewportWidth_vote();
	document.form_rate.submit();
}

getViewportWidth_vote = function()
{
	var width = 0;
	if(document.documentElement && document.documentElement.clientWidth)
	{
		width = document.documentElement.clientWidth;
	}
	else if(document.body && document.body.clientWidth)
	{
		width = document.body.clientWidth;
	}
	else if(window.innerWidth)
	{
		width = window.innerWidth - 18;
	}
	return width;
};

