function verification()
{
	var gipa2003 = document.gipa.im2003.value;
	var gipa2007 = document.gipa.im2007.value;
	
	if ((gipa2003 == ''))
	{
		alert ("Veuillez saisir votre indice majoré\nde décembre 2003");
		document.gipa.im2003.focus();
		return false;
	}
	else if(isNaN(gipa2003))
	{
		alert("La valeur saisie n'est pas un nombre !")
		document.gipa.im2003.focus();
		document.gipa.im2003.select();
		return false;
    	}
	else if ((gipa2003.length < 3))
	{
	        alert("La valeur saisie n'est pas correcte");
	        document.gipa.im2003.focus();
	        document.gipa.im2003.select();
	        return false;
        }
        else if ((gipa2003.length > 4))
	{
	        alert("La valeur saisie n'est pas correcte");
	        document.gipa.im2003.focus();
	        document.gipa.im2003.select();
	        return false;
        }

	else if ((gipa2007 == ''))
	{
		alert ("Veuillez saisir votre indice majoré\nde décembre 2007");
		document.gipa.im2007.focus();
		return false;
	}
	else if ((gipa2007.length < 3))
	{
	        alert("La valeur saisie n'est pas correcte");
	        document.gipa.im2007.focus();
	        document.gipa.im2007.select();
	        return false;
        }
        else if ((gipa2007.length > 4))
	{
	        alert("La valeur saisie n'est pas correcte");
	        document.gipa.im2007.focus();
	        document.gipa.im2007.select();
	        return false;
        }
	
     	
    	else
	{
		document.gipa.submit();
		return true;
	}
}
