function LoadCart(strTitle){
    dojo.xhrGet({
            url:"/ajaxcalls/getcartitems",
            handleAs:"xml",
            timeout:5000,
            load: function(response,ioArgs){                
                cartitems = response.getElementsByTagName("Item");
                types = response.getElementsByTagName("Type");
                bookingids = response.getElementsByTagName("BookingId");
                agentids = response.getElementsByTagName("AgentId");
                prices = response.getElementsByTagName("Price");
                rows = "";
                totalprice = 0;
                var i = 0
                var totalitems = cartitems.length;
		(totalitems > 0)?strTitle += " <br/><span style='font-weight:bold;line-height:25px;'>click item for details</span>": strTitle = strTitle;
                rows += '<div style="padding-bottom:15px;">' + strTitle +'</div>';
                var onclickaction = "getInfo";
                for(i=0 ; i < totalitems ; i++){                    
                    rows += '<div style="float:left; width:50px;">';
                    switch(types[i].childNodes[0].nodeValue){
                        case "hotel"    :rows += '   <img src="../images/iconHotel.png" height="40" style="margin-top:6px;" alt="Hotel" title="Hotel" />';onclickaction = "getHotelInfo";break;
                        case "villa"    :rows += '   <img src="../images/iconVilla.png" height="40" style="margin-top:6px;" alt="Hotel" title="Villa" />';onclickaction = "getVillaInfo";break;
                        case "cruise"   :rows += '   <img src="../images/iconCruise.png" height="40" style="margin-top:6px;" alt="Hotel" title="Cruise" />';onclickaction = "getCruiseInfo";break;
                        case "transfer" :rows += '   <img src="../images/iconTransfer.png" height="40" style="margin-top:6px;" alt="Hotel" title="Transfer" />';onclickaction = "getInfo";break;
                        case "theatre"  :rows += '   <img src="../images/iconTheatre.png" height="40" style="margin-top:6px;" alt="Hotel" title="Theatre" />';onclickaction = "getTheatreInfo";break;
                        case "carhire"  :rows += '   <img src="../images/iconCarHire.png" height="40" style="margin-top:6px;" alt="Hotel" title="Carhire" />';onclickaction = "getCarHireInfo";break;
                    }                    
                    rows += '</div>';
                    rows += '<div style="float:left; width:150px; margin-top:10px;">';
                    rows += '   <strong>';
                    rows += '       <a href="#" onclick="' + onclickaction + '(\'' + bookingids[i].childNodes[0].nodeValue + '\');" style="text-transform:capitalize;">' + types[i].childNodes[0].nodeValue +'</a>';
                    rows += '   </strong>';
                    rows += '</div>';
                    rows += '<div style="float:left; width:090px; text-align:right;">';
                    rows += '   <img src="../images/iconDrop10.png" height="10" onclick="removeCartItem(\'' + bookingids[i].childNodes[0].nodeValue + ' \');" style="margin:13px 0 13px 0; cursor:pointer;" alt="Drop Item" title="Drop Item" />';
                    rows += '   <br />';
                    rows += '   <strong>&pound;' + prices[i].childNodes[0].nodeValue +'</strong>';
                    rows += '</div>';
                    rows += '<div style="clear:both; border-bottom:1px solid #5BACD9;"></div>';
                    totalprice = (parseFloat(totalprice) + parseFloat(prices[i].childNodes[0].nodeValue)).toFixed(2);
                }
                rows += '<div style="float:left; width:200px; text-align:right; padding-top:10px; font-weight:bold;">Total</div>';
                rows += '<div style="float:left; width:090px; text-align:right; padding-top:10px; font-weight:bold;">&pound; ' + totalprice + '</div>';
                rows += '<div style="clear:both; padding-top:10px;"><a href="/customers/"><img src="../images/buttonCheckout.png" style="cursor:pointer;"></a></div>';
                rows += '<div style="clear:both;"></div>';
                dojo.byId("shoppingbasket").innerHTML = rows;
            },
            error:function(response,ioArgs){
                dojo.byId("shoppingbasket").innerHTML = response;
            }
        });
}

function removeCartItem(id){
        dijit.byId("transferinfobox").show();
        dojo.byId("imgLoader").style.visibility = "visible";
        dojo.byId("infotext").innerHTML = "Loading..."
        dojo.xhrGet({
            url:"/ajaxcalls/removecartitem?id="+id,
            handleAs:"xml",
            timeout:5000,
            load: function(response,ioArgs){
                var result = response.getElementsByTagName("Result");
                if(result[0].childNodes[0].nodeValue){
                    dojo.byId("imgLoader").style.visibility = "hidden";
                    dijit.byId("transferinfobox").hide();
                    LoadCart("Item(s) removed!");
                }else{
                    dojo.byId("imgLoader").style.visibility = "hidden";
                    dojo.byId("infotext").innerHTML = result[0].childNodes[0].nodeValue;
                }
            },
            error: function(response, ioArgs) {
                dojo.byId("imgLoader").style.visibility = "hidden";
                dojo.byId("infotext").innerHTML = "HTTP status code: " + ioArgs.xhr.status;
                dojo.byId("infotext").innerHTML = "<br/>";
                dojo.byId("infotext").innerHTML = response;
            }
        });
    }

function getInfo(id){
        dijit.byId("transferinfobox").show();
        dojo.byId("imgLoader").style.visibility = "visible";
        dojo.byId("infotext").innerHTML = "Loading..."
        dojo.xhrGet( {
            url: "/ajaxcalls/gettransferdetails?refid="+id,
            handleAs: "xml",
            timeout: 5000, // Time in milliseconds
            load: function(response, ioArgs) {
                var transfer = response.getElementsByTagName("Transfer");
                var bookingdate = transfer[0].getElementsByTagName("BookingDate");
                var status = transfer[0].getElementsByTagName("Status");
                var price = transfer[0].getElementsByTagName("Price");
                var vat = transfer[0].getElementsByTagName("Vat");
                var currency = transfer[0].getElementsByTagName("Currency");
                var oborigin = transfer[0].getElementsByTagName("OutBoundOrigin");
                var obdest = transfer[0].getElementsByTagName("OutBoundDestination");
                var objrnytime = transfer[0].getElementsByTagName("OutBoundJourneyTime");
                var flightarrival = transfer[0].getElementsByTagName("FlightArrivalDateTime");
                var iborigin = transfer[0].getElementsByTagName("InBoundOrigin");
                var ibdest = transfer[0].getElementsByTagName("InBoundDestination");
                var flightdept = transfer[0].getElementsByTagName("FlightDepartureDateTime");
                var notes = transfer[0].getElementsByTagName("Notes");

                dojo.byId("infotext").innerHTML = "<dl style='width:100%;'>";
                dojo.byId("infotext").innerHTML += "<dt class='left'  style='width:160px;'>Bookinng Date</dt>";
                dojo.byId("infotext").innerHTML += "<dd class='bold'>" + bookingdate[0].childNodes[0].nodeValue + "</dd>";

                dojo.byId("infotext").innerHTML += "<dt class='left' style='width:160px;'>Status</dt>";
                dojo.byId("infotext").innerHTML += "<dd class='bold'>" + status[0].childNodes[0].nodeValue + "</dd>";

                dojo.byId("infotext").innerHTML += "<dt class='left' style='width:160px;'>Price</dt>";
                dojo.byId("infotext").innerHTML += "<dd class='bold'>" + price[0].childNodes[0].nodeValue + "</dd>";

                dojo.byId("infotext").innerHTML += "<dt class='left' style='width:160px;'>Vat</dt>";
                dojo.byId("infotext").innerHTML += "<dd class='bold'>" + vat[0].childNodes[0].nodeValue + "</dd>";

                dojo.byId("infotext").innerHTML += "<dt class='left' style='width:160px;'>Currency</dt>";
                dojo.byId("infotext").innerHTML += "<dd class='bold'>" + currency[0].childNodes[0].nodeValue + "</dd>";

                dojo.byId("infotext").innerHTML += "<dt class='left' style='width:160px;'>Journey times</dt>";
                dojo.byId("infotext").innerHTML += "<dl class='bold'>" + objrnytime[0].childNodes[0].nodeValue + "</dl>";

                dojo.byId("infotext").innerHTML += "</dl>";

                dojo.byId("infotext").innerHTML += "<dl style='width:100%; border-top:1px solid #dedede; margin-bottom:10px;'>";
                dojo.byId("infotext").innerHTML += "<dt class='left' style='width:160px;'>Date/Time</dt>";
                dojo.byId("infotext").innerHTML += "<dd class='bold'>" + flightarrival[0].childNodes[0].nodeValue + "</dd>";

                dojo.byId("infotext").innerHTML += "<dt class='left' style='width:160px;'>From</dt>";
                dojo.byId("infotext").innerHTML += "<dd class='bold'>" + oborigin[0].childNodes[0].nodeValue + "</dd>";

                dojo.byId("infotext").innerHTML += "<dt class='left' style='width:160px;'>To</dt>";
                dojo.byId("infotext").innerHTML += "<dd class='bold'>" + obdest[0].childNodes[0].nodeValue + "</dd>";
                dojo.byId("infotext").innerHTML += "</dl>";

                dojo.byId("infotext").innerHTML += "<dl style='width:100%; border-top:1px solid #dedede; margin-bottom:10px;'>";
                dojo.byId("infotext").innerHTML += "<dt class='left' style='width:160px;'>Date/Time</dt>";
                dojo.byId("infotext").innerHTML += "<dd class='bold'>" + flightdept[0].childNodes[0].nodeValue + "</dd>";

                dojo.byId("infotext").innerHTML += "<dt class='left' style='width:160px;'>From</dt>";
                dojo.byId("infotext").innerHTML += "<dd class='bold'>" + iborigin[0].childNodes[0].nodeValue + "</dd>";

                dojo.byId("infotext").innerHTML += "<dt class='left' style='width:160px;'>To</dt>";
                dojo.byId("infotext").innerHTML += "<dd class='bold'>" + ibdest[0].childNodes[0].nodeValue + "</dd>";
                dojo.byId("infotext").innerHTML += "</dl>";

                dojo.byId("infotext").innerHTML += "<dl style='width:100%; border-top:1px solid #dedede; margin-bottom:10px;'>";
                dojo.byId("infotext").innerHTML += "<dt class='left' style='width:160px;'>Notes</dt>";
                dojo.byId("infotext").innerHTML += "<dd class='bold'>" + notes[0].childNodes[0].nodeValue + "</dd>";
                dojo.byId("infotext").innerHTML += "</dl>";

                dojo.byId("imgLoader").style.visibility = "hidden";
            },
            error: function(response, ioArgs) {
              //alert("HTTP status code: ", ioArgs.xhr.status);
              //return response;
              dojo.byId("infotext").innerHTML = "Sorry! Unable to get info right now...";
            }
        });
    }

function getHotelInfo(id){
    dijit.byId("transferinfobox").show();
    dojo.byId("imgLoader").style.visibility = "visible";
    dojo.byId("infotext").innerHTML = "Loading...";
    dojo.byId("infotext").style.height = "180px";
    dojo.xhrGet({
        url:"/hotel/gethotelinfo/refid/"+id,
        handleAs:"xml",
        timeout:5000,
        load: function(response,ioArgs){
            var hotel	    = response.getElementsByTagName("Hotel");
            var bookingdate = hotel[0].getElementsByTagName("BookingDate");
            var name	    = hotel[0].getElementsByTagName("Name");
            var address	    = hotel[0].getElementsByTagName("Address");
            var roomamount  = hotel[0].getElementsByTagName("RoomAmount");
            var totalprice  = hotel[0].getElementsByTagName("TotalPrice");
            var resdate1    = hotel[0].getElementsByTagName("ReserveDate1");
            var resdate2    = hotel[0].getElementsByTagName("ReserveDate2");
	    var img	    = hotel[0].getElementsByTagName("Image");
	    var table = "<table style='width:100%;'>";
		table += "<tr>";
		table += "  <td style='width:110px;'>";
		table += "	<img src='" + img[0].childNodes[0].nodeValue + "' style='width:100px; height:100px;' alt='" + name[0].childNodes[0].nodeValue + "'>";
		table += "  </td>";
		table += "  <td>";
		table += "  <table style='width:100%;'>";
		table += "	<tr>";
		table += "	    <td>Hotel:  </td>";
		table += "	    <td class='bold'>" + name[0].childNodes[0].nodeValue + "</td>";
		table += "	</tr>";
		table += "	<tr>";
		table += "	    <td>Bookinng Date:  </td>";
		table += "	    <td class='bold'>" + bookingdate[0].childNodes[0].nodeValue + "</td>";
		table += "	</tr>";
		table += "	<tr>";
		table += "	    <td>Location:  </td>";
		table += "	    <td class='bold'>" + address[0].childNodes[0].nodeValue + "</td>";
		table += "	</tr>";
		table += "	<tr>";
		table += "	    <td>Rooms:  </td>";
		table += "	    <td class='bold'>" + roomamount[0].childNodes[0].nodeValue + "</td>";
		table += "	</tr>";
		table += "	<tr>";
		table += "	    <td>Total price:  </td>";
		table += "	    <td class='bold'>&pound;" + totalprice[0].childNodes[0].nodeValue + "</td>";
		table += "	</tr>";
		table += "	<tr>";
		table += "	    <td>Check In:  </td>";
		table += "	    <td class='bold'>" + resdate1[0].childNodes[0].nodeValue + "</td>";
		table += "	</tr>";
		table += "	<tr>";
		table += "	    <td>Check out:  </td>";
		table += "	    <td class='bold'>" + resdate2[0].childNodes[0].nodeValue + "</td>";
		table += "	</tr>";
		table += "  </table>";
		table += "  </td>";
		table += "</tr>";
		table += "</table>";
		
            dojo.byId("infotext").innerHTML = table;
            dojo.byId("imgLoader").style.visibility = "hidden";
        },
        error: function(response,ioArgs){
            //alert("HTTP status code: ", ioArgs.xhr.status);
	    alert("/hotel/gethotelinfo/refid/"+id);
            //dojo.byId("infotext").innerHTML = "Sorry! Unable to get info right now...";
        }
    });
}

function getCarHireInfo(id){
    dojo.byId("transferinfobox").style.height	= "230px";
    dojo.byId("transferinfobox").style.width	= "600px";
    dojo.byId("infotext").innerHTML = "";
    dijit.byId("transferinfobox").show();
    dojo.byId("imgLoader").style.visibility = "visible";
    dojo.xhrGet({
        url:"/carhire/getreservationinfo/refid/"+id,
        handleAs:"xml",
        timeout:5000,
        load:function(response,ioArgs){
            var pickofficename	= response.getElementsByTagName("pickOfficeName");
            var dropofficename	= response.getElementsByTagName("dropOfficeName");
            var pickdatetime	= response.getElementsByTagName("pickDateTime");
            var dropdatetime	= response.getElementsByTagName("dropDateTime");
            var carimage	= response.getElementsByTagName("carImage");
	    var price		= response.getElementsByTagName("price");

	    var innerHTML	="  <table style='width:100%;border:none' >";
	    innerHTML += "		<tr>";
            innerHTML += "		    <td rowspan='5' style='width:215px;'>";
	    innerHTML += "			<img src='http:" + carimage[0].childNodes[0].nodeValue + "' alt='Car Image' style='width:200px;height:150px;' />";
	    innerHTML += "		    </td>";
            innerHTML += "		    <td style='width:160px;color:#5585AE;font-weight:bold'>Pickup location</td>";
            innerHTML += "		    <td>" + pickofficename[0].childNodes[0].nodeValue + "</td>";
	    innerHTML += "		</tr>";
	    innerHTML += "		<tr>";
            innerHTML += "		    <td style='width:160px;color:#5585AE;font-weight:bold'>Pickup date</td>";
            innerHTML += "		    <td>" + pickdatetime[0].childNodes[0].nodeValue + "</td>";
	    innerHTML += "		</tr>";
	    innerHTML += "		<tr>";
            innerHTML += "		    <td style='width:160px;color:#5585AE;font-weight:bold'>Drop off location</td>";
            innerHTML += "		    <td>" + dropofficename[0].childNodes[0].nodeValue + "</td>";
	    innerHTML += "		</tr>";
	    innerHTML += "		<tr>";
            innerHTML += "		    <td style='width:160px;color:#5585AE;font-weight:bold'>Drop off date</td>";
            innerHTML += "		    <td>" + dropdatetime[0].childNodes[0].nodeValue + "</td>";
	    innerHTML += "		</tr>";
	    innerHTML += "		<tr>";
            innerHTML += "		    <td style='width:160px;color:#5585AE;font-weight:bold'>Price </td>";
            innerHTML += "		    <td style='font-size:16px;'> &pound;" + price[0].childNodes[0].nodeValue + "</td>";
	    innerHTML += "		</tr>";
            innerHTML += "	    </table>";

            dojo.byId("imgLoader").style.visibility = "hidden";
	    dojo.byId("infotext").innerHTML = innerHTML;
        },
        error:function(response,ioArgs){

        }
    });
}

function getTheatreInfo(id){
    dijit.byId("transferinfobox").show();
    dojo.byId("imgLoader").style.visibility = "visible";
    dojo.byId("infotext").innerHTML = "Loading...";    
    dojo.xhrGet({
        url:"/ajaxcalls/gettheatreinfo?refid="+id,
        handleAs:"xml",
        timeout:5000,
        load: function(response,ioArgs){
            var theatre = response.getElementsByTagName("Item");
            var name = theatre[0].getElementsByTagName("ShowName");
            var showdatetime = theatre[0].getElementsByTagName("ShowDateTime");
            var price = theatre[0].getElementsByTagName("Price");
            var numtickets = theatre[0].getElementsByTagName("NumTickets");
            var image = theatre[0].getElementsByTagName("ShowImage");
            var venuename = theatre[0].getElementsByTagName("VenueName");
            var address = theatre[0].getElementsByTagName("Address");
            var innerHtml = "";
            innerHtml  = "<div style='width:200px; padding:0; margin:0 5px 0 0; float:left;'>";
            innerHtml += "    <img style='height:250px; width:200px;' src='" + image[0].childNodes[0].nodeValue + "' alt='" + name[0].childNodes[0].nodeValue + "' />";
            innerHtml += "</div>";
            innerHtml += "<div style='width:270px; padding:0; margin:0 0 0 5px; float:right'>";
            innerHtml += "<h1 class='ATGBlue' style='margin-bottom:15px;'>" + name[0].childNodes[0].nodeValue + "</h1>";
            innerHtml += "      <table style='width:100%;'>";                        
            innerHtml += "            <tr>";
            innerHtml += "                <td style='width:120px; color:#aaa;'>View Date</td>";
            innerHtml += "                <td>" + showdatetime[0].childNodes[0].nodeValue + "</td>";
            innerHtml += "            </tr>";
            innerHtml += "            <tr>";
            innerHtml += "                <td style='color:#aaa;'>Number of tickets</td>";
            innerHtml += "                <td>" + numtickets[0].childNodes[0].nodeValue + "</td>";
            innerHtml += "            </tr>";
            innerHtml += "            <tr>";
            innerHtml += "                <td style='color:#aaa;'>Venue</td>";
            innerHtml += "                <td>" + venuename[0].childNodes[0].nodeValue + "</td>";
            innerHtml += "            </tr>";
            innerHtml += "            <tr>";
            innerHtml += "                <td style='color:#aaa;'>Address</td>";
            innerHtml += "                <td>" + address[0].childNodes[0].nodeValue +"</td>";
            innerHtml += "            </tr>";
            innerHtml += "      </table>";
            innerHtml += "</div>";
            dojo.byId("infotext").innerHTML = innerHtml;
            dojo.byId("imgLoader").style.visibility = "hidden";
        },
        error: function(response,ioArgs){            
            //dojo.byId("infotext").innerHTML = "Sorry! Unable to get info right now...";
        }
    });
}

function getVillaInfo(id){   
    dijit.byId("transferinfobox").show();
    dojo.byId("imgLoader").style.visibility = "visible";
    dojo.byId("infotext").innerHTML = "Loading...";
    dojo.xhrGet({
        url:"/villa/getvillainfo/unitId/"+id,
        handleAs:"xml",
        timeout:5000,
        load: function(response,ioArgs){
            var villa = response.getElementsByTagName("Item");
            var bookingdate = villa[0].getElementsByTagName("BookingDate");
            var fromdate = villa[0].getElementsByTagName("FromDate");
            var todate = villa[0].getElementsByTagName("ToDate");
            var price = villa[0].getElementsByTagName("Price");
            var title = villa[0].getElementsByTagName("Title");
            var desc = villa[0].getElementsByTagName("Desc");
            var bedrooms = villa[0].getElementsByTagName("Bedrooms");
            var bathrooms = villa[0].getElementsByTagName("Bathrooms");
	    var img = villa[0].getElementsByTagName("Img");
	    var innerHTML = "";

            innerHTML = "<table style='border:none; width:100%;'>";
	    innerHTML += "    <tr>";
            innerHTML += "	<td rowspan='8' class='bold'>";
	    innerHTML += "	    <img src='../images/villas/villaThumbs/tn/" + img[0].childNodes[0].nodeValue + "' alt='Unit Image' />";
	    innerHTML += "	</td>";
	    innerHTML += "    </tr>";

	    innerHTML += "    <tr>";
            innerHTML += "	<td style='width:110px;'>Booking Date</td>";
            innerHTML += "	<td class='bold'>" + bookingdate[0].childNodes[0].nodeValue + "</td>";
	    innerHTML += "    </tr>";

	    innerHTML += "    <tr>";
            innerHTML += "	<td>From</td>";
            innerHTML += "	<td class='bold'>" + fromdate[0].childNodes[0].nodeValue + "</td>";
	    innerHTML += "    </tr>";

	    innerHTML += "    <tr>";
	    innerHTML += "	<td>To</td>";
	    innerHTML += "	<td class='bold'>" + todate[0].childNodes[0].nodeValue + "</td>";
	    innerHTML += "    </tr>";

	    innerHTML += "    <tr>";
            innerHTML += "	<td>Price</td>";
            innerHTML += "	<td class='bold'>" + price[0].childNodes[0].nodeValue + "</td>";
	    innerHTML += "    </tr>";

	    innerHTML += "    <tr>";
            innerHTML += "	<td>Title</td>";
            innerHTML += "	<td class='bold'>" + title[0].childNodes[0].nodeValue + "</td>";
	    innerHTML += "    </tr>";

	    innerHTML += "    <tr>";
            innerHTML += "	<td>Bedrooms</td>";
            innerHTML += "	<td class='bold'>" + bedrooms[0].childNodes[0].nodeValue + "</td>";
	    innerHTML += "    </tr>";

	    innerHTML += "    <tr>";
            innerHTML += "	<td>Bathrooms</td>";
            innerHTML += "	<td class='bold'>" + bathrooms[0].childNodes[0].nodeValue + "</td>";
	    innerHTML += "    </tr>";
            innerHTML += "</table>";
	    
            innerHTML += "<table style='width:100%;border-top:1px solid #dedede;margin-bottom:5px;'>";
            innerHTML += "    <tr>";
	    innerHTML += "	<td>" + desc[0].childNodes[0].nodeValue + "</td>";
	    innerHTML += "    </tr>";
            innerHTML += "</table>";
            dojo.byId("imgLoader").style.visibility = "hidden";
	    dojo.byId("infotext").innerHTML = innerHTML;
        },
        error: function(response,ioArgs){
            //dojo.byId("infotext").innerHTML = "Sorry! Unable to get info right now...";
        }
    });
}

