function LILog()
{

	if($F('IUSRemail')=='') { alert("Il manque votre email"); return false; }
	else if($F('IUSRemail')!=$F('IUSRemail1')) { alert("Faute de frappe dans un des emails"); return false; }
	else if($F('IUSRpass')=='') { alert("Il manque votre mot de passe (à inventer)"); return false; }
	else if($F('IUSRpass')!=$F('IUSRpass1')) { alert("Faute de frappe dans le mot de passe"); return false; }
	else if($F('IUSRpseudo')=='') { alert("Vous devez choisir un pseudonyme"); return false; }
	else {
	
	
	var URL = "COMMENT_addGuy.php";
	var rand = Math.random(9999);

	var myAjax = new Ajax.Request(
									URL	,	{
												method: 'post',
												postBody: $H({c: $F('IUSRpseudo'),
												d: $F('IUSRemail'), 
												f:$F('NEW'),
												h:$F('IUSRpass'),
												i:$F('ID'),
												s:$F('SEXE'),
												ag:$F('AGE'),
												rand:rand}).toQueryString(),
												onComplete:function(t)
															{
															$("LETTREINFO").innerHTML=t.responseText;
															//alert(myg);
															}
											}
									);
	}
}


	function LIgettel()
{

	var URL = "INSCR-NewProfil.php";
	var rand = Math.random(9999);
	var myAjax = new Ajax.Request(
									URL	,	{
												method: 'post',
												parameters: 'rand=' + rand,
												onComplete:function(t)
															{
																$("LETTREINFO").innerHTML=t.responseText;
															}
											}
									);
}
function LICheckPortable()
{
	var valeur=$F('tel');
	var URL = "LIChkPort.php";
	var rand = Math.random(9999);
	var myAjax = new Ajax.Request(
									URL	,	{
												method: 'post',
												parameters: 'tel='+valeur+'&rand=' + rand,
												onComplete:function(t)
															{
																$("LETTREINFO").innerHTML=t.responseText;
															}
											}
									);
}

function LIInscription()
{
	//var valeur=$F('Code');
	var valeur=123;
	var URL = "LIGetInscription.php";
	var rand = Math.random(9999);
	var myAjax = new Ajax.Request(
									URL	,	{
												method: 'post',
												parameters: 'code='+valeur+'&rand=' + rand,
												onComplete:function(t)
															{
																$("LETTREINFO").innerHTML=t.responseText;
															}
											}
									);
}

function NewProf()
{

	var URL = "INSCR-NewProfil.php";
	var rand = Math.random(9999);
	var myAjax = new Ajax.Request(
									URL	,	{
												method: 'post',
												parameters: 'rand=' + rand,
												onComplete:function(t)
															{
																$("LETTREINFO").innerHTML=t.responseText;
															}
											}
									);
}
function CheckPortable()
{
	var valeur=$F('tel');
	var URL = "ChkPort.php";
	var rand = Math.random(9999);
	var myAjax = new Ajax.Request(
									URL	,	{
												method: 'post',
												parameters: 'tel='+valeur+'&rand=' + rand,
												onComplete:function(t)
															{
																$("LOGTAB").innerHTML=t.responseText;
															}
											}
									);
}

function ok(val)
	{
	$('FULLSCREEN').hide();
	s0.write("preview");
	var URL = "GetCookie.php";
	var rand = Math.random(9999);	
	var myAjax = new Ajax.Request(
								URL	,	{
											method: 'post',
											parameters: 'ori='+val+'&rand=' + rand,
											onComplete:function(t)
														{
															$("FULLSCREEN").innerHTML=t.responseText;
														}
										}
								);
	}


	
function Inscription()
{
	var valeur=$F('Code');
	var URL = "GetInscription.php";
	var rand = Math.random(9999);
	var myAjax = new Ajax.Request(
									URL	,	{
												method: 'post',
												parameters: 'code='+valeur+'&rand=' + rand,
												onComplete:function(t)
															{
																$("LOGTAB").innerHTML=t.responseText;
															}
											}
									);
}