
function creer_table_navires_accostes(navires_accostes, fichier,navires_accostes_tri) 
{

//syntaxe : navires_accostes.ajouter_champ(nom, libelle, type_donnee, valeur_initiale, longueur, position) ;
navires_accostes.ajouter_champ("numero_annonce", "Numéro d'annonce", "", "", 8) ;
navires_accostes.ajouter_champ("type_article", "Type Article '1'", "", "", 1) ;
navires_accostes.ajouter_champ("poste_quai", "Poste à quai", "", "", 3) ;
navires_accostes.ajouter_champ("numero_escale", "Numéro d'escale", "", "", 4) ;
navires_accostes.ajouter_champ("marchandises_chargees", "Marchandises chargées", "", "", 20) ;
navires_accostes.ajouter_champ("marchandises_dechargees", "Marchandises déchargées", "", "", 20) ;
navires_accostes.ajouter_champ("courtier_montee", "Courtier montée", "", "", 10) ;
navires_accostes.ajouter_champ("agent_montee", "Agent montée", "", "", 10) ;
navires_accostes.ajouter_champ("bollard_av", "N° bollard AV montée", "", "", 3) ;
navires_accostes.ajouter_champ("bollard_ar", "N° bollard AR montée", "", "", 3) ;
navires_accostes.ajouter_champ("bord_quai", "Bord à quai montée", "", "", 1) ;
navires_accostes.ajouter_champ("tirant_av", "Tirant d'eau observé AV montée", "", "", 3) ;
navires_accostes.ajouter_champ("tirant_ar", "Tirant d'eau observé AR montée", "", "", 3) ;
navires_accostes.ajouter_champ("date_amarrage", "Date réelle d'amarrage", "", "", 10) ;
navires_accostes.ajouter_champ("provenance", "Provenance", "", "", 33) ;
navires_accostes.ajouter_champ("nom", "Nom", "", "", 20) ;
navires_accostes.ajouter_champ("pavillon", "Pavillon", "", "", 33) ;
navires_accostes.ajouter_champ("type", "Type", "", "", 33) ;
navires_accostes.ajouter_champ("longueur", "Longueur", "", "", 4) ;
navires_accostes.ajouter_champ("largeur", "Largeur", "", "", 3) ;
navires_accostes.ajouter_champ("jauge_nette", "Jauge nette", "", "", 6) ;
navires_accostes.ajouter_champ("jauge_brute", "Jauge brute", "", "", 6) ;
navires_accostes.ajouter_champ("port_lourd", "Port en lourd", "", "", 6) ;
navires_accostes.ajouter_champ("port_attache", "Port d'attache", "", "", 33) ;
navires_accostes.ajouter_champ("armateur", "Armateur", "", "", 20) ;
// retenir le contenu du fichier dans la table virtuelle , le chiffre est le numéro d'article :
navires_accostes.charger_fichier_navire(fichier, "1") ;

//ajouter des champs date/heure retravaillés et prets à l'affichage
navires_accostes.ajouter_champ("date_affichee", "Date réelle d'amarrage", "", "", 8) ;
navires_accostes.ajouter_champ("heure_affichee", "Heure réelle d'amarrage", "", "", 5) ;
navires_accostes.ajouter_champ("date_tri", "Date servant juste au tri par date", "", "", 10) ;
// libéllé du n° de quai :
navires_accostes.ajouter_champ("nom_terminal", "Nom du terminal", "", "", 20) ;	
// longueur des navires en m :
navires_accostes.ajouter_champ("longueur_affichee", "Longueur", "", "", 7) ;
navires_accostes.ajouter_champ("largeur_affichee", "Largeur", "", "", 6) ;

var i , date_amarrage , jours, mois, annees, heures, minutes, date_affichee, heure_affichee , date_tri,longueur_affichee,largeur_affichee;
for ( i = 0 ; i < navires_accostes.nb_enregistrements ; i ++ )
	{
	date_amarrage = navires_accostes.enregistrements[i].date_amarrage ;
	jours = date_amarrage.substring(0 , 2) ;
	mois = date_amarrage.substring(2 , 4) ;
	annees = date_amarrage.substring(4 , 6) ;
	heures = date_amarrage.substring(6 , 8) ;
	minutes = date_amarrage.substring(8 , 10) ;
	date_affichee = jours + "/" + mois + "/" + annees ;
	heure_affichee = heures + "h" + minutes ;
	if (heures == "  ")
		heure_affichee = "" ;
	//date_tri = annees + mois + jours + heures + minutes ;
	date_tri = new Date(annees,mois,jours,heures,minutes) ;
	longueur_affichee = trim(navires_accostes.enregistrements[i].longueur) ;
	if (!longueur_affichee)
		longueur_affichee = "" ;
	longueur_affichee = enlever_zeros_devant_entier(longueur_affichee) ;	
	if (longueur_affichee != "" )
		{
		longueur_affichee = parseInt(longueur_affichee) ;
		longueur_affichee = longueur_affichee/10 ;
		longueur_affichee = longueur_affichee + " m" ;
		}
	largeur_affichee = trim(navires_accostes.enregistrements[i].largeur) ;
	largeur_affichee = enlever_zeros_devant_entier(largeur_affichee) ;	
	if (largeur_affichee != "" )
		{
		largeur_affichee = parseInt(largeur_affichee) ;
		largeur_affichee = largeur_affichee/10 ;
		largeur_affichee = largeur_affichee + " m" ;
		}
	navires_accostes.enregistrements[i].date_affichee = date_affichee ;
	navires_accostes.enregistrements[i].heure_affichee = heure_affichee ;
	navires_accostes.enregistrements[i].date_tri = date_tri ;
	navires_accostes.enregistrements[i].longueur_affichee = longueur_affichee ;
	navires_accostes.enregistrements[i].largeur_affichee = largeur_affichee ;
	// appel de la fonction dans navires_postes.js :
	navires_accostes.enregistrements[i].nom_terminal = trouver_nom_terminal(navires_accostes.enregistrements[i].poste_quai)
	}

navires_accostes.trier(navires_accostes_tri) ;
return;
}

