function emoticon(text) {
	document.formPost.NewsText.value  += text;
	document.formPost.NewsText.focus();
}

function emoticon_content(text) {
	document.formcontent.content_done.value  += text;
	document.formcontent.content_done.focus();
}
function emoticon_header(text) {
	document.formheader.header_done.value  += text;
	document.formheader.header_done.focus();
}
function emoticon_footer(text) {
	document.formfooter.footer_done.value  += text;
	document.formfooter.footer_done.focus();
}
function popupProp(page) {
	// ouvre une fenetre sans barre d'etat, ni d'ascenceur
	window.open(page,'prop','width=850,height=650,toolbar=false,scrollbars=1');	
}
function popupFTP(page) {
	// ouvre une fenetre sans barre d'etat, ni d'ascenceur
	window.open(page,'ftp','width=500,height=300,toolbar=false,scrollbars=1');	
}
function popupChooseImage(page) {
	// ouvre une fenetre sans barre d'etat, ni d'ascenceur
	window.open(page,'chooseimage','width=300,height=500,toolbar=false,scrollbars=0');	
}

function testRubs(ext,rub,rubid,ssrubid,type)
{
	if (confirm('Vous êtes sur le point de supprimer la rubrique/sous-rubrique '+rub+' ! Continuer ?'))
	{document.location.href = 'index.'+ext+'?cat=produits&a='+type+'&act=sup&rubid='+rubid+'&ssrubid='+ssrubid;}
}

function testCols(ext,coln,rubid,ssrubid,page,coli)
{
	if (confirm('Vous êtes sur le point de supprimer la colonne '+coln+' ! Continuer ?'))
	{document.location.href = 'edit_cols.'+ext+'?act=sup&rubid='+rubid+'&ssrubid='+ssrubid+'&page='+page+'&colid='+coli;}
}

function testNews(ext,newsnom,newsid)
{
	if (confirm('Vous êtes sur le point de supprimer la news '+newsnom+' ['+newsid+'] ! Continuer ?'))
	{document.location.href = 'index.'+ext+'?cat=accueil&act=sup&newsid='+newsid;}
}
function show(id)
{
  document.getElementById("subdiv_"+id).style.visibility = "visible";
  document.getElementById("subdiv_"+id).style.position = "";
  document.getElementById("showOr_"+id).style.visibility = "hidden";
  document.getElementById("hiddOr_"+id).style.visibility = "visible";
}
function hide(id)
{
  document.getElementById("subdiv_"+id).style.visibility = "hidden";
  document.getElementById("subdiv_"+id).style.position = "absolute";
  document.getElementById("showOr_"+id).style.visibility = "visible";
  document.getElementById("hiddOr_"+id).style.visibility = "hidden";
}