function getCruiseInfo(id){
    dijit.byId("transferinfobox").show();
    dojo.byId("imgLoader").style.visibility = "visible";
    dojo.byId("infotext").innerHTML = "Loading...";
    dojo.xhrGet({
        url:"/ajaxcalls/getcruiseinfo?refid="+id,
        handleAs:"xml",
        timeout:5000,
        load: function(response,ioArgs){
            var cruise = response.getElementsByTagName("Cruise");
            var cruisename = cruise[0].getElementsByTagName("CruiseName");
            var cruiselinename = cruise[0].getElementsByTagName("CruiseLineName");
            var shipname = cruise[0].getElementsByTagName("ShipName");
            var portname = cruise[0].getElementsByTagName("PortName");
            var deckname = cruise[0].getElementsByTagName("DeckName");
            var depdate = cruise[0].getElementsByTagName("DepDate");
            var retdate = cruise[0].getElementsByTagName("RetDate");
	    var innerHTML = "";
	    
            innerHTML = "<table cellpadding='0' cellspacing='0' style='border:none;width:100%;'>";
            innerHTML += "    <tr>";
	    innerHTML += "	<td class='bold' style='width:120px;'>Cruise Name</td>";
            innerHTML += "	<td>" + cruisename[0].childNodes[0].nodeValue + "</td>";
	    innerHTML += "    </tr>";

	    innerHTML += "    <tr>";
            innerHTML += "	<td class='bold'>Cruise Line Name</td>";
            innerHTML += "	<td>" + cruiselinename[0].childNodes[0].nodeValue + "</td>";
	    innerHTML += "    </tr>";

	    innerHTML += "    <tr>";
	    innerHTML += "	<td class='bold'>Ship Name</td>";
            innerHTML += "	<td>" + shipname[0].childNodes[0].nodeValue + "</td>";
	    innerHTML += "    </tr>";

	    innerHTML += "    <tr>";
	    innerHTML += "	<td class='bold'>Port Name</td>";
            innerHTML += "	<td>" + portname[0].childNodes[0].nodeValue + "</td>";
	    innerHTML += "    </tr>";

	    innerHTML += "    <tr>";
	    innerHTML += "	<td class='bold'>Deck Name</td>";
            innerHTML += "	<td>" + deckname[0].childNodes[0].nodeValue + "</td>";
	    innerHTML += "    </tr>";

	    innerHTML += "    <tr>";
	    innerHTML += "	<td class='bold'>Departure date</td>";
            innerHTML += "	<td>" + depdate[0].childNodes[0].nodeValue + "</td>";
	    innerHTML += "    </tr>";

	    innerHTML += "    <tr>";
	    innerHTML += "	<td class='bold'>Return Date</td>";
            innerHTML += "	<td>" + retdate[0].childNodes[0].nodeValue + "</td>";
            innerHTML += "    </tr>";
	    innerHTML += "</table>";
	    
	    dojo.byId("infotext").innerHTML = innerHTML;
	    dojo.byId("imgLoader").style.visibility = "hidden";
        },
        error: function(response,ioArgs){
            //dojo.byId("infotext").innerHTML = "Sorry! Unable to get info right now...";
        }
    });
}


