function lighting_box(page, action)
{
	url = page;
	data = "action=" + action;
	data = data + "&page=" + page;
	div = 'light_box';
	AAWrite2(url, data, 'div', div);
	new Effect.Appear('assombrir', 1);
	new Effect.ScrollTo('top_up',{duration:1});
	setTimeout("new Effect.Appear('light_box', 1)",2000);
	window.scrollbars.visible = false;	
}

function modif_lighting_box(page, action)
{
	url = page;
	data = "action=" + action;
	data = data + "&page=" + page;	
	div = 'light_box';
	new Effect.ScrollTo('top_up',{duration:1});
	AAWrite2('site-chargement.php', 'no', 'div', div);
	setTimeout("AAWrite2(url, data, 'div', div)",3000);			
}

function close_lighting()
{				
	new Effect.Fade('light_box', 1);
	setTimeout("new Effect.Fade('assombrir', 1)",2000);				
}

function toggle_div(div)
{				
	var options = new Array();
	options['duration'] = 0.3;
	new Effect.toggle(div,'blind',options);
}

function valid_inscr()
{
	nom = document.getElementById('inscr_nom').value;
	societe = document.getElementById('inscr_societe').value;				
	mail = document.getElementById('inscr_mail').value;
	tel = document.getElementById('inscr_tel').value;
	newsletter = '1';
	version = document.getElementById('inscr_version').value;

	url = 'site-newsletter.php';	
	data = "nom=" + nom + "&societe=" + societe + "&mail=" + mail + "&version=" + version + "&newsletter=" + newsletter + "&tel=" + tel + "&action=submit&page=" + url;
	div = 'light_box';
	AAWrite2('site-chargement.php', 'no', 'div', div);
	setTimeout("AAWrite2(url, data, 'div', div)",5000);	
}