function creer_table_navires_sorties(navires_sorties, fichier) 
{

//syntaxe : navires_sorties.ajouter_champ(nom, libelle, type_donnee, valeur_initiale, longueur, position) ;
navires_sorties.ajouter_champ("numero_annonce", "Numéro d'annonce", "", "", 8) ;
navires_sorties.ajouter_champ("type_article", "Type Article '2'", "", "", 1) ;
navires_sorties.ajouter_champ("poste_quai", "Poste à quai", "", "", 3) ;
navires_sorties.ajouter_champ("agent_sortie", "Agent sortie", "", "", 10) ;
navires_sorties.ajouter_champ("port_destination", "Port de destination", "", "", 33) ;
navires_sorties.ajouter_champ("tirant_av", "Tirant d'eau AV", "", "", 3) ;
navires_sorties.ajouter_champ("tirant_ar", "Tirant d'eau AR", "", "", 3) ;
navires_sorties.ajouter_champ("date_prevue", "Date prévue", "", "", 10) ;
navires_sorties.ajouter_champ("remorqueur", "Remorqueur", "", "", 1) ;
navires_sorties.ajouter_champ("pilote", "Pilote", "", "", 1) ;
navires_sorties.ajouter_champ("lamaneurs", "Lamaneurs", "", "", 1) ;
navires_sorties.ajouter_champ("matieres_dangereuses", "Matières dangereuses", "", "", 1) ;
// retenir le contenu du fichier dans la table virtuelle , le chiffre est le numéro d'article :
navires_sorties.charger_fichier_navire(fichier, "2") ;

//ajouter des champs date/heure retravaillés et prets à l'affichage
navires_sorties.ajouter_champ("date_affichee", "Date réelle d'amarrage", "", "", 8) ;
navires_sorties.ajouter_champ("heure_affichee", "Heure réelle d'amarrage", "", "", 5) ;
navires_sorties.ajouter_champ("date_tri", "Date servant juste au tri par date", "", "", 10) ;
// libéllé du n° de quai :
navires_sorties.ajouter_champ("nom_terminal", "Nom du terminal", "", "", 20) ;	
// longueur des navires en m :
navires_sorties.ajouter_champ("longueur_affichee", "Longueur", "", "", 7) ;
navires_accostes.ajouter_champ("largeur_affichee", "Largeur", "", "", 6) ;

var i , date_prevue , jours, mois, annees, heures, minutes, date_affichee, heure_affichee , date_tri,longueur_affichee,largeur_affichee;
for ( i = 0 ; i < navires_sorties.nb_enregistrements ; i ++ )
	{
	date_prevue = navires_sorties.enregistrements[i].date_prevue ;
	jours = date_prevue.substring(0 , 2) ;
	mois = date_prevue.substring(2 , 4) ;
	annees = date_prevue.substring(4 , 6) ;
	heures = date_prevue.substring(6 , 8) ;
	minutes = date_prevue.substring(8 , 10) ;
	date_affichee = jours + "/" + mois + "/" + annees ;
	heure_affichee = heures + "h" + minutes ;
	if (heures == "  ")
		heure_affichee = "" ;
	//date_tri = annees + mois + jours + heures + minutes ;
	date_tri = new Date(annees,mois,jours,heures,minutes) ;
	/*
	longueur_affichee = trim(navires_sorties.enregistrements[i].longueur) ;
	if (!longueur_affichee)
		longueur_affichee = "" ;
	longueur_affichee = enlever_zeros_devant_entier(longueur_affichee) ;		
	if (longueur_affichee != "" )
		{
		longueur_affichee = parseInt(longueur_affichee) ;
		longueur_affichee = longueur_affichee/10 ;
		longueur_affichee = longueur_affichee + " m" ;
		}
	largeur_affichee = trim(navires_accostes.enregistrements[i].largeur) ;
	largeur_affichee = enlever_zeros_devant_entier(largeur_affichee) ;	
	if (largeur_affichee != "" )
		{
		largeur_affichee = parseInt(largeur_affichee) ;
		largeur_affichee = largeur_affichee/10 ;
		largeur_affichee = largeur_affichee + " m" ;
		}		
	*/
	navires_sorties.enregistrements[i].date_affichee = date_affichee ;
	navires_sorties.enregistrements[i].heure_affichee = heure_affichee ;
	navires_sorties.enregistrements[i].date_tri = date_tri ;
	navires_sorties.enregistrements[i].longueur_affichee = longueur_affichee ;
	navires_accostes.enregistrements[i].largeur_affichee = largeur_affichee ;
	// appel de la fonction dans navires_postes.js :
	navires_sorties.enregistrements[i].nom_terminal = trouver_nom_terminal(navires_sorties.enregistrements[i].poste_quai)
	}
}








