function check_text(formulaire, text_b){	if (document.forms[formulaire].elements[text_b].value != "")		return true;	return false;}function verifier_saisie(){	ok = true;	q = "";		if (!check_text("saisie", "titre")){ok = false;q = q + "- Titre\n";}	if (!check_text("saisie", "journal_id") && !check_text("saisie", "journal_ponctuel") && !check_text("saisie", "journal_add")){ok = false;q = q + "- Journal\n";}	if (!check_text("saisie", "type_article")){ok = false;q = q + "- Nature de l\'article\n";}		if (ok == false){		alert("Attention !\nChamps obligatoires a completer :\n"+q);		//return false;	}else{		document.saisie.submit();	}}function supprimer_article(id){	if(confirm('Etes vous certain de vouloir supprimer definitivement cet article ?'))	{		if(id)			document.location = "saisie.php?id="+id+"&supprimer=true";	}}function effaceChamp(champ){	if(champ.value == "JJ/MM/AAAA")		champ.value = '';}function saisie_modif_fichier_associe(num_bouton){	if(num_bouton == 3)		document.saisie.fichier_associe.disabled = false;	else		document.saisie.fichier_associe.disabled = true;}// pour les choix RDJ / une du Flash du jour (gest et admin)function uncheckotherchoice(type,othertype,id){	the_current_checkbox = document.export_spip.elements['selection_'+type+'_'+id];	the_other_checkbox = document.export_spip.elements['selection_'+othertype+'_'+id];		if(the_current_checkbox.checked && the_other_checkbox.checked){		the_other_checkbox.checked = "";	}}// idem mais pour la saisiefunction uncheckotherchoice_saisie(type,othertype){	the_current_checkbox = document.saisie.elements['selection_'+type];	the_other_checkbox = document.saisie.elements['selection_'+othertype];		if(the_current_checkbox.checked && the_other_checkbox.checked){		the_other_checkbox.checked = "";	}}// Memes choses pour la CCIREfunction uncheckotherchoiceCCIRE(type,othertype1,othertype2,id){	the_current_checkbox = document.export_spip.elements['selection_'+type+'_'+id];	the_other_checkbox1 = document.export_spip.elements['selection_'+othertype1+'_'+id];	the_other_checkbox2 = document.export_spip.elements['selection_'+othertype2+'_'+id];		if(the_current_checkbox.checked && the_other_checkbox1.checked){		the_other_checkbox1.checked = "";	}	if(the_current_checkbox.checked && the_other_checkbox2.checked){		the_other_checkbox2.checked = "";	}}function uncheckotherchoice_saisieCCIRE(type,othertype1,othertype2){	the_current_checkbox = document.saisie.elements['selection_'+type];	the_other_checkbox1 = document.saisie.elements['selection_'+othertype1];	the_other_checkbox2 = document.saisie.elements['selection_'+othertype2];		if(the_current_checkbox.checked && the_other_checkbox1.checked){		the_other_checkbox1.checked = "";	}	if(the_current_checkbox.checked && the_other_checkbox2.checked){		the_other_checkbox2.checked = "";	}}function parametres_modifier(id,nom){	document.getElementById('divmodifier').style.visibility = "visible";	document.form_modif_item.id_item.value=id;	document.form_modif_item.nom.value=nom;	}function parametres_journal_modifier(id,nom,site_web){	document.getElementById('divmodifier').style.visibility = "visible";	document.form_modif_item.id_item.value=id;	document.form_modif_item.nom.value=nom;	document.form_modif_item.site_web.value=site_web;	}function export_done(){	// message	alert("export realise");		//reload de la page	document.location=document.location;}function lancer_export_xml(){		document.getElementById('exportXML').value=1;	document.export_spip.submit();}