function parseResponse(status,donnees,id) {
	var tableauNews  = document.getElementById('newsletter');
	if (status==200) {
		//var LineTab = donnees.split('\n');
	 tableauNews.innerHTML = donnees;}
}
function newsletterIs(f) {
		var data;
   	data = 'email=' + f.email.value;
   	//alert(data);
    getWebData('/dyn/newsletter.asp',data,parseResponse,1);
}
// Pour la newsletter
function checkForm(f) {
if(!checkEmail(f.email,"Veuillez spécifier un email valide",true))return false;
return true;}

// Pour le contact
function checkForm2(f) {
  return	checkEmail(f.email,"Veuillez spécifier une adresse email valide.",true)
  &&	checkText(f.message,"Veuillez spécifier votre demande");
}

// Pour la création de compte
function checkForm3(f) {
  return	checkText(f.nom,"Veuillez spécifier votre nom")
  &&	checkText(f.prenom,"Veuillez spécifier votre prénom")
  && 	checkEmail(f.email,"Veuillez spécifier une adresse email valide.",true)
  &&	checkText(f.pass,"Veuillez spécifier un mot de passe")
  &&	checkText(f.pass2,"Veuillez confirmer votre mot de passe")
  &&	checkCompareTexte(f.pass,f.pass2)
  &&	checkText(f.adresse,"Veuillez spécifier votre adresse")
  &&	checkText(f.cp,"Veuillez spécifier votre code postal") 
  &&	checkText(f.ville,"Veuillez spécifier votre ville");
}
// pour les infos compte
function checkForm4(f) {
  return	checkText(f.nom,"Veuillez spécifier votre nom")
  &&	checkText(f.prenom,"Veuillez spécifier votre prénom")
  && checkEmail(f.email,"Veuillez spécifier une adresse email valide.",true)
  &&	checkText(f.adresse,"Veuillez spécifier votre adresse")
  &&	checkText(f.cp,"Veuillez spécifier votre code postal") 
  &&	checkText(f.ville,"Veuillez spécifier votre ville");
}
// Pour le mdp
function checkForm5(f) {
  return	checkText(f.pass,"Veuillez spécifier un mot de passe")
  &&	checkText(f.pass2,"Veuillez confirmer votre mot de passe")
  &&	checkCompareTexte(f.pass,f.pass2);
}

var sv=new Array;
// The star image path and name. Feel free to change it as long as it is in the directory of the html that you are using the script.
sv[15]="/img/starb.png";
// The number of the stars. 20
sv[0]=50;
// Minimum speed. (the lower the faster)
sv[1]=20;
// Maximum speed. (it should be greater then minimum speed)
sv[12]=100;
// Minimum size. (the lower the smaller)
sv[4]=20;
// Maximum size. (it should be greater then minimum size)
sv[5]=50;
// Reappearance time. (1000 is one second) 2000
sv[3]=1000;
sv[2]=sv[12]-sv[1];sv[11]=sv[5]-sv[4];
for (var n=1; n < sv[0]; n++) {var nomN="etoile"+n;document.write('<img id='+nomN+' style="position:absolute; left:-100px; width:2px; top:-100px; height:2px; visibility:visible; z-index:9" src='+sv[15]+'>');	}
function launch() {for (var n=1; n < sv[0]; n++) { setTimeout ("init('"+n+"')", 10); } }
function init(n) {var poso=Math.floor(Math.random()*sv[11])+sv[4]; var perx=Math.floor(Math.random()*(kx-poso))+document.body.scrollLeft; var pery=Math.floor(Math.random()*(ky-poso))+document.body.scrollTop; var se=Math.floor(Math.random()*sv[2])+sv[1]; setTimeout ("anw('"+n+"','"+poso+"','"+perx+"','"+pery+"','"+se+"')", sv[3]); }
function anw(n,poso,perx,pery,se) { 
	var ato="etoile"+n; var temp; var ayto=konstantinos(ato); ayto.left = perx.toString()+'px'; ayto.top = pery.toString()+'px'; temp=parseInt(ayto.width)+2; ayto.width=temp.toString()+'px'; temp=parseInt(ayto.height)+2; ayto.height=temp.toString()+'px';
	if (poso > 2) { var poso=poso-2; var perx=perx-1; var pery=pery-1; setTimeout ("anw('"+n+"','"+poso+"','"+perx+"','"+pery+"','"+se+"')", se); }
	else {perx++; pery++; setTimeout ("katw('"+n+"','"+perx+"','"+pery+"','"+se+"')", se); }
	}
function katw(n,perx,pery,se)
	{
	var ato="etoile"+n; var ayto=konstantinos(ato); var temp; ayto.left = perx.toString()+'px'; ayto.top = pery.toString()+'px'; temp=parseInt(ayto.width)-2; ayto.width=temp.toString()+'px'; temp=parseInt(ayto.height)-2; ayto.height=temp.toString()+'px'; var elen=parseInt(ayto.width);
	if (elen > 2) { perx++; pery++; setTimeout ("katw('"+n+"','"+perx+"','"+pery+"','"+se+"')", se);}else{setTimeout ("init('"+n+"')", se);}
	}      
function konstantinos(id){
	return document.getElementById(id).style; if (document.all){return document.all[id].style;} else if(document.layers){return document.layers[id];}else if(document.getElementById && document.getElementById(id) != null) {return document.getElementById(id).style;}}

