

function openPopup(page, width, height) {
  window.open(page, "", "scrollbars=yes,menubar=no,toolbar=no,resizable=yes,width="
              + width + ",height=" + height + ",left=" +
		((screen.width - 760)/2) + ",top=" + ((screen.height - 450)/2) );
}

function ouvrirCentrePopup(url,l,h) {
hauteur=Math.round((screen.availHeight-h)/2);
largeur=Math.round((screen.availWidth-l)/2);
window.open(url, "site", "toolbar=0,location=0,directories=0,status=0, scrollbars=1,resizable=0,menubar=0,top="+hauteur+",left="+largeur+",width="+l+",height="+h);
}


function openClose(id)
{
  var elt = document.getElementById(id);

  if (elt.style) {
    if (elt.style.display == 'none')
      elt.style.display = 'block';
    else
      elt.style.display = 'none';
  }
}

function openJ(id)
{
  var elt = document.getElementById(id);
  elt.style.display = 'block';
}
function closeJ(id)
{
  var elt = document.getElementById(id);
  elt.style.display = 'none';
}

function lien(url) {
opener.location.href = url;
}


	function CheckLen(Target,max)
	{
		StrLen = Target.value.length;
		if ( StrLen>max ) {
			Target.value = Target.value.substring(0,max);
			CharsLeft = max;
		} else {
			CharsLeft = StrLen;
		};
		var CharsLeft1 = max - CharsLeft;
		document.form1.reste.value = CharsLeft1;
	};


function confirmationSignal() {
  if (window.confirm('Etes-vous sûr de vouloir signaler un problème sur cette vidéo ?')) {
  return true;
  }
  else {
  return false;
  }
}