var towrite;
var tit1;
var tit2;
var tit3;
var tit4;
var tit5;
var tit6;

var text1;
var text2;
var text3;
var text4;
var text5;
var text6;

switch (orderpage) {
// 	case "TRACKDET" :
// 		switch (docdir) {
// 	 	    case "E":
// 				 text2="not used";
// 		   		break;
// 	 	    case "F":
// 				 text2="not used";
// 		   		break;
// 	 	    case "N":
// 				 text2="not used";
// 		   		break;
// 	  		default:
// 	        	break;
// 		}
//        	break;
// 	case "TRACKLIST" :
// 		switch (docdir) {
// 	 	    case "E":
// 				 tit2="Main";
// 				 text2="<p>Select a label to display its status.</p>";
// 		   		break;
// 	 	    case "F":
// 				 tit2="G&eacute;n&eacute;ralit&eacute;s";
// 				 text2="<p>S&eacute;lectionner un num&eacute;ro d&rsquo;&eacute;tiquette et le statut sera affich&eacute;</p>";
// 		   		break;
// 	 	    case "N":
// 				 tit2="Algemeen";
// 				 text2="<p>Selecteer een etiketnummer, en de status van de etiket zal worden getoond.</p>";
// 		   		break;
// 	  		default:
// 	        	break;
// 		}
//        	break;
// 	case "BASTRACK" :
// 		switch (docdir) {
// 	 	    case "E":
// 				 tit2="Main";
// 				 text2="<p>Select on shipment or label number.<br>";
// 				 text2+="Attention : the shipment number is appointed by "+Company+".</p>";
// 				 text2+="<p>Only the first filled in criterium is used for the search.</p>";
// 		   		break;
// 	 	    case "F":
// 				 tit2="G&eacute;n&eacute;ralit&eacute;s";
// 				 text2="<p>S&eacute;lectionnez un envoi ou une &eacute;tiquette.";
// 				 text2+="<br>Attention: le num&eacute;ro d&rsquo;envoi est accord&eacute; par "+Company+".</p>";
// 				 text2+="<p>Le premier crit&egrave;re introduit est utilis&eacute;.</p>";
// 		   		break;
// 	 	    case "N":
// 				 tit2="Algemeen";
// 				 text2="Selecteer op zending- of etiketnummer.";
// 				 text2+="Opgelet : het zendingnummer wordt door "+Company+" toegekend.</p>";
// 				 text2+="<p>Het eerst ingevulde criterium wordt gebruikt.</p>";
// 		   		break;
// 	  		default:
// 	        	break;
// 		}
//        	break;
// 	case "TRACK" :
// 		switch (docdir) {
// 	 	    case "E":
// 				 tit2="Main";
// 				 tit3="Selections";
// 
// 				 text1="";
// 				 text2="<p>Search with shipment- or label number or use another search criterium.";
// 				 text2+="<br>You can complete the field <b>REFERENCE</b> partially, followed by an asterisk (*).";
// 				 text2+="<br><b>Attention:</b> this search method may cause a long waiting period.</p>";
// 
// 				 text3="<p>Only the first filled in criterium is used for the search.</p>";
// 				 text3+="<ul><li>reference shipper: <br>granted by yourself to the shipment</li>";
// 				 text3+="<li>label number: <br>granted by yourself on the unit</li>";
// 				 text3+="<li>General Parcel number:<br>given by GLS</li>";
// 				 text3+="<li>shipment number:<br>generated by GLS</li></ul>";
// 		   		break;
// 	 	    case "F":
// 				 tit2="G&eacute;n&eacute;ralit&eacute;s";
// 				 tit3="S&eacute;lections";
// 
// 				 text1="";
// 
// 				 text2="<p>S&eacute;lectionnez un num&eacute;ro d'envoi, &eacute;tiquette ou utilisez un autre crit&egrave;re de recherche.";
// 				 text2+="<br>Si vous optez pour la <b>R&Eacute;F&Eacute;RENCE</b>, il est possible d'y introduire les premiers caract&egrave;res suivis d'une ast&eacute;risque(*).";
// 				 text2+="<br>Attention, ce genre de requ&ecirc;te peut ralentir la recherche.</p>";
// 
// 				 text3="<p>Le premier crit&egrave;re introduit est utilis&eacute;.</p>";
// 				 text3+="<ul><li>r&eacute;f&eacute;rence exp&eacute;diteur.</li>";
// 				 text3+="<li>num&eacute;ro d'&eacute;tiquette : appos&eacute;e par vous sur le colis.</li>";
// 				 text3+="<li>num&eacute;ro General Parcel : vous est attribu&eacute; par GLS.</li>";
// 				 text3+="<li>num&eacute;ro d'envoi : g&eacute;n&eacute;r&eacute; par GLS</li></ul>";
// 		   		break;
// 	 	    case "N":
// 				 tit2="Algemeen";
// 				 tit3="Selecties";
// 
// 				 text1="Hieronder vindt u meer uitleg over het gebruik van deze tool. ";
// 				 text1+="<br>Dit gaat van uitleg over de velden, de druktoetsen maar bevat ";
// 				 text1+="algemene informatie over het scherm zelf.";
// 
// 				 text2="Selecteer op zending- of etiketnummer of gebruik een ander zoekcriterium.";
// 				 text2+="<br>Indien u voor <b>referentie</b> kiest, bestaat de mogelijkheid om slechts";
// 				 text2+=" een gedeelte in te voeren, gevolgd door een asterisk (*).";
// 				 text2+="<br><b>Opgelet</b>, deze zoekopdracht veroorzaakt mogelijks lange wachttijden.";
// 
// 				 text3="Het eerste ingevulde criterium wordt gebruikt.";
// 				 text3+="<ul><li>zendingnummer: door GLS gegenereerd</li>";
// 				 text3+="<li>etiketnummer: door u op de eenheid voorzien</li>";
// 				 text3+="<li>General Parcel nummer: wordt <br>u door GLS toegekend</li>";
// 				 text3+="<li>referentie afzender: door u <br>aan het transport toegekend</li></ul>";
// 		   		break;
// 	  		default:
// 	        	break;
// 		}
//        	break;
	case "NEWTRACK" :
		switch (docdir) {
	 	    case "E":
				 tit1="General";
				 tit2="Selections";
				 tit3="Actions";
				 tit4="Downloads*";

				 text1="<ul><li>All returned information is related to all accounts tied to this <b>Login Id</b>.</li>";
				 text1+="<li>A date or period is necessary when you select a <b>Status, Country, Zip code or name</b>.</li>";
				 text1+="<li>You can sort the list <u>Shipments Overview</u> by clicking on the titles; the number of records is limited to 100 records. </li>";
				 text1+="<li>Hover your mouse over the event column to read more detailed information. </li></ul>";
				 text2="<ul><li>Always enter the <b>Label or Shipment Number</b> completely, the <b>reference</b> can be entered partially, if followed by an asteriks (*).</li>";
				 text2+="<li>Selections with a <b>Date or Period</b> can be refined by selecting a status, country, zip code or name (completely or parially). </li>";
				 text3="Click on the underlined shipment or label number to view the <b>History</b> and the <b>Details</b> of your shipment.";
 				 text3+="<br><br>Select a shipment and click on: ";
                                 text3+="<ul><li><b> POD </b> to view the proof of delivery. <br><b>Attention:</b> your browser should have a TIF-viewer. We recommend <a href='http://www.alternatiff.com/'  target='_blank'>alternaTIFF</a>.  </li>";
				 text3+="<li><b> Email </b> to send the link with the POD </li>";
				 text3+="<li><b> Download </b> to save your request </li></ul>";
				 text4='How to :<ul class="maininfo-download" >';
				 text4+='<li><a class="maininfo-download" href="QuickrefTenT.pdf" target="_blank">use Track & Trace</a></li>';
				text4+="</ul>";
		   		break;
	 	    case "F":
				 tit1="G&eacute;n&eacute;ralit&eacute;s";
				 tit2="Recherche";
				 tit3="Actions";
				 tit4="T&eacute;l&eacute;chargements*";

				 text1="<ul><li> Toutes les informations données sont liées au(x) numéro(s) de compte(s) appartenant au <b>Code utilisateur </b>.</li>";
				 text1+="<li>Une date ou période est obligatoire quand on lance une recherche sur <b>Statut, Pays, Code postal ou nom</b>.</li>";
				 text1+="<li>Vous pouvez trier la <u>Liste des envois</u> en cliquant sur les titres; la liste est limitée à 100 enregistrements. </li>";
				 text1+="<li>Positionnez la souris sur la description de l&lsquo;&eacute;v&eacute;nement pour obtenir plus d&lsquo;information . </li></ul>";
				 text2="<ul><li> Complétez le <b>Numéro d'étiquette ou d'envoi</b> entier. Vous pouvez également insérer une <b>référence</b> partielle suivi d'un astérisque(*).</li>";
				 text2+="<li>La recherche par <b>date ou période</b>: vous pouvez affiner le résultat en ajoutant un statut, pays, code postal ou nom (éventuellement partiel). </li>";
				 text3="Cliquez sur le numéro d'envoi ou d'étiquette pour voir <b>l'historique</b> et les <b>détails</b> de l'envoi.";
 				 text3+="<br><br>Selectionnez un envoi et cliquez sur: ";
                                 text3+="<ul><li><b> POD </b> pour visualiser la preuve de livraison.<br><b>Attention:</b> votre navigateur doit comporter un visualisateur TIF, nous vous conseillons <a href='http://www.alternatiff.com/'  target='_blank'>alternaTIFF</a>. </li>";
				 text3+="<li><b> Email </b> pour envoyer le lien avec la POD </li>";
				 text3+="<li><b> Téléchargement </b> pour sauvegarder votre recherche </li></ul>";
				 text4='Comment peut-on :<ul class="maininfo-download" >';
				 text4+='<li><a class="maininfo-download" href="QuickrefTenT.pdf" target="_blank">utiliser Track & Trace</a></li>';
				text4+="</ul>";
		   		break;
	 	    case "N":
				 tit1="Algemeen";
				 tit2="Zoeken";
				 tit3="Acties";
				 tit4="Downloads*";

				 text1="<ul><li>Alle gegevens zijn gerelateerd aan de klantennummers verbonden met de <b>Login Code</b>.</li>";
				 text1+="<li>Een datum of periode is verplicht bij het zoeken met <b>Status, Land, Postcode of naam</b>.</li>";
				 text1+="<li>De lijst <u>Overzicht Zendingen</u> kan u sorteren door op de titels te klikken; het aantal gegevens is beperkt tot 100. </li>";
				 text1+="<li>Beweeg de muis over de kolom Evenement om meer inlichtingen te bekomen.</li></ul>";
				 text2="<ul><li>Geef een <b>etiket- of zendingnummer</b> steeds volledig in, de <b>referentie</b> kan u gedeeltelijk ingeven, gevolgd door een asterisk(*).</li>";
				 text2+="<li>Opzoekingen via <b>datum of periode</b> kan u verfijnen door een status, land, postcode of naam (eventueel gedeeltelijk) in te geven. </li>";
				 text3="Klik op het onderlijnde zending- of etiketnummer om de <b>historiek</b> en de <b>details</b> van uw zending te bekomen";
 				 text3+="<br><br>Selecteer een zending en klik: ";
                                 text3+="<ul><li><b> POD </b> om het afleverbewijs te openen. <br><b>Opgelet:</b> uw browser moet over een TIF-viewer beschikken, wij raden <a href='http://www.alternatiff.com/'  target='_blank'>alternaTIFF</a> aan. </li>";
				 text3+="<li><b> Email </b> om de link met de POD door te sturen</li>";
				 text3+="<li><b> Downloaden </b> om je zoekopdracht te bewaren </li></ul>";
				 text4='Hoe kan je :<ul class="maininfo-download" >';
				 text4+='<li><a class="maininfo-download" href="QuickrefTenT.pdf" target="_blank">Track & Trace gebruiken</a></li>';
				text4+="</ul>";
		   		break;
	  		default:
	        	break;
		}
       	break;
	case "DSPORDERS" :
		switch (docdir) {
	 	    case "E":
				 tit2="Main";
				 tit3="Selections";
				 tit4="Sorting";

				 text1="";

				 text2="<p>Click an underlined shipment number to view the proof of delivery immediately";
				 text2+="on your screen. (Attention: your browser should have a TIF-viewer. We recommend ";
				 text2+="<b><a href='http://www.alternatiff.com/'  target='_blank'>alternaTIFF</a></b> from Medical Informatics Engineering).";

				 text3="<p>When you select a shipment by clicking the <b>SEL</b> button, ";
				 text3+="	you can also choose the following options:<ul>";
				 text3+="<li><b>Detail</b> = details about the status of a shipment,            </li>";
				 text3+="<li><b>Email</b> = ask the proof of delivery by email,      </li>";
				 text3+="<li><b>Label</b> =  list of labels of the shipment,</li>";
				  if (document.getElementById('hist')) {text3+="<li><b>History</b> = history of your order (events)</li>"};
				 text3+="<li><b>Download</b> = download your search (in HTML format).</li>";
				 text3+="</ul></p>";

				 text4="<p>You can sort the results by clicking the column headings. ";
				 text4+="You can do this sorting for the current result screen or for the entire ";
				 text4+="	result of your request.</p>";

		   		break;
	 	    case "F":
				 tit2="G&eacute;n&eacute;ralit&eacute;s";
				 tit3="S&eacute;lections";
				 tit4="Tri";

				 text1="";

				 text2="Cliquez sur un num&eacute;ro d&rsquo;envoi soulign&eacute; pour visualiser la preuve de livraison.";
				 text2+="<p>(Attention, votre navigateur doit comporter un visualisateur pour fichiers TIF. Nous vous conseillons";
				 text2+="  <b><a href='http://www.alternatiff.com/'  target='_blank'>alternaTIFF</a></b>";
				 text2+=" de Medical Informatics Engineering).</p>";
				 text2+="";
				 text2+="";
				 text2+="";
				 text2+="";

				 text3="<p>Si vous s&eacute;lectionnez un envoi en cliquant sur l'option ";
				 text3+="<b>S&eacute;l</b>, vous pouvez choisir parmis les options:<ul>";
				 text3+="<li><b>D&eacute;tail</b> = d&eacute;tail du statut de l'envoi.            </li>";
				 text3+="<li><b>Email</b> = obtenir la preuve de livraison via email.     </li>";
				 text3+="<li><b>&Eacute;tiquette</b> = liste des<br>&eacute;tiquettes de l'envoi.</li>";
				 if (document.getElementById('hist')) {text3+="<li><b>Historique</b> = historique de l'envoi (&eacute;v&eacute;nements).</li>";};
				 text3+="<li><b>T&eacute;l&eacute;chargement</b> = t&eacute;l&eacute;charger ";
				 text3+="	le r&eacute;sultat de votre s&eacute;lection en format HTML.</li>";
				 text3+="</ul></p>";

				 text4="<p>Vous pouvez trier le r&eacute;sultat obtenu en cliquant sur l'en-t&eacute;te ";
				 text4+="de colonne. Vous pouvez limiter le tri aux donn&eacute;es de l'&eacute;cran ou";
				 text4+="&agrave; l'enti&egrave;ret&eacute; de votre s&eacute;lection.</p>";


		   		break;
	 	    case "N":
				 tit2="Algemeen";
				 tit3="Selecties";
				 tit4="Sorteren";

				 text1="";

				 text2="<p>Klik op een onderlijnd zendingnummer om het bewijs van aflevering rechtstreeks op het scherm";
				 text2+=" te zien. <b>Opgelet</b>, daarvoor moet de browser over een TIF-viewer beschikken. Aanrader : ";
				 text2+="<b><a href='http://www.alternatiff.com/'  target='_blank'>alternaTIFF</a></b> van Medical Informatics Engineering).</p>";
				 text2+="";

				 text3="<p>Als U een zending selecteert door de <b>SEL</b>-knop aan te klikken, ";
				 text3+="kunt u ook de volgende opties kiezen :<ul>";
				 text3+="<li><b>Detail</b> = details over de status van de zending,            </li>";
				 text3+="<li><b>Email</b> = het bewijs van aflevering via email opvragen,      </li>";
				 text3+="<li><b>Etiket</b> = lijst van de etiketten van de zending.</li>";
				 if (document.getElementById('hist')) {text3+="<li><b>Historiek</b> = historiek van het order (evenementen),</li>";};
				 text3+="<li><b>Download</b> = download uw zoekopdracht (in HTML formaat).</li>";
				 text3+="</ul></p>";

				 text4="<p>U kan de resultaten sorteren door op de kolomkoppen te drukken. 	Deze sortering  ";
				 text4+="	kan u vragen voor het huidige resultaatscherm of voor het gehele resultaat van uw opvraging</p>";
		   		break;
	  		default:
	        	break;
		}
       	break;
	case "DSPLABELS" :
		switch (docdir) {
	 	    case "E":
				 tit2="Main";
				 tit3="Selections";

				 text1="";

				 text2="<p>Click an underlined shipment number to view the proof";
				 text2+=" of delivery immediately on your screen. ";
				 text2+="(Attention: your browser should have a TIF-viewer. We recommend  ";
				 text2+="<b><a href='http://www.alternatiff.com/'  target='_blank'>alternaTIFF</a></b> ";
				 text2+="	from Medical Informatics Engineering).</p>";
				 text2+="";
				 text2+="";
				 text2+="";
				 text2+="";
				 text2+="";

				 text3="<p>When you select a shipment by clicking the <b>SEL</b> button, ";
				 text3+="you can also choose the following options:<ul>";
				 text3+="<li><b>Detail</b> = details about the status of a label,</li>";
				 text3+="<li><b>Email</b> = ask the proof of delivery by email,</li>";
				 text3+="<li><b>Label</b> = list of labels of the shipment,</li>";
				  if (document.getElementById('hist')) {text3+="<li><b>History</b> = history of your label (events)</li>"};
				 text3+="</ul></p>";
		   		break;
	 	    case "F":
				 tit2="G&eacute;n&eacute;ralit&eacute;s";
				 tit3="S&eacute;lections";

				 text1="";

				 text2="Cliquez sur un num&eacute;ro d'&eacute;tiquette soulign&eacute; pour visualiser la preuve de livraison.";
				 text2+="<p>(Attention, votre navigateur doit comporter un visualisateur pour fichiers TIF. Nous vous conseillons";
				 text2+="  <b><a href='http://www.alternatiff.com/'  target='_blank'>alternaTIFF</a></b>";
				 text2+=" de Medical Informatics Engineering).</p>";

				 text3="<p>Si vous s&eacute;lectionnez une &eacute;tiquette  en cliquant sur l'option ";
				 text3+="<b>S&eacute;l</b>, vous pouvez choisir parmis les options:<ul>";
				 text3+="<li><b>D&eacute;tail</b> = d&eacute;tail du statut de l'&eacute;tiquette.</li>";
				 text3+="<li><b>Email</b> = obtenir la preuve de livraison via email.     </li>";
				 if (document.getElementById('hist')) {text3+="<li><b>Historique</b> = historique de l'envoi (&eacute;v&eacute;nements).</li>";};
				 text3+="</ul></p>";
		   		break;
	 	    case "N":
				 tit2="Algemeen";
				 tit3="Selecties";

				 text1="";

				 text2="<p>Klik op een onderlijnd etiketnummer om het bewijs van aflevering rechtstreeks op het scherm";
				 text2+=" te zien. <b>Opgelet</b>, daarvoor moet de browser over een TIF-viewer beschikken. Aanrader : ";
				 text2+="<b><a href='http://www.alternatiff.com/'  target='_blank'>alternaTIFF</a></b> van Medical Informatics Engineering).</p>";
				 text2+="";

				 text3="<p>Als U een etiket selecteert door de <b>SEL</b>-knop aan te klikken, ";
				 text3+="kunt u ook de volgende opties kiezen :<ul>";
				 text3+="<li><b>Detail</b> = details over de status van de etiket,            </li>";
				 text3+="<li><b>Email</b> = het bewijs van aflevering via email opvragen,      </li>";
				 if (document.getElementById('hist')) {text3+="<li><b>Historiek</b> = historiek van het etiket (evenementen).</li>";};
				 text3+="<li><b>Download</b> = download uw zoekopdracht (in HTML formaat).</li>";
				 text3+="</ul></p>";

		   		break;
	  		default:
	        	break;
		}
       	break;
	default:
       	break;

}  


