/* auteur: Clic-event.com */
/* Date de création: 11/07/02 */

function validt(){
                if (document.forms[1].trans.value == '') {
                  alert("Saisissez votre nom de domaine !");
				  document.forms[1].trans.focus();
                } else {
doma = document.forms[1].trans.value;
taille = document.forms[1].trans.value.length;

validedom = false;
valideext = false;

pointfinal = doma.lastIndexOf(".");
extension = doma.substring(pointfinal,taille);

if ( doma.length > 1 ) {
validedom = true;
}
else {
validelog = false;
}

if ( pointfinal > -1 && (extension.length == 3 || extension.length == 4) ) {
valideext = true;
}
else {
valideext = false;
}

if (validedom == false || valideext == false) {
alert('Votre nom de domaine n\'est pas valide.');
document.forms[1].trans.focus();
} else {
document.forms[1].submit();
}
}
}

function mes() {
adresse = document.forms[1].trans.value;
taille = document.forms[1].trans.value.length;

validelog = false;
validedom = false;
valideext = false;

arob = adresse.lastIndexOf("@");
login = adresse.substring(0,arob);

pointfinal = adresse.lastIndexOf(".");
extension = adresse.substring(pointfinal,taille);

doma = adresse.substring(arob+1,pointfinal);


if ( login.length > 1 ) {
validelog = true;
}
else {
validelog = false;
}

if ( doma.length > 1 ) {
validedom = true;
}
else {
validelog = false;
}

if ( pointfinal > -1 && (extension.length == 3 || extension.length == 4) ) {
valideext = true;
}
else {
valideext = false;
}

if ( validelog == false || validedom == false || valideext == false) {
alert('Votre nom de domaine n\'est pas valide.');
document.forms[1].trans.focus();
} else {
document.forms[1].submit();
}}
	   
function valid(){
                if (document.forms[0].prenom.value == '')  {
                  alert("Saisissez votre prénom !");
				  document.forms[0].prenom.focus();
                } else if (document.forms[0].nom.value == '') {
                  alert("Saisissez votre nom !");
				  document.forms[0].nom.focus();
                } else if (document.forms[0].adresse.value == '') {
                  alert("Saisissez votre adresse !");
				  document.forms[0].adresse.focus();
                } else if (document.forms[0].cp.value == '') {
                  alert("Saisissez votre code postal !");
				  document.forms[0].cp.focus();
                } else if (document.forms[0].ville.value == '') {
                  alert("Saisissez votre ville !");
				  document.forms[0].ville.focus();
                } else if (document.forms[0].tel.value == '') {
                  alert("Saisissez votre numéro de téléphone !");
				  document.forms[0].tel.focus();
                } else if (document.forms[0].email.value == '') {
                  alert("Saisissez votre émail !");
				  document.forms[0].email.focus();				  
                } else if (document.forms[0].pass.value == '') {
                  alert("Saisissez un mot de passe !");
				  document.forms[0].pass.focus();
                } else {
       document.forms[0].submit();
	   }}
				
	   
function messagerie() {
adresse = document.forms[0].email.value;
taille = document.forms[0].email.value.length;

validelog = false;
validedom = false;
valideext = false;

arob = adresse.lastIndexOf("@");
login = adresse.substring(0,arob);

pointfinal = adresse.lastIndexOf(".");
extension = adresse.substring(pointfinal,taille);

dom = adresse.substring(arob+1,pointfinal);


if ( login.length > 1 ) {
validelog = true;
}
else {
validelog = false;
}

if ( dom.length > 1 ) {
validedom = true;
}
else {
validelog = false;
}

if ( pointfinal > -1 && (extension.length == 3 || extension.length == 4) ) {
valideext = true;
}
else {
valideext = false;
}

if ( validelog == false || validedom == false || valideext == false) {
alert('Votre adresse e-mail n\'est pas valide.');
document.forms[0].email.focus();
} else {
document.forms[0].submit();
}}

function valider(nom) {
window.location=('page.php?tip=c&page=abonnement&nomd='+nom);
}

/* auteur: Clic-event.com */
/* Date de création: 11/07/02 */
function nom(){
                if (document.forms.domaine.domain.value == '') {
                  alert("Saisissez un nom !");
				  document.forms.domaine.domain.focus();
                } else {
       document.forms.domaine.submit();
	   }}

function paiement(){
window.resizeTo(600,400); 
document.forms[0].submit();
}

function doma(ur){
	 if (document.forms.domaine.domain.value == '') {
     alert("Saisissez un nom de domaine !");
     document.forms.domaine.domain.focus();
     } else {
	 dom=document.forms.domaine.domain.value; 
	window.open(ur+"&domain="+dom,"","toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1,width=550,height=350,left=50,top=50");
}}