function validLOGIN() {
	var f = document.formLOGIN;
	if (f.useCOD.value == "") { f.useCOD.focus(); return(false); }
	if (f.usePWD.value == "") { f.usePWD.focus(); return(false); }
	var str = file('scripts/login.php?cod='+f.useCOD.value+'&pwd='+f.usePWD.value);
	if (str == "1") document.location="ec/index.php";
	if (str == "2") document.location="bo/index.php";
	if (str == "0") { alert('Identifiant inconnu !'); f.useCOD.focus(); }
	return(false);
}