towrite ='<div id="maininfo_content">';

if (typeof tit1 != "undefined") {
	towrite+='<div id="maininfo_content01-mid-content02"><div id="maininfo_content01-top-content02"><div id="maininfo_content03-bot-download">';
	towrite+='<div id="maininfo_content01-mid-content02-H1"><h1>'+tit1+'</h1></div><p>';
	towrite+=text1;
	towrite+='</p></div></div></div>';
}

if (typeof tit2 != "undefined") {
	towrite+='<div id="maininfo_content01-mid-content02"><div id="maininfo_content01-top-content02"><div id="maininfo_content03-bot-download">';
	towrite+='<div id="maininfo_content01-mid-content02-H1"><h1>'+tit2+'</h1></div><p>';
	towrite+=''+text2+'';
	towrite+='</p></div></div></div>';
}

if (typeof tit3 != "undefined") {
	towrite+='<div id="maininfo_content01-mid-download"><div id="maininfo_content01-top-download"><div id="maininfo_content03-bot-download">';
	towrite+='<div id="maininfo_content02-mid-download-h1"><h1>'+tit3+'</h1></div><p>';
	towrite+=text3;
	towrite+='</p></div></div></div>';
}

// if (typeof tit4 != "undefined") {
// 	towrite+='<div id="maininfo_content01-mid-content02"><div id="maininfo_content01-top-content02"><div id="maininfo_content03-bot-download">';
// 	towrite+='<div id="maininfo_content01-mid-content02-H1"><h1>'+tit4+'</h1></div><p>';
// 	towrite+=''+text4+'';
// 	towrite+='</p></div></div></div>';
// }
// 
if (typeof tit4 != "undefined") {
	towrite+='<div id="maininfo_content01-mid-download"><div id="maininfo_content01-top-download"><div id="maininfo_content03-bot-download">';
	towrite+='<div id="maininfo_content02-mid-download-h1"><h1>'+tit4+'</h1></div><p>';
	towrite+=text4;
	towrite+='</p></div></div></div>';
}

