function verifie(formulaire)
{

	if(formulaire.query1.value.length<3)
	{
		alert(" Votre nom de domaine doit être composé d'au moins 3 lettres. "); /* dans ce cas on lance un message d'alerte */
		return false;
	}
	else
	{
		if(formulaire.query1.value == "" )
		{ 
			alert(" Vous n'avez choisi aucun nom de domaine "); /* dans ce cas on lance un message d'alerte */
			return false;
		}
		else
		{
			formulaire.submit();
			return true;
		}
	}
}



var n4 = window.Event ? true : false; // NN4 ou plus




 





function CheckInhalt(StringToCheck){
	
	

	txt="Merci de rentrer le texte sans (.com, .net, .org , .fr) ou le  préfixe (www.) . les caractères valides dans le nom de domaine sont les caractères alphanum&eacute;riques  et les tirets  (-).  Cependant , les tirets (-) ne doivent pas  appara&icirc;tre au d&eacute;but ou &agrave; la fin du nom de domaine.";

	var okString="";

	var ok=1;

	var checkString=StringToCheck.toLowerCase();

	var ch;

	if(checkString.length>3)

	{

		if(checkString.indexOf(".net")>-1)

		{

			checkString=checkString.substring(0,checkString.length-4);

		}

	}

	if(checkString.length>3)

	{

		if(checkString.indexOf(".com")==checkString.length-4)

		{

			checkString=checkString.substring(0,checkString.length-4);

		}

	}

	if(checkString.length>3)

	{

		if(checkString.indexOf(".org")==checkString.length-4)

		{

			checkString=checkString.substring(0,checkString.length-4);

		}

	}

	if(checkString.length>3)

	{

		if(checkString.indexOf("www.")>-1)

		{

			checkString=checkString.substring(4,checkString.length);

		}

	}

	for(i=0;i<checkString.length;i++)

	{

		ch=checkString.substring(i,i+1);

		if((ch>="a"&&ch<="z")||(ch>="A"&&ch<="Z")||(ch>="0"&&ch<="9")||(ch=="-"))

		{

			okString=okString+ch;i=i;

		}

		else

		{

			ok=0;

		}

	}

	

	if((ok==0)||(checkString.charAt(0)=="-")||(checkString.charAt(checkString.length-1)=="-"))

	{

		alert(txt);

		return okString;

	}

	else

	{

		return checkString;

	}

}



function IE_CorrectAlpha_PNG(){
	for(i=0; i<document.images.length; i++){
		img    = document.images[i];
		imgExt  = img.src.substring(img.src.length-3, img.src.length);
		imgExt  = imgExt.toUpperCase();
		if (imgExt == "PNG"){
			imgID    = (img.id) ? "id='" + img.id + "' " : "";
			imgClass= (img.className) ? "class='" + img.className + "' " : "";
			imgTitle= (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
			imgStyle= "display:inline-block;" + img.style.cssText;
			if (img.align == "left") { imgStyle = "float:left;"  + imgStyle; } else if (img.align == "right"){ imgStyle = "float:right;" + imgStyle; }
			if (img.parentElement.href)   { imgStyle = "cursor:hand;" + imgStyle; }       
			strNewHTML    = '<span '+imgID+imgClass+imgTitle+' style="width:'+img.width+'px; height:'+img.height+'px;'+imgStyle+';'+'filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+img.src+'\', sizingMethod=\'scale\');"></span>';
			img.outerHTML = strNewHTML;
			i = i-1;
		}
	}
}
     var userAgent=navigator.userAgent;
     if (userAgent.indexOf('MSIE') != -1) {
          window.attachEvent("onload", IE_CorrectAlpha_PNG);
     }