var cssdefinition='<style>\n.menuitems{\nborder:0px solid #FFFFFF;\n}\n\n.menuitems\n<\/style>'

if (document.all||document.getElementById)
document.write(cssdefinition)

function over_effect(e,state, bgcolor){
if (document.all)
source4=event.srcElement
else if (document.getElementById)
source4=e.target
if (source4.className=="menuitems"){
source4.style.borderStyle=state
source4.style.backgroundColor=bgcolor
}
else{
while(source4.tagName!="DIV"){
source4=document.getElementById? source4.parentNode : source4.parentElement
if (source4.className=="menuitems"){
source4.style.borderStyle=state
source4.style.backgroundColor=bgcolor
}
}
}
}


// TAILLE LA FENETRE EN OUVRANT UNE IMAGE
function afficheMaxi(chemin)
	{
	i1 = new Image;
	i1.src = chemin;
	html = '<HTML><HEAD><TITLE>Ichien.com</TITLE><body bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="5" cellspacing="5"><tr><td width="100%" valign="top" height="100%" style="BORDER-BOTTOM: 1px solid #DEE5F0; BORDER-LEFT: 1px solid #DEE5F0; BORDER-RIGHT: 1px solid #DEE5F0; BORDER-TOP: 1px solid #DEE5F0;"><CENTER><IMG SRC="'+chemin+'" BORDER=0 NAME=ichien onload="window.resizeTo(document.ichien.width+64,document.ichien.height+96)"></CENTER></td></tr><tr><td align="center"><a href="javascript:top.close();"><font face=verdana size=-2>Fermer</font></a></td></tr></table></html></body>';
    popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0');
	popupImage.document.open();
	popupImage.document.write(html);
	//html2='<script language="Javascript">var Msg="Copyright";function NoRightClick(btnClick){if(navigator.appName=="Netscape"&& btnClick.which==3)	{alert(Msg);return false;} else if(navigator.appName=="Microsoft Internet Explorer"&&event.button==2){alert(Msg);return false;}}document.onmousedown=NoRightClick;</sc';
	//html3='ript></BODY></HTML>';
	html3='</BODY></HTML>';
	//popupImage.document.write(html2);
	popupImage.document.write(html3);
	popupImage.document.close()
	};


//variable pour l'effacement du texte dans le moteur de recherche
var erased_annu = false;

//on enleve les erreurs eventuelles
function no_error()
{ return true; }
window.onerror = no_error;

function open_popup(page,nom,hauteur,largeur)
//ouvre une popup
{ window.open(page,nom,"status=no,scrollbars=yes,resizable=no,height="+hauteur+",width="+largeur+",top=0,left=0"); }

function confirm_delete(page, texte)
//demande une confirmation avant de supprimer un site ou une categorie
{
	confirmation = confirm('Etes vous sur de vouloir supprimer '+texte+' ? ');
	if(confirmation)
		window.location.replace(page);
}

function message_annu_status(message)
//affiche un texte dans la barre de statut du navigateur
{ window.status = message; }

function check_id_cat()
//verifie si on a bien selectionner une categorie dans la liste deroulante
{
	if (document.form2submit.id_cat.value == 0)
	{
		alert('Veuillez sélectionner une catégorie !');
		return false;
	}
	else
	{ return true; }
}