if ((typeof tit4 != "undefined")&&(tit4=="Downloads*")) {
	towrite+="<p><div id='maininfo_download_info'>*";
	switch (docdir) {
		case "E" :
		   towrite+=" To download, please right click and select 'Save target as ...'.</div></p>";
		   break;
		case "F" :
		   towrite+=" Pour t&eacute;l&eacute;charger, cliquez sur la touche droit de la souris et choisissez &rsquo; Enregistrer la cible sous…&lsquo;.</div></p>";
		   break;
		case "N" :
		   towrite+=" Gebruik de rechtermuistoets en selecteer &rsquo;Bewaren als ...&lsquo; om het bestand te bewaren.</div></p>";
		   break;
		default :
		   towrite+="To download, please right click and select 'Save target as ...'.</div></p>";
		   break;
    }
}


if (typeof tit5 != "undefined") {
	towrite+='<div id="maininfo_content01-mid-content02"><div id="maininfo_content01-top-content02"><div id="maininfo_content03-bot-download">';
	towrite+='<div id="maininfo_content01-mid-content02-H1"><h1>'+tit5+'</h1></div><p>';
	towrite+=''+text5+'';
	towrite+='</p></div></div></div>';
}

if (typeof tit6 != "undefined") {
	towrite+='<div id="maininfo_content01-mid-content02"><div id="maininfo_content01-top-content02"><div id="maininfo_content03-bot-download">';
	towrite+='<div id="maininfo_content01-mid-content02-H1"><h1>'+tit6+'</h1></div><p>';
	towrite+=''+text6+'';
	towrite+='</p></div></div></div>';
}


towrite+='<div id="maininfo-bottom-space"></div></div>';




document.write(towrite);

