function js_check_form()
{
	if(!check_champ('monpret','Le montant du pret',0,true,max_montant_pret,0,false,false,false))	return false;
	if(!check_date('damipl','mois'))																return false;
	if(!check_champ('tain','Le taux d\'assurance','',false,max_taux_assurance,0,false,true,false))	return false;
	if(!check_champ('taas','Le taux d\'assurance','',false,max_taux_assurance,0,false,true,false))	return false;
	if(!check_champ('taac','Le taux d\'assurance','',false,max_taux_assurance,0,false,true,false))	return false;
	if(!check_champ('menha','La mensualite hors assurance',0,false,'*',0,false,false,false))		return false;
	if(!check_champ('asmen','L\'assurance mensuelle',0,false,'*',0,false,true,false))				return false;
	if(!check_champ('menaa','La mensualite avec assurance',0,false,'*',0,false,false,false))		return false;
	if(!check_date('darac','mois'))																	return false;
	if(!check_champ('monenc','Le montant en cours',0,true,'*',0,false,true,false))					return false;
	if(run)
	{
		if(!check_champ('newdnp','La duree du nouveau pret','',true,'*',0,false,false,false))				return false;
		if(!check_champ('newtain','Le taux d\'interet','',false,max_taux_assurance,0,false,false,false))	return false;
		if(!check_champ('newtaas','Le taux d\'assurance','',false,max_taux_assurance,0,false,true,false))	return false;
		if(!check_champ('newmens','La mensualité',0,true,'*',0,false,false,false))							return false;
	}
	return true;
}
function open_help(aide)
{
	eval("document.getElementById('help_"+aide+"').style.display ='block'");
	if(aide!=1)	document.getElementById('help_1').style.display ='none';
}

function close_help(aide)
{
	eval("document.getElementById('help_"+aide+"').style.display ='none'");
	if(aide!=1)	document.getElementById('help_1').style.display ='block';
}
