// JavaScript Documentfunction insertAtCursor(myField, myValue) {  //IE support  if (document.selection) {    myField.focus();    sel = document.selection.createRange();    sel.text = '<'+myValue+'>'+sel.text+'</'+myValue+'>';	myField.focus();  }  //MOZILLA/NETSCAPE support  else if (myField.selectionStart || myField.selectionStart == '0') {    var startPos = myField.selectionStart;    var endPos = myField.selectionEnd;	var cursorPos = endPos + myValue.length + 6;    myField.value = myField.value.substring(0, startPos)                  + '<' + myValue + '>'				  + myField.value.substring(startPos, endPos)				  + '</' + myValue + '>'                  + myField.value.substring(endPos, myField.value.length);	myField.selectionStart = cursorPos; 	myField.selectionEnd = cursorPos;	myField.focus();  } else {    myField.value += myValue;  }}function photo(id,w,h,langue) {	scrolls="no";	win_w=w;	win_h=h;		if(parseInt(w)>screen.availWidth)	{		scrolls="yes";		win_w=screen.availWidth-60;	}	if(parseInt(h)>screen.availHeight)	{		scrolls="yes";		win_h=screen.availHeight-60;	}		var left = (screen.availWidth-win_w)/2;	var top = ((screen.availHeight-win_h)/2)-30;	var styleStr = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+scrolls+',resizable='+scrolls+',copyhistory=yes,width='+win_w+',height='+win_h+',left='+left+',top='+top;	var msgWindow = window.open("../view_image.php?id="+id+"&langue="+langue,"img"+id, styleStr);	msgWindow.focus();}function MM_findObj(n, d) { //v4.01  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && d.getElementById) x=d.getElementById(n); return x;}function traductions(cible) {	obj = MM_findObj(cible);	obj2 = MM_findObj("switch_"+cible);	if (obj.style.display=="block") 	{  		obj.style.display="none";		obj2.src="images/show.gif";	}	else	{		obj.style.display="block";		obj2.src="images/hide.gif";	}}function browse(page){	x=(screen.availWidth-600)/2;	y=(screen.availHeight-600)/2;	fenetre=window.open("browser.php?type="+page,"Browser","width=600,height=600,left="+x+",top="+y+",toolbar=no,status=no,scrollbars=yes");	fenetre.focus();}
