function validform() {
    if (document.trans_text.email.value.length < 7) {
	    window.alert("Veuillez entrer votre E-mail.");
		return false;
	}
    if (document.trans_text.choix0.value.length < 3) {
	    window.alert("Veuillez sélectionner une région.");
		return false;
	}
    if (document.trans_text.cat.value.length < 3) {
	    window.alert("Veuillez sélectionner une catégorie.");
		return false;
	}
    if (document.trans_text.titre.value.length < 10) {
	    window.alert("Veuillez entrer votre titre.");
		return false;
	}
    if (document.trans_text.url.value.length < 7) {
	    window.alert("Veuillez entrer votre url .");
		return false;
	}
    if (document.trans_text.urlretour.value.length < 7) {
	    window.alert("Veuillez entrer votre lien retour .");
		return false;
	}

	return true;
}


function CheckStr(userInput)
{
							
StrLen = window.document.trans_text.descrip.value.length;
if (StrLen > 350 )
{
window.document.trans_text.descrip.value = window.document.trans_text.descrip.value.substring(0,350);
StrLeft = 0;
}
else
{
StrLeft = 350 - StrLen;
}
							
document.trans_text.Len.value = StrLeft;
}

// Fonctions de préload
function load() {
	if (document.images) {
		this.length=load.arguments.length;
		for (var i=0;i<this.length;i++) {
			this[i+1]=new Image();
			this[i+1].src=load.arguments[i];
		}
	}
}



function hidestatus(){
window.status=''
return true
}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus



