Solved

Parase text with java

Posted on 2011-03-25
20
384 Views
Last Modified: 2012-05-11
hello ,
i use this code to post data in a form and get the result page as text .
 
import java.io.*;
import java.net.*;

public class MyProg {
	public static String post(String adresse, String donnees){
        String a="";
       
         OutputStreamWriter writer = null;
         BufferedReader reader = null;
           try {
               a = "";
              //création de la connection
              URL url = new URL(adresse);
              URLConnection conn = url.openConnection();
              conn.setDoOutput(true);
             // System.out.println(conn.getURL());
              //envoi de la requête
              writer = new OutputStreamWriter(conn.getOutputStream());
              writer.write(donnees);
              writer.flush();
              //lecture de la réponse
              reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));
              String ligne;
              while ((ligne = reader.readLine()) != null) {
                  a += ligne;
              }
              
           }catch (Exception e) {
              e.printStackTrace();
           }finally{
              try{writer.close();}catch(Exception e){}
              try{reader.close();}catch(Exception e){}
           }
           return a.toString();
    }
	
	
	
	public static void main(String args[])
	{
		
          String adr="www.website.com/page.asp";
        String don="&date=201186&LCATION=FR";
        String result=post(adr,don);
        System.out.println(result);

		
	}
}

Open in new window


in the variable result , i have something like this :

Some html & javascript text
.
.
.
	// JSon		var generatedJSon = new String('{"siteParameters":{...................."}]}');
.
.
.
.

some html and javascript

Open in new window


