function showsup(root,ident,pass,oubli_mdp)
{	
	var agt=navigator.userAgent.toLowerCase();
	var is_opera = (agt.indexOf("opera") != -1);

	if(is_opera)
		{
		larg = document.body.clientWidth;
		haut = document.body.clientHeight;
		}
	else if(document.all)
		{
		larg = document.body.clientWidth;
		haut = document.body.clientHeight;
		}
	else
		{
		larg = innerWidth;
		haut = innerHeight;
		}

	
	if(document.getElementById)
	{		
		document.getElementById("div_log").style.width = larg;
		document.getElementById("div_log").style.height = haut;
		
		html_mil = "<table style='width:"+larg+";height:"+haut+";'><TR><TD VALIGN=middle ALIGN=center style='background-color:#333333;filter:alpha(opacity=85);opacity: 0.8;'>";
				
		html_mil += "<TABLE WIDTH=350 CELLPADDING=0 CELLSPACING=0 BORDER=0 class='div_log cadre_noir' >";
		html_mil += "<TR><TD align='right'><a href='#' onClick='closeSup();return(false)' title='Fermer' style='border:1px solid #999999;color:#ffffff;background-color:cc3300;'><b>X<\/b><\/a><\/TD><\/TR>";
		html_mil += "<TR><TD align='center' class='normal'>";
		html_mil += "<div id='log_in'><br />";
		html_mil += '<form name="entryformr" method="post" action="'+root+'/struct/membre.php" onsubmit="return(val_log(this));">';
		html_mil += '<TABLE width="200"><TR><TD class=normal>';
		html_mil += '<INPUT size="20" onfocus="if(this.value==\''+ident+'\')this.value=\'\';" value="'+ident+'" name="email" id="email" class="bouton" /><br />';
		html_mil += '<INPUT size="20" type=password value="'+pass+'" name="mot_passe" id="mot_passe"  class=bouton onfocus="if(this.value==\''+pass+'\')this.value=\'\';" />';
		html_mil += '<\/TD><TD><INPUT type="submit" value="login" class="bouton" /><\/TD><\/TR><\/TABLE><\/FORM>';
		html_mil += "<br /><div class='legend'><b><a href='"+root+"/struct.php?aff=oubli_mdp'>"+oubli_mdp+" ?<\/b><\/a><\/div><\/div><\/TD><\/TR>";
		html_mil += "<TR><TD>&nbsp;<\/TD><\/TR>";
		html_mil += "<\/TABLE>";
		
		html_mil += "<\/TD><\/TR><\/TABLE>";
		
		document.getElementById("div_log").innerHTML = html_mil;
	//	setTimeout("closeSup()",30000);

	}
}

function closeSup()
{
	if(document.getElementById)
	{
		document.getElementById("div_log").style.width = 1;
		document.getElementById("div_log").style.height = 1;
		document.getElementById("div_log").innerHTML = '';
	}
		//ajax('','<?=//$wwwroot?>/menu_acces.php',document.getElementById('menu_acces'));
}


/*
function check_log(){
ajax('email='+document.getElementById('email').value+'&mot_passe='+document.getElementById('mot_passe').value+'','<?=$wwwroot?>/membre_log.php',document.getElementById('log_in'));

}
*/
	


 // window.onload = showsup;