function afficher_table_navires_accostes(navires_accostes, navires_sorties)
{
var nb_enregistrements = navires_accostes.nb_enregistrements ;
var nb_enregistrements_sortie = navires_sorties.nb_enregistrements ;
var i, j, s ;
var nav_sorties, nav_accostes ;

for ( i = 0 ; i < nb_enregistrements ; i ++ )
	{
	s = "" ;
	nav_accostes = navires_accostes.enregistrements[i] ;
	nav_sorties = "" ;
	for ( j = 0 ; j < nb_enregistrements_sortie ; j ++ )
		{
		if ( navires_sorties.enregistrements[j].numero_annonce == nav_accostes.numero_annonce )
			{
			nav_sorties = navires_sorties.enregistrements[j] ;
			//alert("re : " + nav_sorties.numero_annonce) ;
			s = j
			}
		}
	afficher_navire_accoste(nav_accostes, nav_sorties, i, s) ;
	}
return(true) ;
} 

function afficher_navire_accoste(nav_accostes, nav_sorties, i, s)
{
var date_sortie,heure_sortie,agent_sortie,destination ;
if ( nav_sorties == "" )
	{
	var date_sortie = "" ;
	var heure_sortie = "" ;
	var agent_sortie= "" ;
	var destination = "" ;
	}
else
	{
	date_sortie = nav_sorties.date_affichee ;
	heure_sortie = nav_sorties.heure_affichee ;
	if (heure_sortie != "" )
		heure_sortie = " à " + heure_sortie ;
	destination = nav_sorties.port_destination ;
	agent_sortie = nav_sorties.agent_sortie ;
	}

var js =''; 

js +='<table width="576" border="0" cellspacing="0" cellpadding="0"> ';
js +='	<tr>  ';
js +='		<td height="26" colspan="1" bgcolor="#1B40A1" valign="center" class="txtblanc" >&nbsp;&nbsp;'  + nav_accostes.nom  +  '</td> ';
js +='		<td colspan="1" width="20%" bgcolor="#1B40A1" valign="center" class="txtblanc" ><span class="tnaviresblanc">Berth :&nbsp;</span>'  + nav_accostes.poste_quai +  ' - ' +  nav_accostes.nom_terminal   +  '&nbsp;&nbsp;</td> ';
js +='		<td colspan="1" width="20%" bgcolor="#1B40A1" valign="center" class="txtblanc" ><a href="javascript:ouvrir_fiche_navire_accoste('+ i + ',\'' + s + '\');"><span  class="tnaviresblanc"><img src="../../fr/images/img_commun/puce_double.gif" width="11" height="11">&nbsp;&nbsp;Further details&nbsp;</span></a>&nbsp;</td> ';
js +='	</tr> ';
js +='	<tr>  ';
js +='		<td colspan="3" bgcolor="#056E65"><img src="../../images/offres_printemps/espaceur.gif" width="1" height="3"></td> ';
js +='	</tr> ';
js +='	<tr bgcolor=#f9fcf5> ';
js +='		<td bgcolor=#f9fcf5 class="txtbold"><span class="tnaviresvert">Berthing :&nbsp;</span>'  + nav_accostes.date_affichee  + " à " + nav_accostes.heure_affichee + '</td> ';
js +='		<td bgcolor=#f9fcf5 class="txtbold"><span class="tnaviresvert">Sailing scheduled :&nbsp;</span>'  + date_sortie  + 	heure_sortie +  '</td> ';
js +='		<td  bgcolor=#f9fcf5 class="txtbold" width="20%">&nbsp;</td> ';
js +='	</tr>	 ';					
js +='	<tr>  ';
js +='		<td colspan="3" bgcolor="#056E65"><img src="../../images/img_commun/espaceur.gif" width="1" height="3"></td> ';
js +='	</tr>	 ';				
js +='	<tr bgcolor="#E4E9F5"  height="20"> ';
js +='		<td class="tnavires" width="40%">Agent on arrival  : <span class="txtbold">'  + nav_accostes.agent_montee  +  '</span></td> ';
js +='		<td class="tnavires" width="40%">Agent on sailing : <span class="txtbold">'  + agent_sortie  +  '</span></td> ';
js +='		<td class="tnavires" width="20%">N° of the call : <span class="txtbold">'  + nav_accostes.numero_escale  +  '</span></td> ';
js +='	</tr> ';
js +='	 <tr>  ';
js +='		<td colspan="3" bgcolor="#056E65"><img src="../../images/img_commun/espaceur.gif" width="1" height="1"></td> ';
js +='	</tr>	 ';		
js +='	<tr bgcolor="#D7F8F1"  height="20"> ';
js +='		<td class="tnavires" width="40%">Origin : <span class="txtbold">'  + nav_accostes.provenance  +  '</span></td> ';
js +='		<td class="tnavires" width="40%">Destination : <span class="txtbold">'  + destination +  '</span></td> ';
js +='		<td class="tnavires" width="20%">Length : <span class="txtbold">'  + nav_accostes.longueur_affichee  +  '</span></td>  ';			
js +='	</tr>	 ';			
js +='	<tr>  ';
js +='		<td colspan="3" bgcolor="#056E65"><img src="../../images/img_commun/espaceur.gif" width="1" height="1"></td> ';
js +='	</tr>	 ';	
js +='	<tr bgcolor="#E4E9F5"  height="20"> ';
js +='		<td class="tnavires" width="40%">Unloading  : <span class="txtbold"> '  + nav_accostes.marchandises_dechargees  +  ' </span></td> ';
js +='		<td class="tnavires" width="40%">Loading : <span class="txtbold">'  + nav_accostes.marchandises_chargees  +  '</span></td> ';
js +='		<td class="tnavires" width="20%">Dead weight : <span class="txtbold">'  + nav_accostes.port_lourd  +  '</span></td> ';
js +='	</tr> ';
js +='	 <tr >  ';
js +='		<td colspan="3" bgcolor="#056E65" ><img src="../../images/img_commun/espaceur.gif" width="1" height="1"></td> ';
js +='	</tr>	 ';	
js +='	<tr  bgcolor="#D7F8F1"  height="20"> ';
js +='		<td class="tnavires" width="40%" >Shipowner : <span class="txtbold">'  + nav_accostes.armateur  +  '</span></td> ';
js +='		<td class="tnavires" width="60%" colspan="2">Flag : <span class="txtbold">'  + nav_accostes.pavillon  +  '</span></td> ';
js +='	</tr>	 ';
js +='	<tr>  ';
js +='		<td colspan="3" bgcolor="#056E65"><img src="../../images/img_commun/espaceur.gif" width="1" height="1"></td> ';
js +='	</tr> 	 ';
js +='</table> ';
js +='<br> ';
document.write( js) ;
return(js) ;
} 