how can i parase resulat to get the string "siteParameters":{...................."}]}
0
Comment
Question by:keviin55
  • 9
  • 5
  • 4
  • +1
20 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 35217640
The easiest way is to read the whole page into a String if that's feasible and then use a regex on it
0
 
LVL 47

Expert Comment

by:for_yan
ID: 35217679
you say

result.substring(result.indexOf("{")+1, result.lastIndexOf("}")+1)
0
 
LVL 47

Expert Comment

by:for_yan
ID: 35217698
If you have more of these bracse on the page
then you say

result = result.substring(result.indexof("generatedJSon");
result = result.substring(0,result.indexOf(";");
result = result.substring(result.indexOf("{")+1, result.lastIndexOf("}")+1)
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 35217720
Do you have the url in question to show us?
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 35217810
Try the following. You'll need to

import java.util.regex.*;

and the class here:

http://technojeeves.com/joomla/index.php/free/52-runtimeexec

String content = new String(net.proteanit.io.IOUtils.inputStreamToByteArray(conn.getInputStream()));
Pattern p = Pattern.compile("(?m)'{\"siteParameters\".*?'");
Matcher m = p.matcher(content);
if (m.find()) {
	System.out.println(m.group());
}

Open in new window

0
 
LVL 86

Expert Comment

by:CEHJ
ID: 35217888
You can simplify the first line to
String content = net.proteanit.io.IOUtils.inputStreamToString(conn.getInputStream());

Open in new window

0
 
LVL 86

Expert Comment

by:CEHJ
ID: 35217954
Sorry - that pattern is buggy. It should be (tested and working)
Pattern p = Pattern.compile("(?ms)'\\{\"siteParameters\".*?'");

Open in new window

0
 

Author Comment

by:keviin55
ID: 35218356
i trie this

result = result.substring(result.indexof("generatedJSon");
result = result.substring(0,result.indexOf(";");
result = result.substring(result.indexOf("{")+1, result.lastIndexOf("}")+1)

it work but it take too much time .

CEHJ , i dont understand how ur code work .

this is the web page .

<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html dir="ltr" lang="fr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml">                                  <head>        					 <!-- PTR03048448 -->	  		<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />	  		  				<script type="text/javascript">	  			  			  	</script>	  	            <!-- template name: fdct -->      <title>franchjg Online - dates</title>	    	  	<base href="http://wftc2.e-travel.com/plnext/franchjg/201101041527/static/" />	  	                  	            	      	                                <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />  		<meta name="Description" content="horaires de recherche de vols, recherche d'horaires de vols, obtenir l'Ètat actuel du vol, rechercher des hÙtels, rechercher une voiture de location, obtenir des outils de voyage, organiser un voyage. chercher des informations sur l'aÈroport" /><meta name="Keywords" content="disponibilitÈs de vols, vols, horaires de vol, durÈes de vol, vols ‡ bas prix, statut du vol, recherche d'hÙtel, location de voiture, voyage d'affaires, guides de voyage, horloge universelle, temps universel, E-travel" />                  	    	  	  	  		      		        		        <link rel="stylesheet" type="text/css" href="http://wftc2.e-travel.com/plnext/default/WPN_AeRE_v14.0_151D_110311/static/css_v2/main.css" />		      		        		        <link rel="stylesheet" type="text/css" href="http://wftc2.e-travel.com/plnext/default/WPN_AeRE_v14.0_151D_110311/static/css_v2/FDCT.css" />		      		      	  	  	  	                                      	                                                                                            <link rel="stylesheet" type="text/css" href="./css/custom_image_cal.css" media="screen, print" />                                      <link rel="stylesheet" type="text/css" href="./css/custom_image_content.css" media="screen, print" />                                      <link rel="stylesheet" type="text/css" href="./css/custom_image_PLTG.css" media="screen, print" />                                      <link rel="stylesheet" type="text/css" href="./css/custom_image_TL.css" media="screen, print" />                                      <link rel="stylesheet" type="text/css" href="./css/custom_image_SeatMap.css" media="screen, print" />                                      <link rel="stylesheet" type="text/css" href="./css/custom_image_holiday.css" media="screen, print" />                                                            <link rel="stylesheet" type="text/css" href="./css/custom.css" media="screen, print" />                                                                                              <link rel="stylesheet" type="text/css" href="http://wftc2.e-travel.com/plnext/default/WPN_AeRE_v14.0_151D_110311/static/css/style_print.css" media="print" />                                  			                             <script src="http://wftc2.e-travel.com/plnext/js/WPN_AeRE_v14.0_151D_110311/lib/WDSCore.js" language="JavaScript" type="text/javascript"></script>                                         <script src="http://wftc2.e-travel.com/plnext/js/WPN_AeRE_v14.0_151D_110311/ui/PLTGWDSDefinitions.js" language="JavaScript" type="text/javascript"></script>                      <script src="http://wftc2.e-travel.com/plnext/js/WPN_AeRE_v14.0_151D_110311/ui/hbp/Common/utils/json.js" language="JavaScript" type="text/javascript"></script>                       <script type="text/javascript">    <!--    function FDCT_pageOnLoad() {    		// Internationalization		FDCT.from = "‡ partir de";				      FDCT.dateLabelPattern[0] = "DÈpart : {0}";      FDCT.dateLabelPattern[1] = "Retour : {0}";      				// JSon		var generatedJSon = new String('{"siteParameters":{"isPriceLoadingDisplayed":false,"isPriceChangedDialogDisplayed":false},"recommendations":[{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011032820110403","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011032820110408","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040220110411","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011033020110407","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040420110410","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040420110411","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040120110410","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011032820110410","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011033020110409","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040420110407","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011033020110406","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040320110410","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040220110406","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011032820110404","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011033120110407","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011033020110408","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040520110406","collect":0,"price":439,"formatted_discount_price":"","list_price":[{"price":233,"formatted_discount_price":"","formatted_price":"233,00 TND"},{"price":206,"formatted_discount_price":"","formatted_price":"206,00 TND"}],"formatted_price":"439,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011033120110409","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011033120110411","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040320110411","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040220110405","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040120110406","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011033020110405","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040520110409","collect":0,"price":399,"formatted_discount_price":"","list_price":[{"price":233,"formatted_discount_price":"","formatted_price":"233,00 TND"},{"price":166,"formatted_discount_price":"","formatted_price":"166,00 TND"}],"formatted_price":"399,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040420110406","collect":0,"price":413,"formatted_discount_price":"","list_price":[{"price":208,"formatted_discount_price":"","formatted_price":"208,00 TND"},{"price":205,"formatted_discount_price":"","formatted_price":"205,00 TND"}],"formatted_price":"413,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011033120110408","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011033120110410","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011033120110406","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040220110407","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040120110408","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040120110403","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011032820110406","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040520110411","collect":0,"price":399,"formatted_discount_price":"","list_price":[{"price":233,"formatted_discount_price":"","formatted_price":"233,00 TND"},{"price":166,"formatted_discount_price":"","formatted_price":"166,00 TND"}],"formatted_price":"399,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040320110405","collect":0,"price":413,"formatted_discount_price":"","list_price":[{"price":208,"formatted_discount_price":"","formatted_price":"208,00 TND"},{"price":205,"formatted_discount_price":"","formatted_price":"205,00 TND"}],"formatted_price":"413,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011033120110405","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011033020110410","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040220110408","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011033120110404","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011032820110405","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040220110409","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040320110408","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040520110407","collect":0,"price":439,"formatted_discount_price":"","list_price":[{"price":233,"formatted_discount_price":"","formatted_price":"233,00 TND"},{"price":206,"formatted_discount_price":"","formatted_price":"206,00 TND"}],"formatted_price":"439,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011032820110411","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040120110409","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040420110409","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040320110409","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040120110404","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011032820110407","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040320110404","collect":0,"price":413,"formatted_discount_price":"","list_price":[{"price":208,"formatted_discount_price":"","formatted_price":"208,00 TND"},{"price":205,"formatted_discount_price":"","formatted_price":"205,00 TND"}],"formatted_price":"413,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011033020110404","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040420110405","collect":0,"price":413,"formatted_discount_price":"","list_price":[{"price":208,"formatted_discount_price":"","formatted_price":"208,00 TND"},{"price":205,"formatted_discount_price":"","formatted_price":"205,00 TND"}],"formatted_price":"413,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040420110408","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040120110407","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011033020110403","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040520110408","collect":0,"price":399,"formatted_discount_price":"","list_price":[{"price":233,"formatted_discount_price":"","formatted_price":"233,00 TND"},{"price":166,"formatted_discount_price":"","formatted_price":"166,00 TND"}],"formatted_price":"399,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011032820110409","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040220110403","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040120110411","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040320110406","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011033020110411","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040220110404","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040520110410","collect":0,"price":399,"formatted_discount_price":"","list_price":[{"price":233,"formatted_discount_price":"","formatted_price":"233,00 TND"},{"price":166,"formatted_discount_price":"","formatted_price":"166,00 TND"}],"formatted_price":"399,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040220110410","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040120110405","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011040320110407","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"},{"formatted_refund":"0,00 TND","refund":0,"formatted_total_collect":"0,00 TND","formatted_collect":"0,00 TND","keyDate":"2011033120110403","collect":0,"price":333,"formatted_discount_price":"","list_price":[{"price":168,"formatted_discount_price":"","formatted_price":"168,00 TND"},{"price":165,"formatted_discount_price":"","formatted_price":"165,00 TND"}],"formatted_price":"333,00 TND"}]}');		var jsonExpression = "(" + generatedJSon + ")";		var jSonObject = eval(jsonExpression);		FDCT.recommendations = jSonObject.recommendations;		    	FDCT.keyDate[0] = "20110401";    	    	FDCT.keyDate[1] = "20110407";    			var dateCell;				FDCT.dates[0] = new Array();			   	  	dateCell = new DateCell();		FDCT.dates[0][0] = dateCell;		dateCell.keyDate = "20110328";		dateCell.formattedDate = "28 mars";		dateCell.longFormattedDate = "lundi, mars 28";		       	  	dateCell = new DateCell();		FDCT.dates[0][1] = dateCell;		dateCell.keyDate = "20110329";		dateCell.formattedDate = "29 mars";		dateCell.longFormattedDate = "mardi, mars 29";		       	  	dateCell = new DateCell();		FDCT.dates[0][2] = dateCell;		dateCell.keyDate = "20110330";		dateCell.formattedDate = "30 mars";		dateCell.longFormattedDate = "mercredi, mars 30";		       	  	dateCell = new DateCell();		FDCT.dates[0][3] = dateCell;		dateCell.keyDate = "20110331";		dateCell.formattedDate = "31 mars";		dateCell.longFormattedDate = "jeudi, mars 31";		       	  	dateCell = new DateCell();		FDCT.dates[0][4] = dateCell;		dateCell.keyDate = "20110401";		dateCell.formattedDate = "1 avril";		dateCell.longFormattedDate = "vendredi, avril 01";		       	  	dateCell = new DateCell();		FDCT.dates[0][5] = dateCell;		dateCell.keyDate = "20110402";		dateCell.formattedDate = "2 avril";		dateCell.longFormattedDate = "samedi, avril 02";		       	  	dateCell = new DateCell();		FDCT.dates[0][6] = dateCell;		dateCell.keyDate = "20110403";		dateCell.formattedDate = "3 avril";		dateCell.longFormattedDate = "dimanche, avril 03";		       	  	dateCell = new DateCell();		FDCT.dates[0][7] = dateCell;		dateCell.keyDate = "20110404";		dateCell.formattedDate = "4 avril";		dateCell.longFormattedDate = "lundi, avril 04";		       	  	dateCell = new DateCell();		FDCT.dates[0][8] = dateCell;		dateCell.keyDate = "20110405";		dateCell.formattedDate = "5 avril";		dateCell.longFormattedDate = "mardi, avril 05";		       	  	dateCell = new DateCell();		FDCT.dates[0][9] = dateCell;		dateCell.keyDate = "";		dateCell.formattedDate = "";		dateCell.longFormattedDate = "";		       	  	dateCell = new DateCell();		FDCT.dates[0][10] = dateCell;		dateCell.keyDate = "";		dateCell.formattedDate = "";		dateCell.longFormattedDate = "";		       	  	dateCell = new DateCell();		FDCT.dates[0][11] = dateCell;		dateCell.keyDate = "";		dateCell.formattedDate = "";		dateCell.longFormattedDate = "";		       	  	dateCell = new DateCell();		FDCT.dates[0][12] = dateCell;		dateCell.keyDate = "";		dateCell.formattedDate = "";		dateCell.longFormattedDate = "";		       	  	dateCell = new DateCell();		FDCT.dates[0][13] = dateCell;		dateCell.keyDate = "";		dateCell.formattedDate = "";		dateCell.longFormattedDate = "";		        			FDCT.dates[1] = new Array();			   	  	dateCell = new DateCell();		FDCT.dates[1][0] = dateCell;		dateCell.keyDate = "";		dateCell.formattedDate = "";		dateCell.longFormattedDate = "";		       	  	dateCell = new DateCell();		FDCT.dates[1][1] = dateCell;		dateCell.keyDate = "";		dateCell.formattedDate = "";		dateCell.longFormattedDate = "";		       	  	dateCell = new DateCell();		FDCT.dates[1][2] = dateCell;		dateCell.keyDate = "";		dateCell.formattedDate = "";		dateCell.longFormattedDate = "";		       	  	dateCell = new DateCell();		FDCT.dates[1][3] = dateCell;		dateCell.keyDate = "";		dateCell.formattedDate = "";		dateCell.longFormattedDate = "";		       	  	dateCell = new DateCell();		FDCT.dates[1][4] = dateCell;		dateCell.keyDate = "";		dateCell.formattedDate = "";		dateCell.longFormattedDate = "";		       	  	dateCell = new DateCell();		FDCT.dates[1][5] = dateCell;		dateCell.keyDate = "";		dateCell.formattedDate = "";		dateCell.longFormattedDate = "";		       	  	dateCell = new DateCell();		FDCT.dates[1][6] = dateCell;		dateCell.keyDate = "20110403";		dateCell.formattedDate = "3 avril";		dateCell.longFormattedDate = "dimanche, avril 03";		       	  	dateCell = new DateCell();		FDCT.dates[1][7] = dateCell;		dateCell.keyDate = "20110404";		dateCell.formattedDate = "4 avril";		dateCell.longFormattedDate = "lundi, avril 04";		       	  	dateCell = new DateCell();		FDCT.dates[1][8] = dateCell;		dateCell.keyDate = "20110405";		dateCell.formattedDate = "5 avril";		dateCell.longFormattedDate = "mardi, avril 05";		       	  	dateCell = new DateCell();		FDCT.dates[1][9] = dateCell;		dateCell.keyDate = "20110406";		dateCell.formattedDate = "6 avril";		dateCell.longFormattedDate = "mercredi, avril 06";		       	  	dateCell = new DateCell();		FDCT.dates[1][10] = dateCell;		dateCell.keyDate = "20110407";		dateCell.formattedDate = "7 avril";		dateCell.longFormattedDate = "jeudi, avril 07";		       	  	dateCell = new DateCell();		FDCT.dates[1][11] = dateCell;		dateCell.keyDate = "20110408";		dateCell.formattedDate = "8 avril";		dateCell.longFormattedDate = "vendredi, avril 08";		       	  	dateCell = new DateCell();		FDCT.dates[1][12] = dateCell;		dateCell.keyDate = "20110409";		dateCell.formattedDate = "9 avril";		dateCell.longFormattedDate = "samedi, avril 09";		       	  	dateCell = new DateCell();		FDCT.dates[1][13] = dateCell;		dateCell.keyDate = "20110410";		dateCell.formattedDate = "10 avril";		dateCell.longFormattedDate = "dimanche, avril 10";		       	  	dateCell = new DateCell();		FDCT.dates[1][14] = dateCell;		dateCell.keyDate = "20110411";		dateCell.formattedDate = "11 avril";		dateCell.longFormattedDate = "lundi, avril 11";		       	  	dateCell = new DateCell();		FDCT.dates[1][15] = dateCell;		dateCell.keyDate = "";		dateCell.formattedDate = "";		dateCell.longFormattedDate = "";		       	  	dateCell = new DateCell();		FDCT.dates[1][16] = dateCell;		dateCell.keyDate = "";		dateCell.formattedDate = "";		dateCell.longFormattedDate = "";		       	  	dateCell = new DateCell();		FDCT.dates[1][17] = dateCell;		dateCell.keyDate = "";		dateCell.formattedDate = "";		dateCell.longFormattedDate = "";		       	  	dateCell = new DateCell();		FDCT.dates[1][18] = dateCell;		dateCell.keyDate = "";		dateCell.formattedDate = "";		dateCell.longFormattedDate = "";		       	  	dateCell = new DateCell();		FDCT.dates[1][19] = dateCell;		dateCell.keyDate = "";		dateCell.formattedDate = "";		dateCell.longFormattedDate = "";		       	  	dateCell = new DateCell();		FDCT.dates[1][20] = dateCell;		dateCell.keyDate = "";		dateCell.formattedDate = "";		dateCell.longFormattedDate = "";		        	        FDCT.isRedemptionMode = false;        FDCT.isKeepTheFare = false;    // Site parameters from the FdctCalendarPanel		this.isPriceLoadingDisplayed = jSonObject.siteParameters.isPriceLoadingDisplayed;		this.isPriceChangedDialogDisplayed = jSonObject.siteParameters.isPriceChangedDialogDisplayed;			this.priceChangedDialogTitleMessage = "Important !";		this.outboundPriceChangedMessage = "Attention, le prix du vol s\u00E9lectionn\u00E9 pour l\'aller a chang\u00E9";		this.inboundPriceChangedMessage = "Attention, le prix du vol s\u00E9lectionn\u00E9 pour le retour a chang\u00E9"; 		this.noFlight = "-";				this.loadingDialog = null;    		FDCT.init();    }    -->  </script>                                                  <script src="http://wftc2.e-travel.com/plnext/js/WPN_AeRE_v14.0_151D_110311/ui/FDCT.js" language="JavaScript" type="text/javascript"></script>                      <script src="http://wftc2.e-travel.com/plnext/js/WPN_AeRE_v14.0_151D_110311/ui/commonDisplay.js" language="JavaScript" type="text/javascript"></script>                      <script src="http://wftc2.e-travel.com/plnext/js/WPN_AeRE_v14.0_151D_110311/ui/ExtraInfoPopUp.js" language="JavaScript" type="text/javascript"></script>                      <script src="http://wftc2.e-travel.com/plnext/js/WPN_AeRE_v14.0_151D_110311/ui/DateList.js" language="JavaScript" type="text/javascript"></script>                      <script src="http://wftc2.e-travel.com/plnext/js/WPN_AeRE_v14.0_151D_110311/ui/modifySearchForm.js" language="JavaScript" type="text/javascript"></script>                      <script src="http://wftc2.e-travel.com/plnext/js/WPN_AeRE_v14.0_151D_110311/ui/ElementLineUp.js" language="JavaScript" type="text/javascript"></script>                      <script src="http://wftc2.e-travel.com/plnext/js/WPN_AeRE_v14.0_151D_110311/ui/DOM.js" language="JavaScript" type="text/javascript"></script>                      <script src="http://wftc2.e-travel.com/plnext/js/WPN_AeRE_v14.0_151D_110311/ui/PriceRecap.js" language="JavaScript" type="text/javascript"></script>                                   		                   <script language="javascript" type="text/javascript"><!--var LOCK_CHECK_ENTER = false;Netscape = (navigator.appName.substring(0,3) == "Net");function checkEnter(event) {  var code = 0;  if(Netscape) {    code = event.which;  } else {    code = window.event.keyCode;  }  if (code == 13) {    var result = false;    return result;  }}document.onkeypress = checkEnter;--></script>            <script language="JavaScript" type="text/javascript">      <!--      function nameTheWindow() {        if (!window.opener && window.name == '') {          window.name='mainplnext';        }      }      function sellingPlatformLock() { }                  //-->      </script>				    </head>	    <body onload="nameTheWindow(); javascript:FDCT.pageOnLoad();modifySearchForm_pageOnLoad();; " onunload="" id="fdct">	    	    	    	    	 	    	 	    					<div id="customDHTML" style="display:none;">		    					<center><form name="custom"><table border="1">					  			    	    	    <tr>      	<td><b>Requested Segment information 0:</b></td>      	<td>      		beginLocation <input type="text" name="requestBeginLocationCode_0" id="requestBeginLocationCode_0" value="TUN"/> <br />      		endLocation <input type="text" name="requestEndLocationCode_0" id="requestEndLocationCode_0" value="ALG"/> <br />      	</td>  		</tr>			    	    	    <tr>      	<td><b>Requested Segment information 1:</b></td>      	<td>      		beginLocation <input type="text" name="requestBeginLocationCode_1" id="requestBeginLocationCode_1" value="ALG"/> <br />      		endLocation <input type="text" name="requestEndLocationCode_1" id="requestEndLocationCode_1" value="TUN"/> <br />      	</td>  		</tr>				        <tr>        <td>Number of Traveller : </td><td><input type="text" name="nbTrav" id="nbTrav" value="0"/></td>        </tr>        <tr>        <td>Cabin : </td><td><input type="text" name="cabin" id="cabin" value=""/></td>        </tr>        <tr>        <td>Language : </td><td><input type="text" name="language" id="language"  value='FR'/></td>        </tr>        	        <tr>	        <td>Office Id : </td><td><input type="text" name="officeId" id="officeId" value="TUNTU08BB" /></td>	        </tr>                                                                                                                    			<tr>        		<td><b>Agency information:</b></td><td></td>			</tr><tr><td>Agency adress : </td><td><input type="text" name="AgencyLine1" id="AgencyLine1" value="franchjg Online Reservation" /><br /><input type="text" name="AgencyLine2" id="AgencyLine2" value="Boulevard 7 Novembre 1987" /><br /><input type="text" name="AgencyLine3" id="AgencyLine3" value="franchjg-Carthage" /><br /><input type="text" name="AgencyLine6" id="AgencyLine6" value="&lt;a href=mailto:resaonline@franchjg.com.tn target=resaonline&gt;resaonline@franchjg.com.tn&lt;/a&gt;" /><br /></td></tr><tr> <td>seat preference :</td><td><input type="text" name="seatMapSelectionList" id="seatMapSelectionList" value="" /><br /></td></tr><tr> <td>ext id :</td><td><input type="text" name="cust_external_id" id="cust_external_id" value="FLEX-IBE" /></td></tr><tr>   <td>templateName :</td>  <td>    <input type="text" name="custom_templateName" id="custom_templateName" value="fdct" />  </td></tr><tr>   <td>Portal Environment Variable 1:</td>  <td>    <input type="text" name="pe_variable1" id="pe_variable1" value="" />  </td></tr><tr>   <td>Portal Environment Variable 2:</td>  <td>    <input type="text" name="pe_variable2" id="pe_variable2" value="" />  </td></tr><tr>   <td>Portal Environment Variable 3:</td>  <td>    <input type="text" name="pe_variable3" id="pe_variable3" value="" />  </td></tr><tr>   <td>Portal Environment Variable 4:</td>  <td>    <input type="text" name="pe_variable4" id="pe_variable4" value="" />  </td></tr><tr>   <td>Portal Environment Variable 5:</td>  <td>    <input type="text" name="pe_variable5" id="pe_variable5" value="" />  </td></tr><tr>   <td>Flex Pricer Mode:</td>  <td>    <input type="text" name="flex_pricer_mode" id="flex_pricer_mode" value="O" />  </td></tr><tr>   <td>Flex Pricer Page Type:</td>  <td>    <input type="text" name="flex_pricer_page_type" id="flex_pricer_page_type" value="Calendar" />  </td></tr>							      </table></form></center>		    </div>	    	    	    	    	    		    		    	    			      		      		      	  <script type="text/javascript" language="javascript"><!--  var waitLanguage = 'FR';    if (waitLanguage == 'GB') {    waitLanguage = 'en';  }  WDSWaitingImage.setLanguage("languages/" + waitLanguage);   WDSWaitingImage.setPrivateLabel(null);  WDSWaitingImage.setProgressImg("progress.gif")  WDSWaitingImage.preload("wait");  --></script>                <center>        <div id="WDSWaitingImageDivID" style="display:none;align:center;">           <div id="divWait">            <p id="logo"><img id="WDSWaitingImageImgID" name="WDSWaitingImageName" /></p>            <p id="title">Traitement en cours, veuillez patienter...</p>            <p id="indicator"><img id="WDSProgressImageImgID" alt='Traitement en cours, veuillez patienter...'/></p>            <p id="info"></p>                      </div>        </div>      </center>      	      		      	      						      	  	      	<div id="container">	        	<table class="layoutTable">	          	<tr>	            	<td class="layoutLeft" rowspan="3">		              <link rel="STYLESHEET" type="text/css"><script language="JavaScript">function selection_ligne(ligne) { ligne.style.background = "#A8CBE8"; ligne.style.borderColor = "#ffffff"; } function deselection_ligne(ligne) { ligne.style.background = "#334E93";ligne.style.borderColor = "#ffffff"; } </script><SCRIPT language=javascript><!-- Hide JavaScript from Java-Impaired Browsers  function NavRollOver(oTd) {if (!oTd.contains(event.fromElement)) {oTd.background="/images/sideNav_highlight.gif";}}  function NavRollOut(oTd) {if (!oTd.contains(event.toElement)) {oTd.background="/images/spacer.gif";}}// End Hiding --></SCRIPT><script language="JavaScript">function openwin(desktop,title,w,h) {  var winl = (screen.width - w) / 2;  var wint = (screen.height - h) / 2;  var w=window.open(desktop, title, "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+w+",height="+h+",top="+wint+",left="+winl+"");  w.focus();}function openwin_scroll(desktop,title,w,h) {  var winl = (screen.width - w) / 2;  var wint = (screen.height - h) / 2;   var w=window.open(desktop, title, "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width="+w+",height="+h+",top="+wint+",left="+winl+"");  w.focus();}//--></script><script language="JavaScript1.2">/*Change Cell Backgrounds -© Shivaji Basu (www.shivbasu.com)To add more shock to your site, visit www.DHTML Shock.com*/function cOn(td){if(document.getElementById||(document.all && !(document.getElementById))){td.style.backgroundColor="#A8CBE8";}}function cOut(td){if(document.getElementById||(document.all && !(document.getElementById))){ td.style.backgroundColor="#334E93";}}</script><!-- END DEFAULT PAGE HEADER --><!-- BEGIN DEFAULT TOP NAVIGATION --><!-- END DEFAULT TOP NAVIGATION --><table width="168" border="0" cellspacing="0" cellpadding="0" height="60%">  <!--DWLayoutTableheight="274"-->  <tr>     <td width="168" height="478" valign="top"><table width="95%" border="0" cellspacing="0" cellpadding="0" >                    <tr>          <td>&nbsp;</td>        </tr>        <tr>           <td><div align="center"></div></td>        </tr>      		        <tr>                              <tr>                  <td height="20" ><div align="center">                    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="160" height="50">                      <param name="movie" value="https://www.franchjg.com/publish/fr/SPO/animfranchjg2.swf">                      <param name="quality" value="high">                      <embed src="https://www.franchjg.com/publish/fr/SPO/animfranchjg2.swf" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="160" height="50"></embed>                    </object>                  </div></td>                </tr>                <tr>                  <td height="20" ><div align="center">                  </div></td>                </tr>                <tr>                  <td height="20" ><div align="center"><img src="https://www.franchjg.com/publish/fr/SPO/franchjg.jpg" width="113" height="68"></div></td>                </tr>                <tr>                  <td height="20" ><div align="center"><img src="https://www.franchjg.com/publish/fr/SPO/tabarka.jpg" width="113" height="68"></div></td>                </tr>                <tr>                  <td height="20" ><div align="center"><img src="https://www.franchjg.com/publish/fr/SPO/sfax.gif" width="113" height="68"></div></td>                </tr>                <tr>                  <td height="20" ><div align="center"><img src="https://www.franchjg.com/publish/fr/SPO/droite_vente.jpg" width="113" height="68" border="1"></div></td>                </tr>                <tr>                  <td height="20" ><div align="center"><img src="https://www.franchjg.com/publish/fr/SPO/monastir.jpg" width="113" height="68"></div></td>                </tr>                <tr>                  <td height="20" ><div align="center"><img src="https://www.franchjg.com/publish/fr/SPO/gafsa.jpg" width="113" height="68"></div></td>                </tr>                <tr>                  <td height="20" ><div align="center"><img src="https://www.franchjg.com/publish/fr/SPO/djerba.gif" width="113" height="68"></div></td>                </tr>        <tr>                        <br> <td height="20" ><div align="center"><br>                         <br>         </div></td>                </tr>        <tr>           <td class=dottedH height="1"><img src="https://www.franchjg.com/publish/fr/SPO/images/spacer.gif"  width="8" height="1"></td>        </tr>        <tr>           <td class=dottedH height="1"><img src="https://www.franchjg.com/publish/fr/SPO/images/spacer.gif"  width="8" height="1"></td>        </tr>      </table></td>    <td width="4" class=dottedV><img src="https://www.franchjg.com/publish/fr/SPO/images/spacer.gif"  width="1" height="1"></td>     </tr></table><link rel="stylesheet" type="text/css" href="./css/style_pltg.css" /><link rel="stylesheet" type="text/css" href="./css/style_tl.css" />		            </td>	  	          <td class="layoutTop">	    	          	      	      </td>	        	    <td class="layoutRight" rowspan="3">	          	    	            	</td>	          	</tr>	          	<tr>		            <td class="layoutBody">              		               					      		  		                     	 					              				  <div class="container2 rtTwoModifiedBound">		                                                     <table class="tableProcessIndicator" id="fdct_tableProcessIndicatorId" cellspacing="0" cellpadding="0" width="100%">  <tr>    <td class="ImgPlane">&nbsp;</td>    <td align="right">                    <table class="tablePI" id="fdct_tablePIId" cellspacing="0" cellpadding="0" border="0">          <tr>            <td rowspan="2" style="font-size:100%; padding-right:8px; vertical-align:top;" class="textBold">Ètapes :</td>            <td class="tablePI">                                                                chercher                                                        </td>                          <td class="bgrd">vols</td>                        <td class="bgrd">rÈvision</td>                                                                  <td class="bgrd">voyageurs</td>                                <td class="bgrd">achat</td>                                <td class="bgrd">rÈservation</td>                                                                  </tr>          <tr style="text-align:center;">                                                                                                                                                                                                            <td class="imgPIline2"><span class='imgPI1c'>&nbsp;</span></td>                                                                                                                                                            <td><span class='imgPI2b'>&nbsp;</span></td>                                                                                                                            <td><span class='imgPI3b'>&nbsp;</span></td>                                                                                                                            <td><span class='imgPI4b'>&nbsp;</span></td>                                                                                                                            <td><span class='imgPI5b'>&nbsp;</span></td>                                                                                                                            <td><span class='imgPI6b'>&nbsp;</span></td>                                                                  </tr>        </table>          </td>  </tr></table>                      	    <table cellpadding="0" cellspacing="0" width="100%" class="tableHeader">	      <tr>	        <td>           sÈlectionnez vos vols	        </td>	      </tr>      </table>            <script language="javascript" type="text/javascript">  // init messages  WDSMessage.setMessage("WDSError.HeaderMessage", "Remarque :");  WDSMessage.setMessage("WDSError.Title.E", "Les erreurs suivantes se sont produites");  WDSMessage.setMessage("WDSError.Title.W", "Les avertissements suivants se sont produits");  WDSMessage.setMessage("WDSError.Title.I", "Les avertissement suivants se sont produits");  WDSMessage.setMessage("WDSError.Title.F", "Les erreurs fatales suivantes se sont produites");     //init local error message list          function LocalErrorInit () {                        WDSMessage.setMessage(10000,"Votre date / heure de retour est identique ou antÈrieure ‡ votre date / heure de dÈpart. Veuillez modifier les dates / heures et essayer de nouveau. (10000)");                        WDSMessage.setMessage(5118,"Le nombre maximum de passagers pour une demande de disponibilitÈ est {0}. Veuillez modifier votre demande et essayer de nouveau. (5118)");                        WDSMessage.setMessage(5121,"Un seul bÈbÈ est autorisÈ par voyageur adulte. (5121)");                        WDSMessage.setMessage(5122,"Les enfants ne sont pas autorisÈs ‡ voyager seuls, ils doivent Ítre accompagnÈs d&#039;un adulte. (5122)");                        WDSMessage.setMessage(5123,"Veuillez nous indiquer au moins un voyageur. (5123)");                        WDSMessage.setMessage(5124,"Les bÈbÈs ne sont pas autorisÈs ‡ voyager seuls, ils doivent Ítre accompagnÈs d&#039;un adulte. (5124)");                        WDSMessage.setMessage(5125,"Vous ne devez pas sÈlectionner plus de 6 types de passagers. Veuillez modifier votre demande et essayer de nouveau. (5125)");                        WDSMessage.setMessage(5126,"Votre sÈlection actuelle de voyageurs est incorrecte. Les bÈbÈs et les enfants ne sont autorisÈs ‡ voyager qu&#039;avec des voyageurs adultes. (5126)");                        WDSMessage.setMessage(7126,"Nous ne sommes pas en mesure de trouver des recommandations pour la date / l&#039;horaire indiquÈs. Cependant, des vols sont disponibles ‡ des dates proches. (7126)");          } </script><div id="WDSError" style="display:none" >    <table cellspacing="0" cellpadding="0" class="tableError">  <tr>    <td class="textBold" valign="top"><div class="ImgError">&nbsp;</div></td>    <td class="textNormal" width="100%"><div id="WDSErrorContainer" class=""/></td>  </tr>  </table>  </div>         	    		  		  		      <!-- includeMPModifySearch=--><!-- templateName=fdct--><!-- searchRecapBean.commercialFareFamilies=[com.amadeus.ocg.ui.planitgonext.common.beans.CommercialFareFamily@3d0ee7[code=WWCFF,name=web]]--><!-- searchRecapBean.cabin=-->	<div class="divRecap">	  <table cellspacing="0" cellpadding="0" class="tableRecapWide"> 	    	            	      <tr>	        <td class="textBold nowrap">	                                                                                                                                                                                          	          franchjg ‡ Alger   	        </td>	        <td>	          vendredi 1 avril 2011	          <!-- In the case of complex calendar display, flexibility is not displayed -->	          		          		             &nbsp;&nbsp;		            +/- 4 jours		          		        	        </td>	      </tr>	           	      <tr>	        <td class="textBold nowrap">	                                                                                                                                                                                          	          Alger ‡ franchjg   	        </td>	        <td>	          jeudi 7 avril 2011	          <!-- In the case of complex calendar display, flexibility is not displayed -->	          		          		             &nbsp;&nbsp;		            +/- 4 jours		          		        	        </td>	      </tr>	    	  </table>	 </div>	 <div class="divRecap">   	   <table cellspacing="0" cellpadding="0" class="tableRecapWide">	      <tr>	        <td class="textBold nowrap">Voyageurs :</td>	        <td>        	          	          	          	            0	          	        </td>	      </tr>	      <tr>  	        <td class="textBold nowrap">	          	                                      	            Type de tarif :	          	        </td>	                    	          	          	            	          	          	            	            	            	          <td>	            web	          </td>	                  	         	        	                                        	    </tr>	  </table>	</div>          		  		        <div class="clear lineSeparator"></div>                      <!-- dynamic calendar  -->           										    <div class="sectionHolder" id="oneway_table">				                         	  <div class="divLegend2">     <ul>    <li					>				<div><span><strong>LÈgende :</strong></span></div>				</li>  				<li					>				<div><span><span class="lowestPrice">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>Tarif le moins ÈlevÈ </span></div>				</li>    				<li>					<div><span><span class="currencyIcon">TND</span> = Dinar (franchjgie)</span></div>				</li>		</ul>     <div class="clear"></div>		</div>		      <p class="fdct_inst">        SÈlectionnez vos dates de voyage en fonction des prix les moins ÈlevÈs affichÈs ci-dessous. Les tarifs peuvent varier en fonction de sÈlections. Ces tarifs sont pour un passager  et incluent les taxes et les frais internet.      </p>               	   			 		                                     <p class="fdct_city" id="fdct_city_outbound">                              franchjg - Alger        </p>                        						  			 			 				<div class="fdct_container" id="fdct_container1">			 		                <table cellspacing="1" class="tableFDCT" id="tableFDCT_tb1">                <caption>                mars/avril 2011                </caption>                <tbody>                <tr>                                    <th> Lundi</th>             	                    <th> Mardi</th>             	                    <th> Mercredi</th>             	                    <th> Jeudi</th>             	                    <th> Vendredi</th>             	                    <th> Samedi</th>             	                    <th>Dimanche</th>             	               	</tr> 				                <tr class="row1">               	  											                <td id="td_0_20110328" class="fdct_bgrd" onmouseover="className='fdct_over';" onmouseout="javascript:FDCT.cellOut(this);">	                  <span id="input_0_20110328"><input id="0_20110328" name="tb1" type="radio" value="" onclick="javascript:FDCT.changeSelection(this);" /></input></span>28 mars<br />					  <span id="from_0_20110328" class="fdct_textSmall">‡ partir de</span> <span id="discount_0_20110328" class="strikethrough"></span> <span id="price_0_20110328" class="fdct_price"></span>	                  	                </td>									  											                <td id="td_0_20110329" class="fdct_bgrd" onmouseover="className='fdct_over';" onmouseout="javascript:FDCT.cellOut(this);">	                  <span id="input_0_20110329"><input id="0_20110329" name="tb1" type="radio" value="" onclick="javascript:FDCT.changeSelection(this);" /></input></span>29 mars<br />					  <span id="from_0_20110329" class="fdct_textSmall">‡ partir de</span> <span id="discount_0_20110329" class="strikethrough"></span> <span id="price_0_20110329" class="fdct_price"></span>	                  	                </td>									  											                <td id="td_0_20110330" class="fdct_bgrd" onmouseover="className='fdct_over';" onmouseout="javascript:FDCT.cellOut(this);">	                  <span id="input_0_20110330"><input id="0_20110330" name="tb1" type="radio" value="" onclick="javascript:FDCT.changeSelection(this);" /></input></span>30 mars<br />					  <span id="from_0_20110330" class="fdct_textSmall">‡ partir de</span> <span id="discount_0_20110330" class="strikethrough"></span> <span id="price_0_20110330" class="fdct_price"></span>	                  	                </td>									  											                <td id="td_0_20110331" class="fdct_bgrd" onmouseover="className='fdct_over';" onmouseout="javascript:FDCT.cellOut(this);">	                  <span id="input_0_20110331"><input id="0_20110331" name="tb1" type="radio" value="" onclick="javascript:FDCT.changeSelection(this);" /></input></span>31 mars<br />					  <span id="from_0_20110331" class="fdct_textSmall">‡ partir de</span> <span id="discount_0_20110331" class="strikethrough"></span> <span id="price_0_20110331" class="fdct_price"></span>	                  	                </td>									  											                <td id="td_0_20110401" class="fdct_bgrd" onmouseover="className='fdct_over';" onmouseout="javascript:FDCT.cellOut(this);">	                  <span id="input_0_20110401"><input id="0_20110401" name="tb1" type="radio" value="" onclick="javascript:FDCT.changeSelection(this);" /></input></span>1 avril<br />					  <span id="from_0_20110401" class="fdct_textSmall">‡ partir de</span> <span id="discount_0_20110401" class="strikethrough"></span> <span id="price_0_20110401" class="fdct_price"></span>	                  	                </td>									  											                <td id="td_0_20110402" class="fdct_bgrd" onmouseover="className='fdct_over';" onmouseout="javascript:FDCT.cellOut(this);">	                  <span id="input_0_20110402"><input id="0_20110402" name="tb1" type="radio" value="" onclick="javascript:FDCT.changeSelection(this);" /></input></span>2 avril<br />					  <span id="from_0_20110402" class="fdct_textSmall">‡ partir de</span> <span id="discount_0_20110402" class="strikethrough"></span> <span id="price_0_20110402" class="fdct_price"></span>	                  	                </td>									  											                <td id="td_0_20110403" class="fdct_bgrd" onmouseover="className='fdct_over';" onmouseout="javascript:FDCT.cellOut(this);">	                  <span id="input_0_20110403"><input id="0_20110403" name="tb1" type="radio" value="" onclick="javascript:FDCT.changeSelection(this);" /></input></span>3 avril<br />					  <span id="from_0_20110403" class="fdct_textSmall">‡ partir de</span> <span id="discount_0_20110403" class="strikethrough"></span> <span id="price_0_20110403" class="fdct_price"></span>	                  	                </td>									  				</tr>				                <tr class="row2">               	  											                <td id="td_0_20110404" class="fdct_bgrd" onmouseover="className='fdct_over';" onmouseout="javascript:FDCT.cellOut(this);">	                  <span id="input_0_20110404"><input id="0_20110404" name="tb1" type="radio" value="" onclick="javascript:FDCT.changeSelection(this);" /></input></span>4 avril<br />					  <span id="from_0_20110404" class="fdct_textSmall">‡ partir de</span> <span id="discount_0_20110404" class="strikethrough"></span> <span id="price_0_20110404" class="fdct_price"></span>	                  	                </td>									  											                <td id="td_0_20110405" class="fdct_bgrd" onmouseover="className='fdct_over';" onmouseout="javascript:FDCT.cellOut(this);">	                  <span id="input_0_20110405"><input id="0_20110405" name="tb1" type="radio" value="" onclick="javascript:FDCT.changeSelection(this);" /></input></span>5 avril<br />					  <span id="from_0_20110405" class="fdct_textSmall">‡ partir de</span> <span id="discount_0_20110405" class="strikethrough"></span> <span id="price_0_20110405" class="fdct_price"></span>	                  	                </td>									  										<td>&nbsp;</td>														  										<td>&nbsp;</td>														  										<td>&nbsp;</td>														  										<td>&nbsp;</td>														  										<td>&nbsp;</td>														  				</tr>								</table> 			</div> 			            <div class="clear"></div>			                <p class="fdct_city" id="fdct_city_return">                              Alger - franchjg        </p>                        						  			 			 				<div class="fdct_container" id="fdct_container2">			 		                <table cellspacing="1" class="tableFDCT" id="tableFDCT_tb2">                <caption>                mars/avril 2011                </caption>                <tbody>                <tr>                                    <th> Lundi</th>             	                    <th> Mardi</th>             	                    <th> Mercredi</th>             	                    <th> Jeudi</th>             	                    <th> Vendredi</th>             	                    <th> Samedi</th>             	                    <th>Dimanche</th>             	               	</tr> 				                <tr class="row1">               	  										<td>&nbsp;</td>														  										<td>&nbsp;</td>														  										<td>&nbsp;</td>														  										<td>&nbsp;</td>														  										<td>&nbsp;</td>														  										<td>&nbsp;</td>														  											                <td id="td_1_20110403" class="fdct_bgrd" onmouseover="className='fdct_over';" onmouseout="javascript:FDCT.cellOut(this);">	                  <span id="input_1_20110403"><input id="1_20110403" name="tb2" type="radio" value="" onclick="javascript:FDCT.changeSelection(this);" /></input></span>3 avril<br />					  <span id="from_1_20110403" class="fdct_textSmall">‡ partir de</span> <span id="discount_1_20110403" class="strikethrough"></span> <span id="price_1_20110403" class="fdct_price"></span>	                  	                </td>									  				</tr>				                <tr class="row2">               	  											                <td id="td_1_20110404" class="fdct_bgrd" onmouseover="className='fdct_over';" onmouseout="javascript:FDCT.cellOut(this);">	                  <span id="input_1_20110404"><input id="1_20110404" name="tb2" type="radio" value="" onclick="javascript:FDCT.changeSelection(this);" /></input></span>4 avril<br />					  <span id="from_1_20110404" class="fdct_textSmall">‡ partir de</span> <span id="discount_1_20110404" class="strikethrough"></span> <span id="price_1_20110404" class="fdct_price"></span>	                  	                </td>									  											                <td id="td_1_20110405" class="fdct_bgrd" onmouseover="className='fdct_over';" onmouseout="javascript:FDCT.cellOut(this);">	                  <span id="input_1_20110405"><input id="1_20110405" name="tb2" type="radio" value="" onclick="javascript:FDCT.changeSelection(this);" /></input></span>5 avril<br />					  <span id="from_1_20110405" class="fdct_textSmall">‡ partir de</span> <span id="discount_1_20110405" class="strikethrough"></span> <span id="price_1_20110405" class="fdct_price"></span>	                  	                </td>									  											                <td id="td_1_20110406" class="fdct_bgrd" onmouseover="className='fdct_over';" onmouseout="javascript:FDCT.cellOut(this);">	                  <span id="input_1_20110406"><input id="1_20110406" name="tb2" type="radio" value="" onclick="javascript:FDCT.changeSelection(this);" /></input></span>6 avril<br />					  <span id="from_1_20110406" class="fdct_textSmall">‡ partir de</span> <span id="discount_1_20110406" class="strikethrough"></span> <span id="price_1_20110406" class="fdct_price"></span>	                  	                </td>									  											                <td id="td_1_20110407" class="fdct_bgrd" onmouseover="className='fdct_over';" onmouseout="javascript:FDCT.cellOut(this);">	                  <span id="input_1_20110407"><input id="1_20110407" name="tb2" type="radio" value="" onclick="javascript:FDCT.changeSelection(this);" /></input></span>7 avril<br />					  <span id="from_1_20110407" class="fdct_textSmall">‡ partir de</span> <span id="discount_1_20110407" class="strikethrough"></span> <span id="price_1_20110407" class="fdct_price"></span>	                  	                </td>									  											                <td id="td_1_20110408" class="fdct_bgrd" onmouseover="className='fdct_over';" onmouseout="javascript:FDCT.cellOut(this);">	                  <span id="input_1_20110408"><input id="1_20110408" name="tb2" type="radio" value="" onclick="javascript:FDCT.changeSelection(this);" /></input></span>8 avril<br />					  <span id="from_1_20110408" class="fdct_textSmall">‡ partir de</span> <span id="discount_1_20110408" class="strikethrough"></span> <span id="price_1_20110408" class="fdct_price"></span>	                  	                </td>									  											                <td id="td_1_20110409" class="fdct_bgrd" onmouseover="className='fdct_over';" onmouseout="javascript:FDCT.cellOut(this);">	                  <span id="input_1_20110409"><input id="1_20110409" name="tb2" type="radio" value="" onclick="javascript:FDCT.changeSelection(this);" /></input></span>9 avril<br />					  <span id="from_1_20110409" class="fdct_textSmall">‡ partir de</span> <span id="discount_1_20110409" class="strikethrough"></span> <span id="price_1_20110409" class="fdct_price"></span>	                  	                </td>									  											                <td id="td_1_20110410" class="fdct_bgrd" onmouseover="className='fdct_over';" onmouseout="javascript:FDCT.cellOut(this);">	                  <span id="input_1_20110410"><input id="1_20110410" name="tb2" type="radio" value="" onclick="javascript:FDCT.changeSelection(this);" /></input></span>10 avril<br />					  <span id="from_1_20110410" class="fdct_textSmall">‡ partir de</span> <span id="discount_1_20110410" class="strikethrough"></span> <span id="price_1_20110410" class="fdct_price"></span>	                  	                </td>									  				</tr>				                <tr class="row3">               	  											                <td id="td_1_20110411" class="fdct_bgrd" onmouseover="className='fdct_over';" onmouseout="javascript:FDCT.cellOut(this);">	                  <span id="input_1_20110411"><input id="1_20110411" name="tb2" type="radio" value="" onclick="javascript:FDCT.changeSelection(this);" /></input></span>11 avril<br />					  <span id="from_1_20110411" class="fdct_textSmall">‡ partir de</span> <span id="discount_1_20110411" class="strikethrough"></span> <span id="price_1_20110411" class="fdct_price"></span>	                  	                </td>									  										<td>&nbsp;</td>														  										<td>&nbsp;</td>														  										<td>&nbsp;</td>														  										<td>&nbsp;</td>														  										<td>&nbsp;</td>														  										<td>&nbsp;</td>														  				</tr>								</table> 			</div> 			            <div class="clear"></div>			            </div>			<!-- pricing -->			<!-- if keep the fare is activated and mode round trip or open jaw and only one bound changed-->								  			<div class="sectionHolder" id="owd_pricing">	           	<div class="oneway_pricing_panel" id="priceRecapPanelId">	  <ul class="oneway_pricing_list">  	    	    <li class="opp1">	      <strong>	        Dates sÈlectionnÈes	      </strong>	    </li>	    	        	<li id="noSelection" class="opp2" style="display: none;"/>  	    	      <li id="selectedDate0" class="opp2">	        	        <span id="TP_time0"></span>	      </li>	    	      <li id="selectedDate1" class="opp2">	        	        <span id="TP_time1"></span>	      </li>	    	    	    <li id="priceRecap" class="opp3" />	    		    	<img style="display: none;" alt="" src="./img/warning.gif" id="priceImgWar"/>	        <strong id="newPrice"></strong><span>(Par passager taxes incluses)</span>	    </li>	    	  </ul>	    	</div>				<div class="clear"></div>                                                              	  <div class="divLegend2">     <ul>    <li					>				<div><span><strong>LÈgende :</strong></span></div>				</li>  				<li					>				<div><span><span class="lowestPrice">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>Tarif le moins ÈlevÈ </span></div>				</li>    				<li>					<div><span><span class="currencyIcon">TND</span> = Dinar (franchjgie)</span></div>				</li>		</ul>     <div class="clear"></div>		</div>					</div>					 		            <table cellpadding="0" cellspacing="0" width="100%" class="tableNavHeader">              <tr>                <td><a href='/plnext/franchjg/StartOver.action;jsessionid=d1z6NMvTMpxXrgBYPymsmvmt0kGpnZzZ4vlJbnTgtNDvYx0ntRyb!-282554971!363330647?SITE=BASXBASX&amp;LANGUAGE=FR' id="lnkBack"></a></td>              	<td align="right"><div class="buttonPage"> <a href="javascript:FDCT.submitForm();" id="btnSelect"> SÈlectionnez</a><span class="buttonEdge"><a onclick="javascript:FDCT.submitForm();return false;">&gt;</a></span> </div></td>              </tr>            </table>				  		</div>            <form name="form_select_fare" method="post" action="/plnext/franchjg/FlexPricerAvailabilityDispatcherPui.action;jsessionid=d1z6NMvTMpxXrgBYPymsmvmt0kGpnZzZ4vlJbnTgtNDvYx0ntRyb!-282554971!363330647">                                                                    <input type="hidden" name="dcd1" id="dcd1" value="9-12-2002" />                                                                               <input type="hidden" name="DATE_RANGE_VALUE_2" id="DATE_RANGE_VALUE_2" value="4" />                                                                               <input type="hidden" name="B_LOCATION_1" id="B_LOCATION_1" value="TUN" />                                                                               <input type="hidden" name="B_YEAR" id="B_YEAR" value="2011" />                                                                               <input type="hidden" name="DISPLAY_TYPE" id="DISPLAY_TYPE" value="1" />                                                                               <input type="hidden" name="OFFICE_ID" id="OFFICE_ID" value="TUNTU08BB" />                                                                               <input type="hidden" name="YTHPAX" id="YTHPAX" value="0" />                                                                               <input type="hidden" name="E_LOCATION_1" id="E_LOCATION_1" value="ALG" />                                                                               <input type="hidden" name="SITE" id="SITE" value="BASXBASX" />                                                                               <input type="hidden" name="PRICING_TYPE" id="PRICING_TYPE" value="O" />                                                                               <input type="hidden" name="ADTPAX" id="ADTPAX" value="1" />                                                                                                                                            <input type="hidden" name="DATE_RANGE_VALUE_1" id="DATE_RANGE_VALUE_1" value="4" />                                                                                                                                            <input type="hidden" name="B_ANY_TIME_1" id="B_ANY_TIME_1" value="TRUE" />                                                                               <input type="hidden" name="E_DAY" id="E_DAY" value="07" />                                                                               <input type="hidden" name="SEVEN_DAY_SEARCH" id="SEVEN_DAY_SEARCH" value="TRUE" />                                                                               <input type="hidden" name="B_TIME" id="B_TIME" value="24" />                                                                               <input type="hidden" name="DATE_RANGE_QUALIFIER_1" id="DATE_RANGE_QUALIFIER_1" value="C" />                                                                               <input type="hidden" name="TRIP_TYPE" id="TRIP_TYPE" value="R" />                                                                               <input type="hidden" name="COMMERCIAL_FARE_FAMILY_1" id="COMMERCIAL_FARE_FAMILY_1" value="WWCFF" />                                                                               <input type="hidden" name="B_DATE_2" id="B_DATE_2" value="201104070000" />                                                                                                                                                                                                         <input type="hidden" name="EXTERNAL_ID" id="EXTERNAL_ID" value="FLEX-IBE" />                                                                               <input type="hidden" name="B_DATE_1" id="B_DATE_1" value="201104010000" />                                                                               <input type="hidden" name="B_Month" id="B_Month" value="04" />                                                                               <input type="hidden" name="B_ANY_TIME_2" id="B_ANY_TIME_2" value="TRUE" />                                                                               <input type="hidden" name="REQUEST_INFO" id="REQUEST_INFO" value="{IP_ADDRESSES=[41.226.77.218], IS_SSL_REQUEST=false, REQUEST_URL=http://wftc2.e-travel.com:80/planitgo_nextV14.0/franchjg/Override.action, CLIENT_REFERRER=}" />                                                                               <input type="hidden" name="E_MONTH" id="E_MONTH" value="04" />                                                                               <input type="hidden" name="CHDPAX" id="CHDPAX" value="0" />                                                                               <input type="hidden" name="B_Day" id="B_Day" value="01" />                                                                               <input type="hidden" name="InfantPAX" id="InfantPAX" value="0" />                                                                               <input type="hidden" name="E_YEAR" id="E_YEAR" value="2011" />                                                                               <input type="hidden" name="LANGUAGE" id="LANGUAGE" value="FR" />                                                                               <input type="hidden" name="dcd2" id="dcd2" value="9-12-2002" />                                                                                                                                                                                                         <input type="hidden" name="E_TIME" id="E_TIME" value="24" />                                                                               <input type="hidden" name="DATE_RANGE_QUALIFIER_2" id="DATE_RANGE_QUALIFIER_2" value="C" />                             <input type="hidden" name="PLTG_IS_UPSELL" value="true" />            <input type="hidden" name="PAGE_TICKET" value="0" />    </form>                   <script language="javascript" type="text/javascript"><!--   WDSError.init();  WDSError.setTitle(WDSMessage.getMessage("WDSError.Title.E"));          <!--test-->    <!--end test-->  	      	if (WDSError.hasError()) {    	WDSError.show();    }      --></script>                    	  	          </td>	    	      </tr>	      	    <tr>	        	    <td class="layoutBottom">	          	    	            	</td>		          </tr>		          </table>  	  	    </div>	    	  	      		      			    	    	    	          									      			         	      	          </body>  </html>

Open in new window

0
 
LVL 86

Expert Comment

by:CEHJ
ID: 35218466
This is the result of running my code on that, captured to file
json.log.txt
0
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 35218850
Why don't you just execute the javascript?
http://httpunit.sourceforge.net/doc/faq.html#javascript
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 47

Expert Comment

by:for_yan
ID: 35218886

How could it take long time? Do you have such a huge page?
It was probably doing something else
What uis the size of your page?


result = result.substring(result.indexof("generatedJSon");
result = result.substring(0,result.indexOf(";");
result = result.substring(result.indexOf("{")+1, result.lastIndexOf("}")+1)

0
 
LVL 86

Expert Comment

by:CEHJ
ID: 35218928
If you're going to use substringing, you can optimise that by making only one call to substring, preceding that with the 2-arg indexOf

http://download.oracle.com/javase/6/docs/api/java/lang/String.html#indexOf(java.lang.String,%20int)
0
 
LVL 47

Expert Comment

by:for_yan
ID: 35218986
But unless your string has megabytes of data (cannot be on the web page)
alll that searches are very quick - it is retrievakl of the page
that takes time - no matter how you do it it will be slow - it is not substring which is slow
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 35219641
Yes, that's true. The bottleneck is likely to be network-related
0
 

Author Comment

by:keviin55
ID: 35220093
ah it's possible to excute javascript !!! ??? :)
first thankx to all for responses ..

i test this

 
WebConversation convo = new WebConversation();
        WebResponse resp = convo.getResponse("http://wftc2.e-travel.com/plnext/tunisair/Override.action?B_LOCATION_1=TUN&E_LOCATION_1=ALG&TRIP_TYPE=R&B_Day=08&B_Month=04&B_YEAR=2011&B_TIME=24&dcd1=9-12-2002&E_DAY=17&E_MONTH=04&E_YEAR=2011&E_TIME=24&dcd2=9-12-2002&EMBEDDED_TRANSACTION=FlexPricerAvailability&LANGUAGE=FR&SITE=BASXBASX&TRIP_FLOW=&B_ANY_TIME_1=TRUE&B_DATE_1=201104080000&B_DATE_2=201104170000&B_ANY_TIME_2=TRUE&CORPORATE_CODE=&CORPORATE_TYPE=&AIRLINE_1_1=&AIRLINE_2_1=&EXTERNAL_ID=FLEX-IBE&SESSION_ID=&SO_GL=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22iso-8859-1%22%3F%3E%3CSO_GL%3E%3CGLOBAL_LIST+mode%3D%22complete%22%3E%3CNAME%3ESO_SINGLE_MULTIPLE_COMMAND_BUILDER%3C%2FNAME%3E%3CLIST_ELEMENT%3E%3CCODE%3E1%3C%2FCODE%3E%3CLIST_VALUE%3E%3C![CDATA[FT+*CC000129]]%3E%3C%2FLIST_VALUE%3E%3CLIST_VALUE%3ES%3C%2FLIST_VALUE%3E%3C%2FLIST_ELEMENT%3E%3CLIST_ELEMENT%3E%3CCODE%3E1%3C%2FCODE%3E%3CLIST_VALUE%3E%3C![CDATA[RM+MAIL+ES+%3CUSERMAIL_COMPLETE%3E]]%3E%3C%2FLIST_VALUE%3E%3CLIST_VALUE%3ES%3C%2FLIST_VALUE%3E%3C%2FLIST_ELEMENT%3E%3C%2FGLOBAL_LIST%3E%3C%2FSO_GL%3E&SEARCH_BY=&DESTINATION_PAGE=http%3A%2F%2Fwftc2.e-travel.com%2Fplnext%2Ftunisair%2FOverride.action&ADTPAX=1&YTHPAX=0&CHDPAX=0&InfantPAX=0&PRICING_TYPE=O&DISPLAY_TYPE=1&DATE_RANGE_VALUE_1=4&DATE_RANGE_VALUE_2=4&COMMERCIAL_FARE_FAMILY_1=WWCFF&DATE_RANGE_QUALIFIER_1=C&DATE_RANGE_QUALIFIER_2=C&SO_SITE_FD_DISPLAY_MODE=0&SO_SITE_ALLOW_SPECIAL_MEAL=FALSE&SO_SITE_AVAIL_SERVICE_FEE=TRUE&SO_SITE_CURRENCY_FORMAT_JAVA=0.00&DIRECT_NON_STOP=TRUE&SO_SITE_TRANSFER_LINK=http%3A%2F%2Fwww.tunisair.com%2Fsite%2Fpublish%2Fmodule%2Fframe_PaySpsPoste.asp&SO_SITE_OFFICE_ID=TUNTU08BB&SO_SITE_MOP_EXT=FALSE&SO_SITE_MOP_CALL_ME=TRUE&SO_SITE_DATA_TRANSFER=TRUE&SO_SITE_BOOL_ISSUE_ETKT=FALSE&SO_SITE_USER_CURRENCY_CODE=TND&TRAVELLER_TYPE_1=ADT&kjh=Envoyer");
        System.out.println( resp );

Open in new window


but i have soo much errors :/

i want to take dates and prices of travel . Shoul i excute javascript and take it or take it from javascript variable ( the JSON variable ) .
0
 
LVL 92

Expert Comment

by:objects
ID: 35220102
be simpler and more reliable to execute the javascript
0
 

Author Comment

by:keviin55
ID: 35221749
ok thank you all
0
 

Author Closing Comment

by:keviin55
ID: 35221754
it's what i need but i trie to make it work
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 35221846
>>it's what i need

What is what you need?
0
 

Author Comment

by:keviin55
ID: 35222694
What is what you need?

objects:
Why don't you just execute the javascript?
http://httpunit.sourceforge.net/doc/faq.html#javascript

get this page as string with javascript excutes

http://wftc2.e-travel.com/plnext/tunisair/Override.action?B_LOCATION_1=TUN&E_LOCATION_1=ALG&TRIP_TYPE=R&B_Day=08&B_Month=04&B_YEAR=2011&B_TIME=24&dcd1=9-12-2002&E_DAY=17&E_MONTH=04&E_YEAR=2011&E_TIME=24&dcd2=9-12-2002&EMBEDDED_TRANSACTION=FlexPricerAvailability&LANGUAGE=FR&SITE=BASXBASX&TRIP_FLOW=&B_ANY_TIME_1=TRUE&B_DATE_1=201104080000&B_DATE_2=201104170000&B_ANY_TIME_2=TRUE&CORPORATE_CODE=&CORPORATE_TYPE=&AIRLINE_1_1=&AIRLINE_2_1=&EXTERNAL_ID=FLEX-IBE&SESSION_ID=&SO_GL=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22iso-8859-1%22%3F%3E%3CSO_GL%3E%3CGLOBAL_LIST+mode%3D%22complete%22%3E%3CNAME%3ESO_SINGLE_MULTIPLE_COMMAND_BUILDER%3C%2FNAME%3E%3CLIST_ELEMENT%3E%3CCODE%3E1%3C%2FCODE%3E%3CLIST_VALUE%3E%3C![CDATA[FT+*CC000129]]%3E%3C%2FLIST_VALUE%3E%3CLIST_VALUE%3ES%3C%2FLIST_VALUE%3E%3C%2FLIST_ELEMENT%3E%3CLIST_ELEMENT%3E%3CCODE%3E1%3C%2FCODE%3E%3CLIST_VALUE%3E%3C![CDATA[RM+MAIL+ES+%3CUSERMAIL_COMPLETE%3E]]%3E%3C%2FLIST_VALUE%3E%3CLIST_VALUE%3ES%3C%2FLIST_VALUE%3E%3C%2FLIST_ELEMENT%3E%3C%2FGLOBAL_LIST%3E%3C%2FSO_GL%3E&SEARCH_BY=&DESTINATION_PAGE=http%3A%2F%2Fwftc2.e-travel.com%2Fplnext%2Ftunisair%2FOverride.action&ADTPAX=1&YTHPAX=0&CHDPAX=0&InfantPAX=0&PRICING_TYPE=O&DISPLAY_TYPE=1&DATE_RANGE_VALUE_1=4&DATE_RANGE_VALUE_2=4&COMMERCIAL_FARE_FAMILY_1=WWCFF&DATE_RANGE_QUALIFIER_1=C&DATE_RANGE_QUALIFIER_2=C&SO_SITE_FD_DISPLAY_MODE=0&SO_SITE_ALLOW_SPECIAL_MEAL=FALSE&SO_SITE_AVAIL_SERVICE_FEE=TRUE&SO_SITE_CURRENCY_FORMAT_JAVA=0.00&DIRECT_NON_STOP=TRUE&SO_SITE_TRANSFER_LINK=http%3A%2F%2Fwww.tunisair.com%2Fsite%2Fpublish%2Fmodule%2Fframe_PaySpsPoste.asp&SO_SITE_OFFICE_ID=TUNTU08BB&SO_SITE_MOP_EXT=FALSE&SO_SITE_MOP_CALL_ME=TRUE&SO_SITE_DATA_TRANSFER=TRUE&SO_SITE_BOOL_ISSUE_ETKT=FALSE&SO_SITE_USER_CURRENCY_CODE=TND&TRAVELLER_TYPE_1=ADT&kjh=Envoyer

Open in new window

0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
copyEndy  challenge 15 55
Receive file in Servlet 1 36
allStar challenge 1 41
Unexpected HttpURLConnection connection behavior 2 49
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now