function afficher_fiche_navire_accoste(nav_accostes, nav_sorties, i, s)
{
var date_sortie,heure_sortie,agent_sortie,destination, tirant_av, tirant_ar, remorqueur, pilote, lamaneurs, matieres_dangereuses ;
if ( nav_sorties == "" )
	{
	date_sortie = "" ;
	heure_sortie = "" ;
	agent_sortie= "" ;
	destination = "" ;
	tirant_av = "" ;
	tirant_ar = "" ;
	remorqueur = "" ;
	pilote = "" ;
	lamaneurs = "" ;
	matieres_dangereuses = "" ;
	}
else
	{
	date_sortie = nav_sorties.date_affichee ;
	heure_sortie = nav_sorties.heure_affichee ;
	if (heure_sortie != "" )
		heure_sortie = " à " + heure_sortie ;
	destination = nav_sorties.port_destination ;
	agent_sortie = nav_sorties.agent_sortie ;
	tirant_av = nav_sorties.tirant_av ;
	tirant_ar = nav_sorties.tirant_ar ;
	remorqueur = nav_sorties.remorqueur ;
	pilote = nav_sorties.pilote ;
	lamaneurs = nav_sorties.lamaneurs ;
	matieres_dangereuses = nav_sorties.matieres_dangereuses ;
	}

var js =''; 

js +='<table width="450" border="0" cellspacing="0" cellpadding="0"> ';
js +='	<tr>  ';
js +='		<td height="26" colspan="1" bgcolor="#1B40A1" valign="center" class="txtblanc" >&nbsp;&nbsp;'  + nav_accostes.nom  +  '</td> ';
js +='		<td colspan="1" bgcolor="#1B40A1" valign="center" class="txtblanc" ><span class="tnaviresblanc">Berth :&nbsp;</span>'  + nav_accostes.poste_quai  +  ' - ' +  nav_accostes.nom_terminal   + '&nbsp;&nbsp;</td> ';
js +='		<td colspan="1" width="5%" bgcolor="#1B40A1" valign="center" class="txtblanc" ><a href="javascript:self.close();"><img src="../../fr/images/img_commun/picto_quitter_bleu.gif" width="20" height="20" align="right" border="0" alt="Close the card"></a></td> ';
js +='	</tr> ';
js +='	<tr>  ';
js +='		<td colspan="3" bgcolor="#056E65"><img src="../../images/img_commun/espaceur.gif" width="1" height="3"></td> ';
js +='	</tr> ';
js +='	<tr bgcolor=#f9fcf5> ';
js +='		<td bgcolor=#f9fcf5 class="txtbold"><span class="tnaviresvert">Berthing :&nbsp;</span>'  + nav_accostes.date_affichee  + " à " + nav_accostes.heure_affichee + '</td> ';
js +='		<td bgcolor=#f9fcf5 class="txtbold" colspan="2"><span class="tnaviresvert">Sailing scheduled :&nbsp;</span>'  + date_sortie  + 	heure_sortie +  '</td> ';
js +='	</tr>	 ';					
js +='	<tr>  ';
js +='		<td colspan="3" bgcolor="#056E65"><img src="../../images/img_commun/espaceur.gif" width="1" height="3"></td> ';
js +='	</tr>	 ';				
js +='	<tr bgcolor="#E4E9F5"  height="20"> ';
js +='		<td class="tnavires" width="40%">Agent on arrival  : <span class="txtbold">'  + nav_accostes.agent_montee  +  '</span></td> ';
js +='		<td class="tnavires" width="40%" colspan="2">Agent on sailing : <span class="txtbold">'  + agent_sortie  +  '</span></td> ';
js +='	</tr> ';
js +='	 <tr>  ';
js +='		<td colspan="3" bgcolor="#056E65"><img src="../../images/img_commun/espaceur.gif" width="1" height="1"></td> ';
js +='	</tr>	 ';		
js +='	<tr bgcolor="#D7F8F1"  height="20"> ';
js +='		<td class="tnavires" width="40%">Origin : <span class="txtbold">'  + nav_accostes.provenance  +  '</span></td> ';
js +='		<td class="tnavires" width="40%" colspan="2">Destination : <span class="txtbold">'  + destination +  '</span></td> ';
js +='	</tr>	 ';			
js +='	<tr>  ';
js +='		<td colspan="3" bgcolor="#056E65"><img src="../../images/img_commun/espaceur.gif" width="1" height="1"></td> ';
js +='	</tr>	 ';	

js +='	<tr bgcolor="#E4E9F5"  height="20"> ';
js +='		<td class="tnavires" width="40%">Unloading  : <span class="txtbold"> '  + nav_accostes.marchandises_dechargees  +  ' </span></td> ';
js +='		<td class="tnavires" width="40%" colspan="2">Loading : <span class="txtbold">'  + nav_accostes.marchandises_chargees  +  '</span></td> ';
js +='	</tr> ';
js +='	 <tr >  ';
js +='		<td colspan="3" bgcolor="#056E65" ><img src="../../images/img_commun/espaceur.gif" width="1" height="1"></td> ';
js +='	</tr>	 ';	
js +='	<tr  bgcolor="#D7F8F1"  height="20"> ';
js +='		<td class="tnavires" width="40%" >Shipowner : <span class="txtbold">'  + nav_accostes.armateur  +  '</span></td> ';
js +='		<td class="tnavires" width="60%" colspan="2">Flag : <span class="txtbold">'  + nav_accostes.pavillon  +  '</span></td> ';
js +='	</tr>	 ';
js +='	<tr>  ';
js +='		<td colspan="3" bgcolor="#056E65"><img src="../../images/img_commun/espaceur.gif" width="1" height="1"></td> ';
js +='	</tr> 	 ';

js +='	<tr bgcolor="#E4E9F5"  height="20"> ';
js +='		<td class="tnavires" width="40%">N° of the call: <span class="txtbold"> '  + nav_accostes.numero_escale  +  ' </span></td> ';
js +='		<td class="tnavires" width="40%" colspan="2">Tonnage : <span class="txtbold">'  + nav_accostes.port_lourd  +  '</span></td> ';
js +='	</tr> ';
js +='	 <tr >  ';
js +='		<td colspan="3" bgcolor="#056E65" ><img src="../../images/img_commun/espaceur.gif" width="1" height="1"></td> ';
js +='	</tr>	 ';	
js +='	<tr  bgcolor="#D7F8F1"  height="20"> ';
js +='		<td class="tnavires" width="40%" >Length : <span class="txtbold">'  + nav_accostes.longueur_affichee  +  '</span></td> ';
js +='		<td class="tnavires" width="60%" colspan="2">Width : <span class="txtbold">'  + nav_accostes.largeur_affichee  +  '</span></td> ';
js +='	</tr>	 ';
js +='	<tr>  ';
js +='		<td colspan="3" bgcolor="#056E65"><img src="../../images/img_commun/espaceur.gif" width="1" height="1"></td> ';
js +='	</tr> 	 ';

js +='	<tr bgcolor="#E4E9F5"  height="20"> ';
js +='		<td class="tnavires" width="40%">Draft fore on arrival  : <span class="txtbold"> '  + nav_accostes.tirant_av  +  ' </span></td> ';
js +='		<td class="tnavires" width="40%" colspan="2">Draft aft on arrival : <span class="txtbold">'  + nav_accostes.tirant_ar  +  '</span></td> ';
js +='	</tr> ';
js +='	 <tr >  ';
js +='		<td colspan="3" bgcolor="#056E65" ><img src="../../images/img_commun/espaceur.gif" width="1" height="1"></td> ';
js +='	</tr>	 ';	
js +='	<tr  bgcolor="#D7F8F1"  height="20"> ';
js +='		<td class="tnavires" width="40%" >Fore bollard n° arrival  : <span class="txtbold">'  + nav_accostes.bollard_av  +  '</span></td> ';
js +='		<td class="tnavires" width="60%" colspan="2">Aft bollard n° arrival : <span class="txtbold">'  + nav_accostes.bollard_ar  +  '</span></td> ';
js +='	</tr>	 ';
js +='	<tr>  ';
js +='		<td colspan="3" bgcolor="#056E65"><img src="../../images/img_commun/espaceur.gif" width="1" height="1"></td> ';
js +='	</tr> 	 ';

js +='	<tr bgcolor="#E4E9F5"  height="20"> ';
js +='		<td class="tnavires" width="40%">Type  : <span class="txtbold"> '  + nav_accostes.type  +  ' </span></td> ';
js +='		<td class="tnavires" width="40%" colspan="2">Home Port : <span class="txtbold">'  + nav_accostes.port_attache  +  '</span></td> ';
js +='	</tr> ';
js +='	 <tr >  ';
js +='		<td colspan="3" bgcolor="#056E65" ><img src="../../images/img_commun/espaceur.gif" width="1" height="1"></td> ';
js +='	</tr>	 ';	
js +='	<tr  bgcolor="#D7F8F1"  height="20"> ';
js +='		<td class="tnavires" width="40%" >Tug  : <span class="txtbold">'  + remorqueur  +  '</span></td> ';
js +='		<td class="tnavires" width="60%" colspan="2">Pilot : <span class="txtbold">'  + pilote  +  '</span></td> ';
js +='	</tr>	 ';
js +='	<tr>  ';
js +='		<td colspan="3" bgcolor="#056E65"><img src="../../images/img_commun/espaceur.gif" width="1" height="1"></td> ';
js +='	</tr> 	 ';

js +='	<tr bgcolor="#E4E9F5"  height="20"> ';
js +='		<td class="tnavires" width="40%">Boatmen  : <span class="txtbold"> '  + lamaneurs  +  ' </span></td> ';
js +='		<td class="tnavires" width="40%" colspan="2">Dangerous Goods : <span class="txtbold">'  + matieres_dangereuses  +  '</span></td> ';
js +='	</tr> ';
js +='	 <tr >  ';
js +='		<td colspan="3" bgcolor="#056E65" ><img src="../../images/img_commun/espaceur.gif" width="1" height="1"></td> ';
js +='	</tr>	 ';	

js +='	<tr>  ';
js +='		<td height="26" colspan="1" bgcolor="#1B40A1" valign="center" class="txtblanc" >&nbsp;&nbsp;</td> ';
js +='		<td colspan="1" bgcolor="#1B40A1" valign="center" class="txtblanc" >&nbsp;</td> ';
js +='		<td colspan="1" width="5%" bgcolor="#1B40A1" valign="center" class="txtblanc" ><a href="javascript:self.close();"><img src="../../fr/images/img_commun/picto_quitter_bleu.gif" width="20" height="20" align="right" border="0" alt="Close the card"></a></td> ';
js +='	</tr> ';
js +='</table> ';

document.write( js) ;
return(js) ;


} 

function enlever_zeros_devant_entier(nombre_chaine)
{
var i , longueur_chaine, zero, longueur ;
longueur_chaine = nombre_chaine.length ;

for ( i = 0 ; i < longueur_chaine ; i ++ )
	{
	zero = nombre_chaine.substring(0 , 1) ;
	if (zero != "0" && zero != " " )
		{break ;}
	nombre_chaine = nombre_chaine.substring(1 , nombre_chaine.length);	
	}
	
	return(nombre_chaine) ;	
}