Solved

PHP cURL Data Scraping

Posted on 2010-09-23
3
1,202 Views
Last Modified: 2012-05-10
I'm trying to data scrape (using PHP cURL) to get details from Emirates track and trace facility on their website:

http://skychain.emirates.com/skychain/app?service=page/nwp:Trackshipmt
an example AWB is 575-94110122

I want to cURL to the forms output and then grab the data so I can use it.  Whenever I try and do it though the cURL returns a "session has expired" page.  I've done this for 4 other airlines and they have been simple forms without sessions.  Is this going to be possible with this style of form?
0
Comment
Question by:chuck_norris666
  • 2
3 Comments
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 500 total points
Comment Utility
I tried your airbill number and this is the page source I got back from the site.  Look below line number 1534.

The URL was this:
http://skychain.emirates.com/skychain/app;jsessionid=MbfYNYKrdv1Q0xVgFbpLZgG6LxJHvQ6BcpD5Xd1ntgtFJbG8QpN2!1814481603

I am guessing that it is possible to scrape this data.  Skychain.Emirates also stored a cookie on the browser named JSESSIONID with the value shown in the URL GET string.  You will need to keep that in the cookie jar.

Each such CURL script I have done is a separate research and development project, and they are all time consuming.  And they are all risky because changes in the HTML may break your scrape strategy.  If I were in need of this kind of information I would call Emirates SkyCargo and ask them for a well-defined API.

Good luck, ~Ray


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML><HEAD><TITLE>Emirates Skycargo - Track Shipment</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script src="js/properties_3009.js"></script><script src="js/mainLib_3001.js"></script><script src="js/ngcsValidation_3006.js"></script><script src="js/domRelated_3000.js"></script><script src="js/processLov_3000.js"></script><script src="js/JDatePicker_3000.js"></script><script src="js/popupcomponent_3000.js"></script><script src="js/JMultiSelect.js"></script><script src="js/claimscommon_3003.js"></script><script src="js/TimePicker_3001.js"></script><LINK rel="stylesheet" type="text/css" href="css/styles.css"><LINK rel="stylesheet" type="text/css" href="css/lovstyles.css"><LINK rel="stylesheet" type="text/css" href="css/main.css"><LINK rel="stylesheet" type="text/css" href="css/landing.css">
<script type="text/javascript" src="js/milonic_src.js"></script>

<script	type="text/javascript">
	if(ns4)_d.write("<script type=text/javascript src=js/mmenuns4.js><\/script>");
	  else _d.write("<script type=text/javascript src=js/mmenudom.js><\/script>");
var appUrl='/skychain/app?service=page/';
</script>
<div style="visibility:none;position:absolute;top:160px;left:100px">
<script LANGUAGE="JavaScript">var s_account="emirskycargocom"; var s_pageName="EK | Track Shipment";var s_channel="EK Shipments";</script><script src="js/s_code_remote.js"></script><script src="js/count_init.js"></script>
</div>
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
	<meta content name="GENERATOR">
</HEAD>
<body>
<script language="JavaScript" type="text/javascript"><!--


fixMozillaZIndex=true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;
buildAllMenus=true;




with(menuStyle=new mm_style()){
	bordercolor="#7d9bb9";
	borderstyle="solid";
	borderwidth=1;
	fontfamily="Arial, Helvetica, sans-serif";
	fontsize="10";
	fontstyle="normal";
	offbgcolor="#fbfbfb";
	offcolor="#000000";
	onbgcolor="#fbfbfb";
	oncolor="#b40000";
	padding=1;
	separatorcolor="#999999";
	separatorsize=0;
	subimage="images/arrows.gif";
	subimagepadding=2;
	itemwidth=200;
}

with(menuStyle1=new mm_style()){
	borderwidth=0;
	padding=0;
	borderstyle="border-bottom: 2px solid #bb0000;";
}

with(milonic=new menuname("Main Menu")){alwaysvisible=1;orientation="horizontal";style=menuStyle1;top=92;left=30;aI("showmenu=mnuWEB01;status=Shipments;image=images/menu/tab_shipments.jpg;overimage=images/menu/tab_shipments_hvr.jpg;url=javascript:invokePage('/skychain/app?service=page/nwp:Landing&menuID=WEB01','WEB01');title=Shipments;");aI("showmenu=mnuWEB02;status=MySkyCargo;image=images/menu/tab_myskycargo.jpg;overimage=images/menu/tab_myskycargo_hvr.jpg;url=javascript:invokePage('/skychain/app?service=page/nwp:Landing&menuID=WEB02','WEB02');title=MySkyCargo;");aI("showmenu=mnuWEB03;status=SkyTrade;image=images/menu/tab_skytrade.jpg;overimage=images/menu/tab_skytrade_hvr.jpg;url=javascript:invokePage('/skychain/app?service=page/nwp:Landing&menuID=WEB03','WEB03');title=SkyTrade;");aI("showmenu=mnuWEB04;status=Tools;image=images/menu/tab_tools.jpg;overimage=images/menu/tab_tools_hvr.jpg;url=javascript:invokePage('/skychain/app?service=page/nwp:Landing&menuID=WEB04','WEB04');title=Tools;");aI("showmenu=mnuWEB05;status=Shippers Guide;image=images/menu/tab_shippers_guide.jpg;overimage=images/menu/tab_shippers_guide_hvr.jpg;url=javascript:invokePage('/skychain/app?service=page/nwp:Landing&menuID=WEB05','WEB05');title=Shippers Guide;");aI("showmenu=mnuWEB06;status=Login;image=images/menu/tab_login.jpg;overimage=images/menu/tab_login_hvr.jpg;url=javascript:invokePage('/skychain/app?service=page/nwp:Login','WEB06');title=Login;");} with(milonic=new menuname("mnuWEB01")){style=menuStyle;aI("status=Track Shipment;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItem' nowrap>Track Shipment</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:Trackshipmt','WEB01-10');title=Track Shipment;");aI("status=Schedules;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItem' nowrap>Schedules</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:scheduleOpr&initial=y','WEB01-20');title=Schedules;");aI("status=Availability;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItem' nowrap>Availability</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:FlightAvailability','WEB01-30');title=Availability;");aI("status=Price Quote;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItem' nowrap>Price Quote</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:Rates','WEB01-40');title=Price Quote;");aI("status=Booking;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItemLocked' nowrap>Booking</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:Booking&initial=y','WEB01-50');title=Booking;");aI("showmenu=mnuWEB01-80;status=Air Waybill;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItem' nowrap>Air Waybill</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:Landing&menuID=WEB01-80','WEB01-80');title=Air Waybill;");aI("status=Print Barcode Label;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItem' nowrap>Print Barcode Label</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:BarcodePrint','WEB01-90');title=Print Barcode Label;");aI("showmenu=mnuWEB01-95;status=Movement Message;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItem' nowrap>Movement Message</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:Landing&menuID=WEB01-95','WEB01-95');title=Movement Message;");aI("showmenu=mnuWEB01-150;status=Claims;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItem' nowrap>Customer Relations</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:Landing&menuID=WEB01-150','WEB01-150');title=Claims;");aI("showmenu=mnuWEB01-160;status=Useful Links;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItem' nowrap>Useful Links</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:Landing&menuID=WEB01-160','WEB01-160');title=Useful Links;");}with(milonic=new menuname("mnuWEB02")){style=menuStyle;aI("status=Bookings;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItemLocked' nowrap>Bookings</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:BookingSearch','WEB02-10');title=Bookings;");aI("status=Status notifications;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItemLocked' nowrap>Status notifications</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:DfltNotification&initial=y','WEB02-30');title=Status notifications;");aI("status=Movement Messages;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItemLocked' nowrap>Movement Messages</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:SrchMsg','WEB02-35');title=Movement Messages;");aI("status=Address Book;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItemLocked' nowrap>Address Book</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:AddressBookList','WEB02-40');title=Address Book;");aI("showmenu=mnuWEB02-60;status=Messages;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItem' nowrap>Messages</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:Landing&menuID=WEB02-60','WEB02-60');title=Messages;");aI("status=Deliveries;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItemLocked' nowrap>Deliveries</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:DOEnquiry&initial=y','WEB02-170');title=Deliveries;");}with(milonic=new menuname("mnuWEB03")){style=menuStyle;aI("status=General Freight;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItemLocked' nowrap>General Freight</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:Login&reqpageid=WEB03','WEB03-10');title=General Freight;");aI("status=Priority;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItemLocked' nowrap>Priority</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:Login&reqpageid=WEB03','WEB03-20');title=Priority;");aI("status=Airport to Door;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItemLocked' nowrap>Airport to Door</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:Login&reqpageid=WEB03','WEB03-40');title=Airport to Door;");aI("status=Door to Airport;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItemLocked' nowrap>Door to Airport</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:Login&reqpageid=WEB03','WEB03-50');title=Door to Airport;");aI("status=Door to Door;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItemLocked' nowrap>Door to Door</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:Login&reqpageid=WEB03','WEB03-60');title=Door to Door;");aI("showmenu=mnuWEB03-70;status=My SkyTrade;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItemLocked' nowrap>My SkyTrade</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:Login&reqpageid=WEB03','WEB03-70');title=My SkyTrade;");}with(milonic=new menuname("mnuWEB04")){style=menuStyle;aI("status=Download Barcode Software;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItemLocked' nowrap>Download Barcode Software</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:DownloadSW','WEB04-10');title=Download Barcode Software;");}with(milonic=new menuname("mnuWEB05")){style=menuStyle;aI("status=Fuel Index;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItem' nowrap>Fuel Index</td></tr></table></td></tr></table>;url=javascript:invokePage('http://www.skycargo.com/fuelindex/fuelindex.asp','WEB05-20','parent');title=Fuel Index;");aI("status=User Agreement;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItem' nowrap>User Agreement</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:UserAcceptance&function=view','WEB05-40');title=User Agreement;");}with(milonic=new menuname("mnuWEB01-80")){style=menuStyle;aI("status=Air Waybill Execution;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItemLocked' nowrap>Air Waybill Execution</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:Awb','WEB01-80-10');title=Air Waybill Execution;");aI("status=Submit House Waybill;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItemLocked' nowrap>Submit House Waybill</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:Hawb','WEB01-80-20');title=Submit House Waybill;");aI("status=SkyPouch;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItemLocked' nowrap>SkyPouch</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:DocumentUpload','WEB01-80-30');title=SkyPouch;");}with(milonic=new menuname("mnuWEB01-95")){style=menuStyle;aI("status=Departure Message;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItemLocked' nowrap>Departure Message</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:DepMsg','WEB01-95-10');title=Departure Message;");aI("status=Arrival Message;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItemLocked' nowrap>Arrival Message</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:ArrMsg','WEB01-95-20');title=Arrival Message;");}with(milonic=new menuname("mnuWEB01-150")){style=menuStyle;aI("status=DashBoard;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItemLocked' nowrap>DashBoard</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:ClaimantDashboard','WEB01-150-10');title=DashBoard;");aI("status=Submit Intent;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItemLocked' nowrap>Submit An Intent</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:ClmtIntentDocValidation','WEB01-150-20');title=Submit Intent;");aI("status=Submit Claims;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItemLocked' nowrap>Submit A Claim</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:ClmtClaimDocValidation','WEB01-150-30');title=Submit Claims;");aI("status=Submit Complaints;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItemLocked' nowrap>Submit Customer Complaints</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:ClmtComplaintsPage','WEB01-150-40');title=Submit Complaints;");aI("status=Preferences;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItemLocked' nowrap>Preferences</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:ClmtPayPref','WEB01-150-60');title=Preferences;");aI("status=FAQ;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='subMenuItem' nowrap>FAQ</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:FAQ','WEB01-150-70');title=FAQ;");}with(milonic=new menuname("mnuWEB01-160")){style=menuStyle;aI("status=Dubai Trade;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='subMenuItem' nowrap>Dubai Trade</td></tr></table></td></tr></table>;url=javascript:invokePage('http://www.dubaitrade.ae','WEB01-160-10','popup');title=Dubai Trade;");aI("status=Dubai Municipality;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='subMenuItem' nowrap>Dubai Municipality</td></tr></table></td></tr></table>;url=javascript:invokePage('http://login.dm.gov.ae/wps/portal/DOS_EN','WEB01-160-20','popup');title=Dubai Municipality;");}with(milonic=new menuname("mnuWEB02-60")){style=menuStyle;aI("status=Email/SMS/FAX;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItemLocked' nowrap>Email/SMS/FAX</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:MyMessages','WEB02-60-10');title=Email/SMS/FAX;");aI("status=Chat;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItemLocked' nowrap>Chat</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:MyChatInvitation','WEB02-60-30');title=Chat;");}with(milonic=new menuname("mnuWEB03-70")){style=menuStyle;aI("status=Retrieve Bookings;text=<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:20px'><table border='0' cellspacing='1' cellpadding='1'><tr><td class='menuItemLocked' nowrap>Retrieve Bookings</td></tr></table></td></tr></table>;url=javascript:invokePage('/skychain/app?service=page/nwp:Login&reqpageid=WEB03','WEB03-70-10');title=Retrieve Bookings;");}

function setLeftMenuStyles(omnu){
	with(omnu){
		offbgcolor="#FFFFFF";
		offcolor="#000000";
		onbgcolor="#FFFFFF";
		oncolor="#FFFFFF";
	}
}

function resetLeftMenuStyles(omnu){
	with(omnu){
		offbgcolor="#DCDCDC";
		offcolor="#000000";
		onbgcolor="#B42E39";
		oncolor="#FFFFFF";
	}
}

function mmLoadMenus(){

}
function invokeBodyOnLoad()
{
	//MM_preloadImages('images/menu/home_hvr.gif','images/menu/eservices_hvr.gif','images/menu/utils_hvr.gif','images/menu/shipguide_hvr.gif','images/menu/emirates_hvr.gif','images/menu/help_hvr.gif');
}


    var _$permChkReq=false;
	function _$onClick_setLastPermissionCheck(button,permissionCode,YorN){
		_$permChkReq = true;
		frmID = document.forms[button.form.name].hdnFormID.value;
	 	hdnLastPermissionCheck = getElById(frmID+"_hdnLastPermissionCheck");
	 	hdnLastPermissionCode = getElById(frmID+"_hdnLastPermissionCode");
	 	if(hdnLastPermissionCheck){
	 		hdnLastPermissionCheck.value = YorN;
	 	}
	 	if(hdnLastPermissionCode){
	 		hdnLastPermissionCode.value = permissionCode;
	 	}
	 }
	 
	 function _$fnCheckPermission(formName){
	 	retValue = true;
 		hdnLastPermissionCheck = getElById(formName+"_hdnLastPermissionCheck");
 		hdnLastPermissionCode = getElById(formName+"_hdnLastPermissionCode");
	 	if(_$permChkReq){
			if(hdnLastPermissionCheck && hdnLastPermissionCheck.value == 'N'){
				var  errDTO = new errorDisplayDTO(); 
				var errMsg = new   errorMessageDTO()  
				errMsg.title = 'Not Authorised';
				errDTO.error = errMsg;
				errMsg.messages[0] = 'Sorry! You are not authorised to perform this operation.';
				displayErrorMessages(errDTO);
				retValue = false;
			}else{
				retValue =  true;
			}
			_$permChkReq = false;
	 	}else{
		 	if(hdnLastPermissionCheck){
		 		hdnLastPermissionCheck.value = "";
		 	}
		 	if(hdnLastPermissionCode){
		 		hdnLastPermissionCode.value = "";
		 	}
	 	}
	 	return retValue;
	 }


	var _currentDate = "23 SEP 2010";
	var _arr_trackForm = new Array();
	var _validate_trackForm = true;
	var _override_SubmitHandler_trackForm = false;
	//control Object, display name,required,Data type(EMAIL,ALPHA,NUMBER,ALPHANUM,DATE,DECIMAL,ALL)

	function trackForm_validation(){
		try{
			if(!_$fnCheckPermission("trackForm")){
				return false;
			}
		}catch(ex){}
		
		if(!_override_SubmitHandler_trackForm){
			try{
				if(trackForm_SubmitHandler()){
					targetOnClick();
					return true;
				}else{
					return false;
				}
			}catch(ex){}
		}
		
		if (!_validate_trackForm) {
			validateBeforeSubmit(_arr_trackForm,false,true)
			try{
				var err =  trackForm_ValidationHandler();
				if (err.hasErrors){
					displayErrorMessages(err);
					return false;
				}
				else {
					targetOnClick();
					return true;
				}
			}catch(ex){
				targetOnClick();
				return true;
			}
		}
		if (validateBeforeSubmit(_arr_trackForm,true,false)){
			try{
				var err =  trackForm_BusinessValidations();
				if (err.hasErrors){
					displayErrorMessages(err);
					return false;
				}
				else {
					targetOnClick();
					return true;
				}
			}
			catch(ex){
				targetOnClick();
				return true;
			}
		}
		else return false;
 }

 function trackForm_resetFormData(enabled){
	try{
		if (!trackForm_beforeresetFormData()) return;
	}catch(e){}
	resetFormData(_arr_trackForm,enabled);
 }

 
 
 




 _arr_trackForm[_arr_trackForm.length] = new Array("document.Form1.selectDoctype","[LBLECTDOCTYPE]",false,"","","");	




 _arr_trackForm[_arr_trackForm.length] = new Array("document.Form1.txtPrefix","Airwaybil No",false,"NUMBER","","3");	




 _arr_trackForm[_arr_trackForm.length] = new Array("document.Form1.txtNumber","Airwaybil No",false,"AWBSERIAL","","8");	




 _arr_trackForm[_arr_trackForm.length] = new Array("document.Form1.txtJrn","Job Reference No",false,"NUMBER","","15");	




 _arr_trackForm[_arr_trackForm.length] = new Array("document.Form1.txtAWBPrefix","AWB Prefix",false,"NUMBER","","3");	




 _arr_trackForm[_arr_trackForm.length] = new Array("document.Form1.txtAWBNumber","AWB Number",false,"AWBSERIAL","","8");	


var arryList=new Array();



var tempArry=new Array();
tempArry[0]="document.Form1.txtAWBPrefix";
tempArry[1]="document.Form1.txtAWBNumber";
arryList[arryList.length]=tempArry;





 _arr_trackForm[_arr_trackForm.length] = new Array("document.Form1.txtAWBPrefix$0","AWB Prefix",false,"NUMBER","","3");	




 _arr_trackForm[_arr_trackForm.length] = new Array("document.Form1.txtAWBNumber$0","AWB Number",false,"AWBSERIAL","","8");	




var tempArry=new Array();
tempArry[0]="document.Form1.txtAWBPrefix$0";
tempArry[1]="document.Form1.txtAWBNumber$0";
arryList[arryList.length]=tempArry;





 _arr_trackForm[_arr_trackForm.length] = new Array("document.Form1.txtAWBPrefix$1","AWB Prefix",false,"NUMBER","","3");	




 _arr_trackForm[_arr_trackForm.length] = new Array("document.Form1.txtAWBNumber$1","AWB Number",false,"AWBSERIAL","","8");	




var tempArry=new Array();
tempArry[0]="document.Form1.txtAWBPrefix$1";
tempArry[1]="document.Form1.txtAWBNumber$1";
arryList[arryList.length]=tempArry;





 _arr_trackForm[_arr_trackForm.length] = new Array("document.Form1.txtAWBPrefix$2","AWB Prefix",false,"NUMBER","","3");	




 _arr_trackForm[_arr_trackForm.length] = new Array("document.Form1.txtAWBNumber$2","AWB Number",false,"AWBSERIAL","","8");	




var tempArry=new Array();
tempArry[0]="document.Form1.txtAWBPrefix$2";
tempArry[1]="document.Form1.txtAWBNumber$2";
arryList[arryList.length]=tempArry;





 _arr_trackForm[_arr_trackForm.length] = new Array("document.Form1.txtAWBPrefix$3","AWB Prefix",false,"NUMBER","","3");	




 _arr_trackForm[_arr_trackForm.length] = new Array("document.Form1.txtAWBNumber$3","AWB Number",false,"AWBSERIAL","","8");	




var tempArry=new Array();
tempArry[0]="document.Form1.txtAWBPrefix$3";
tempArry[1]="document.Form1.txtAWBNumber$3";
arryList[arryList.length]=tempArry;





 _arr_trackForm[_arr_trackForm.length] = new Array("document.Form1.txtAWBPrefix$4","AWB Prefix",false,"NUMBER","","3");	




 _arr_trackForm[_arr_trackForm.length] = new Array("document.Form1.txtAWBNumber$4","AWB Number",false,"AWBSERIAL","","8");	




var tempArry=new Array();
tempArry[0]="document.Form1.txtAWBPrefix$4";
tempArry[1]="document.Form1.txtAWBNumber$4";
arryList[arryList.length]=tempArry;





 _arr_trackForm[_arr_trackForm.length] = new Array("document.Form1.txtAWBPrefix$5","AWB Prefix",false,"NUMBER","","3");	




 _arr_trackForm[_arr_trackForm.length] = new Array("document.Form1.txtAWBNumber$5","AWB Number",false,"AWBSERIAL","","8");	




var tempArry=new Array();
tempArry[0]="document.Form1.txtAWBPrefix$5";
tempArry[1]="document.Form1.txtAWBNumber$5";
arryList[arryList.length]=tempArry;





 _arr_trackForm[_arr_trackForm.length] = new Array("document.Form1.txtAWBPrefix$6","AWB Prefix",false,"NUMBER","","3");	




 _arr_trackForm[_arr_trackForm.length] = new Array("document.Form1.txtAWBNumber$6","AWB Number",false,"AWBSERIAL","","8");	




var tempArry=new Array();
tempArry[0]="document.Form1.txtAWBPrefix$6";
tempArry[1]="document.Form1.txtAWBNumber$6";
arryList[arryList.length]=tempArry;





 _arr_trackForm[_arr_trackForm.length] = new Array("document.Form1.txtAWBPrefix$7","AWB Prefix",false,"NUMBER","","3");	




 _arr_trackForm[_arr_trackForm.length] = new Array("document.Form1.txtAWBNumber$7","AWB Number",false,"AWBSERIAL","","8");	




var tempArry=new Array();
tempArry[0]="document.Form1.txtAWBPrefix$7";
tempArry[1]="document.Form1.txtAWBNumber$7";
arryList[arryList.length]=tempArry;




var trackShiptable_MultiSelect = new Array();
	//Following function will extract the data from table primary key
function trackShiptable_TablePrimaryKeyData(obj,parentRow,isOnLoad){
	var rtnStr;
	document.Form1.hdnSelectedTag.value="";
	if(obj.checked){
		str = eval("document.Form1.trackShiptableDataRow"+parentRow).value;;
		trackShiptable_settingSelected(parentRow,str);
		rtnStr = trackShiptable_returnDataArray(str,0);
	}
	else{
		trackShiptable_settingSelected(parentRow,"");
		rtnStr = new Array();
	}
	try{
		trackShiptable_RowOnClick(rtnStr,obj.checked,obj,parentRow,isOnLoad);
	}
	catch(ex){}
	trackShiptable_setSelectedRow(obj,parentRow);
}

function trackShiptable_getSelectedRows(){
	var returnArray = new Array();
	var count=0;	
	for(n=0;n<trackShiptable_MultiSelect.length;n++){		
		if(trackShiptable_MultiSelect[n]){			
			if(trackShiptable_MultiSelect[n]!=""){
				returnArray[count++]= trackShiptable_extractData(trackShiptable_MultiSelect[n]);				
			}
		}		
	}	
	return returnArray;
}

function trackShiptable_settingSelected(parentRow,str){
	if("true"=="true"){
		trackShiptable_MultiSelect[parseInt(parentRow)]=str;
		var selectStr="";
		for(i=0;i<trackShiptable_MultiSelect.length;i++){
			if(trackShiptable_MultiSelect[i]){
				if(trackShiptable_MultiSelect[i]!=""){
					selectStr = (selectStr=="")?trackShiptable_MultiSelect[i]:(selectStr+"#,"+trackShiptable_MultiSelect[i]);
				}
			}
		}
		document.Form1.hdnSelectedTableRow.value = selectStr;
	}
	else{
		document.Form1.hdnSelectedTableRow.value = str;
	}

}

function trackShiptable_returnDataArray(str,row){
	if(str.indexOf("#,")==-1){
		var rows = str.split("#,");
		for(i=0;i<rows.length;i++){
			if(i==row){
				return trackShiptable_extractData(rows[i]);
			}
		}
	}
	else{
		return trackShiptable_extractData(str);
	}

}

function trackShiptable_extractData(str){
	var arr = str.split("#%");
	var data;
	var rtn = new Array();
	for(i=0;i<arr.length;i++){
		data = arr[i].split("~");
		rtn[rtn.length]=data[1];
	}
	return rtn;
}

function trackShiptable_TableLinkClick(parentRow,innerRow,column,obj,id){
	var submitpage=true;
	var val = eval("document.Form1.trackShiptableDataRow"+parentRow).value;
	document.Form1.hdnSelectedTag.value=column;
	if("only"!="only" && "only"!="none"){
		var chkObj=eval("document.Form1.trackShiptablecontrol");
		if(chkObj.length>0)
			chkObj = chkObj[parseInt(parentRow)];

		chkObj.checked=true;
	}
	trackShiptable_settingSelected(parentRow,val);
	try{
		var arrRtn=trackShiptable_returnDataArray(val,parseInt(innerRow));
		submitpage = trackShiptable_preTableLinkClick(arrRtn,column,obj,id);
	}
	catch(e){}
	if(submitpage){
		document.Form1.submit();
	}
}

function trackShiptable_tree_onclick(parentRow,isOnLoad,isFromCtrl){
	try{
		if("only"!="only"){
			var chkObj=eval("document.Form1.trackShiptablecontrol");
			if(chkObj.length>0)
				chkObj = chkObj[parseInt(parentRow)];
			if(isOnLoad)
				chkObj.checked=true;
			trackShiptable_TablePrimaryKeyData(chkObj,parentRow,isOnLoad);
		}
		else{
			var val = eval("document.Form1.trackShiptableDataRow"+parentRow).value;
			trackShiptable_settingSelected(parentRow,val);
		}
	}
	catch(ex){}
	try{
		var obj=getElById("trackShiptablerowimg"+parentRow);
		if("false" == "true"){
			if(isFromCtrl){
				if(chkObj.checked){
					obj.src = "images/ico_minus.gif";
				}else{
					obj.src = "images/ico_plus.gif";
				}
			}else{
				if((obj.src).indexOf("plus")==-1)
					obj.src = "images/ico_plus.gif";
				else
					obj.src = "images/ico_minus.gif";
			}
		}else{
			if((obj.src).indexOf("plus")==-1)
				obj.src = "images/ico_plus.gif";
			else
				obj.src = "images/ico_minus.gif";
		}
	}catch(e){}
	try{
		if("false" == "true"){
			if(isFromCtrl)
				tableVisibility("trackShiptablerow"+parentRow,chkObj.checked);
			else
				toggleTableVisibility("trackShiptablerow"+parentRow);
		}else{
			toggleTableVisibility("trackShiptablerow"+parentRow);
		}
	}catch(e){}

}

function trackShiptable_setSelectedRow(obj,parentRow){
	setSelectedRow(obj);
	if("true"!="true"){
		try{
			var x=0;
			while(1==1){
				var objData=getElById("trackShiptabledata"+x+"0");
				objData.className = (objData.className).replace("Selected","");
				x++;
			}
		}catch(e){}
	}
	try{
	var objData=getElById("trackShiptabledata"+parentRow+"0");
		if(obj.checked){
			if (objData.className.indexOf("Selected")==-1)
				objData.className = (objData.className).replace("Hover","")+"Selected";
		}
		else{
			objData.className = (objData.className).replace("Selected","");
		}
	}catch(e){}
	var row=true;
	var x=0;
	try{
		while(row){
			var objRow=getElById("trackShiptablerow"+parentRow+""+x);
			if(obj.checked){
				if (objRow.className.indexOf("Selected")==-1)
					objRow.className = (objRow.className).replace("Hover","")+"Selected";
			}
			else{
				objRow.className = (objRow.className).replace("Selected","");
			}
			x++;
		}
	}catch(e){}
}

function trackShiptable_setRowMouseOver(parentRow,innerRow){
	try{
	var objData=getElById("trackShiptabledata"+parentRow+"0");
	setRowMouseOver(objData);
	}catch(e){}
	var objRow=getElById("trackShiptablerow"+parentRow+""+innerRow);
	setRowMouseOver(objRow);
}

function trackShiptable_setRowMouseOut(parentRow,innerRow){
	try{
		var objData=getElById("trackShiptabledata"+parentRow+"0");
		setRowMouseOut(objData);
	}catch(e){}
	var objRow=getElById("trackShiptablerow"+parentRow+""+innerRow);
	setRowMouseOut(objRow);
}
function trackShiptable_setOnLoadSelectedRows(){
	var selectedRows = "";
	var rows = selectedRows.split('#');
	for(k = 0; k < rows.length; k++){
		if(rows[k] != ''){
			trackShiptable_tree_onclick(rows[k],true);
		}
	}
}




var trackShiptable1_MultiSelect = new Array();
	//Following function will extract the data from table primary key
function trackShiptable1_TablePrimaryKeyData(obj,parentRow,isOnLoad){
	var rtnStr;
	document.Form1.hdnSelectedTag$0.value="";
	if(obj.checked){
		str = eval("document.Form1.trackShiptable1DataRow"+parentRow).value;;
		trackShiptable1_settingSelected(parentRow,str);
		rtnStr = trackShiptable1_returnDataArray(str,0);
	}
	else{
		trackShiptable1_settingSelected(parentRow,"");
		rtnStr = new Array();
	}
	try{
		trackShiptable1_RowOnClick(rtnStr,obj.checked,obj,parentRow,isOnLoad);
	}
	catch(ex){}
	trackShiptable1_setSelectedRow(obj,parentRow);
}

function trackShiptable1_getSelectedRows(){
	var returnArray = new Array();
	var count=0;	
	for(n=0;n<trackShiptable1_MultiSelect.length;n++){		
		if(trackShiptable1_MultiSelect[n]){			
			if(trackShiptable1_MultiSelect[n]!=""){
				returnArray[count++]= trackShiptable1_extractData(trackShiptable1_MultiSelect[n]);				
			}
		}		
	}	
	return returnArray;
}

function trackShiptable1_settingSelected(parentRow,str){
	if("true"=="true"){
		trackShiptable1_MultiSelect[parseInt(parentRow)]=str;
		var selectStr="";
		for(i=0;i<trackShiptable1_MultiSelect.length;i++){
			if(trackShiptable1_MultiSelect[i]){
				if(trackShiptable1_MultiSelect[i]!=""){
					selectStr = (selectStr=="")?trackShiptable1_MultiSelect[i]:(selectStr+"#,"+trackShiptable1_MultiSelect[i]);
				}
			}
		}
		document.Form1.hdnSelectedTableRow$0.value = selectStr;
	}
	else{
		document.Form1.hdnSelectedTableRow$0.value = str;
	}

}

function trackShiptable1_returnDataArray(str,row){
	if(str.indexOf("#,")==-1){
		var rows = str.split("#,");
		for(i=0;i<rows.length;i++){
			if(i==row){
				return trackShiptable1_extractData(rows[i]);
			}
		}
	}
	else{
		return trackShiptable1_extractData(str);
	}

}

function trackShiptable1_extractData(str){
	var arr = str.split("#%");
	var data;
	var rtn = new Array();
	for(i=0;i<arr.length;i++){
		data = arr[i].split("~");
		rtn[rtn.length]=data[1];
	}
	return rtn;
}

function trackShiptable1_TableLinkClick(parentRow,innerRow,column,obj,id){
	var submitpage=true;
	var val = eval("document.Form1.trackShiptable1DataRow"+parentRow).value;
	document.Form1.hdnSelectedTag$0.value=column;
	if("only"!="only" && "only"!="none"){
		var chkObj=eval("document.Form1.trackShiptable1control");
		if(chkObj.length>0)
			chkObj = chkObj[parseInt(parentRow)];

		chkObj.checked=true;
	}
	trackShiptable1_settingSelected(parentRow,val);
	try{
		var arrRtn=trackShiptable1_returnDataArray(val,parseInt(innerRow));
		submitpage = trackShiptable1_preTableLinkClick(arrRtn,column,obj,id);
	}
	catch(e){}
	if(submitpage){
		document.Form1.submit();
	}
}

function trackShiptable1_tree_onclick(parentRow,isOnLoad,isFromCtrl){
	try{
		if("only"!="only"){
			var chkObj=eval("document.Form1.trackShiptable1control");
			if(chkObj.length>0)
				chkObj = chkObj[parseInt(parentRow)];
			if(isOnLoad)
				chkObj.checked=true;
			trackShiptable1_TablePrimaryKeyData(chkObj,parentRow,isOnLoad);
		}
		else{
			var val = eval("document.Form1.trackShiptable1DataRow"+parentRow).value;
			trackShiptable1_settingSelected(parentRow,val);
		}
	}
	catch(ex){}
	try{
		var obj=getElById("trackShiptable1rowimg"+parentRow);
		if("false" == "true"){
			if(isFromCtrl){
				if(chkObj.checked){
					obj.src = "images/ico_minus.gif";
				}else{
					obj.src = "images/ico_plus.gif";
				}
			}else{
				if((obj.src).indexOf("plus")==-1)
					obj.src = "images/ico_plus.gif";
				else
					obj.src = "images/ico_minus.gif";
			}
		}else{
			if((obj.src).indexOf("plus")==-1)
				obj.src = "images/ico_plus.gif";
			else
				obj.src = "images/ico_minus.gif";
		}
	}catch(e){}
	try{
		if("false" == "true"){
			if(isFromCtrl)
				tableVisibility("trackShiptable1row"+parentRow,chkObj.checked);
			else
				toggleTableVisibility("trackShiptable1row"+parentRow);
		}else{
			toggleTableVisibility("trackShiptable1row"+parentRow);
		}
	}catch(e){}

}

function trackShiptable1_setSelectedRow(obj,parentRow){
	setSelectedRow(obj);
	if("true"!="true"){
		try{
			var x=0;
			while(1==1){
				var objData=getElById("trackShiptable1data"+x+"0");
				objData.className = (objData.className).replace("Selected","");
				x++;
			}
		}catch(e){}
	}
	try{
	var objData=getElById("trackShiptable1data"+parentRow+"0");
		if(obj.checked){
			if (objData.className.indexOf("Selected")==-1)
				objData.className = (objData.className).replace("Hover","")+"Selected";
		}
		else{
			objData.className = (objData.className).replace("Selected","");
		}
	}catch(e){}
	var row=true;
	var x=0;
	try{
		while(row){
			var objRow=getElById("trackShiptable1row"+parentRow+""+x);
			if(obj.checked){
				if (objRow.className.indexOf("Selected")==-1)
					objRow.className = (objRow.className).replace("Hover","")+"Selected";
			}
			else{
				objRow.className = (objRow.className).replace("Selected","");
			}
			x++;
		}
	}catch(e){}
}

function trackShiptable1_setRowMouseOver(parentRow,innerRow){
	try{
	var objData=getElById("trackShiptable1data"+parentRow+"0");
	setRowMouseOver(objData);
	}catch(e){}
	var objRow=getElById("trackShiptable1row"+parentRow+""+innerRow);
	setRowMouseOver(objRow);
}

function trackShiptable1_setRowMouseOut(parentRow,innerRow){
	try{
		var objData=getElById("trackShiptable1data"+parentRow+"0");
		setRowMouseOut(objData);
	}catch(e){}
	var objRow=getElById("trackShiptable1row"+parentRow+""+innerRow);
	setRowMouseOut(objRow);
}
function trackShiptable1_setOnLoadSelectedRows(){
	var selectedRows = "";
	var rows = selectedRows.split('#');
	for(k = 0; k < rows.length; k++){
		if(rows[k] != ''){
			trackShiptable1_tree_onclick(rows[k],true);
		}
	}
}



var advSFlag=false;
function funValidation(){
	var prefix= document.Form1.txtPrefix.value;
	var txtNumber= document.Form1.txtNumber.value;
	var txtJrn= document.Form1.txtJrn.value;
	var errDTO = new errorDisplayDTO(); 
	var errMsg  = new  errorMessageDTO();
	var errorFlag=false;
		if(_awbNumberCheck())
		{
			errorFlag=true;
			errMsg.messages[errMsg.messages.length]=_trackShipment_property.valEnterAWBNo;
		}
		if(prefix==""&&txtNumber==""&&txtJrn==""){
			errorFlag=true;
			errMsg.messages[errMsg.messages.length]=_trackShipment_property.valAWBorJonRef;
		}
		if(_unkCheck()){
			errorFlag=true;
			errMsg.messages.length=0;
			errMsg.messages[errMsg.messages.length]=_trackShipment_property.valUNK;
		}
	errDTO.mandatory.hasMessages=false;
	errDTO.hasErrors=errorFlag;
	errDTO.error = errMsg;
	return errDTO;
}
function _unkCheck(){
	var unkFlag=false;
	var txtNumber= document.Form1.txtNumber.value;
	if(txtNumber.toUpperCase()=='UNK'){
		unkFlag=true;
	}
	for(var temp=0;temp<arryList.length;temp++){
		var tempUNKStr=eval(arryList[temp][1]).value;
		if(tempUNKStr.toUpperCase()=='UNK'){
			unkFlag=true;
		}
	}
	return unkFlag;
}	
function _awbNumberCheck(){
	_awbNumberFlag=false;
	var tempCount=0;
	var prefix= document.Form1.txtPrefix.value;
	var txtNumber= document.Form1.txtNumber.value;
	var txtJrn= document.Form1.txtJrn.value;
	var asFlag=document.Form1.advSearch.value;
	if(asFlag){
		for(var temp=0;temp<arryList.length;temp++){
			var prefixStr=eval(arryList[temp][0]).value;
			var numberStr=eval(arryList[temp][1]).value;
			if(prefixStr==''|| numberStr==''){
				tempCount++;
			}
		}
		if(prefix!=""&&(txtNumber==""&&txtJrn=="")||txtNumber!=""&&(prefix==""&&txtJrn=="")){
				tempCount++
		}
		if(tempCount==10){
			_awbNumberFlag=true;
		}	
	}
	else{
		if(prefix!=""&&(txtNumber==""&&txtJrn=="")||txtNumber!=""&&(prefix==""&&txtJrn=="")){
			_awbNumberFlag=true;
		}
	}
	return _awbNumberFlag;
}
function trackForm_BusinessValidations(){
	return funValidation(); 
}	
function selectTrackRadio(){
	var hdnObjValue = document.Form1.trackViewHdn.value;
	var selObj = get_radio_value(hdnObjValue);
	if(selObj)
		selObj.checked = true;
	displayTrackRecords(hdnObjValue);
}
function show(id){
	el = document.getElementById(id);
	if (el.style.display == 'none')
	{
		el.style.display = '';
		el = document.getElementById('more' + id);
		el.innerHTML ="Single shipment";
        document.getElementById('advImg').src='images/bs.gif';    
		document.Form1.advSearch.value='T';
		document.Form1.txtJrn.value='';
		document.Form1.txtJrn.readOnly=true;
		document.Form1.txtJrn.className="inputsReadOnly";
		advSFlag=true;
	}
    else {
		el.style.display = 'none';
		el = document.getElementById('more' + id);
		el.innerHTML ="Multiple shipments" ;
        document.getElementById('advImg').src='images/ad.gif' ;     
        document.Form1.txtJrn.className="inputs"
		document.Form1.txtJrn.readOnly=false;
		document.Form1.advSearch.value='F';
		advSFlag=false;
	}
}	
function setDocPrefix(){
	var count;
	if(document.Form1.selectDoctype.value=="AWB"){
		document.Form1.txtPrefix.value="176";
		for(count=0;count<arryList.length;count++){
		eval(arryList[count][0]).value="176";
		//eval(arryList[count][0]).className="inputsReadOnly";
		//eval(arryList[count][0]).readOnly=true;
		}
	}
	else{
		document.Form1.txtPrefix.value="";
		document.Form1.txtPrefix.className="inputs";
		document.Form1.txtPrefix.readOnly=false;
		for(count=0;count<arryList.length;count++){
		eval(arryList[count][0]).value="";
		//eval(arryList[count][0]).className="inputs";
		//eval(arryList[count][0]).readOnly=false;
		}
		return;
	}
}
function resetValues(){
	document.Form1.txtNumber.value="";
	document.Form1.txtPrefix.value="";
	document.Form1.txtJrn.value="";
	for(count=0;count<arryList.length;count++){
		eval(arryList[count][0]).value="";
		eval(arryList[count][1]).value="";
	}
}
function printTrackShipment(){
	window.print();
}
function _awbValidation(obj){
	try{
		//alert("called"+obj.value);
		var resultStr=obj.value;		
		//alert("called"+resultStr.toUpperCase());		
		if(resultStr.toUpperCase()=="UNK"){
			var errDTO = new errorDisplayDTO(); 
			var errMsg  = new  errorMessageDTO();
			errMsg.messages[errMsg.messages.length]=_trackShipment_property.valValidAWB;
			//"Enter valid  AirWayBill Number";
			errDTO.hasErrors=true;
			errDTO.error = errMsg;
			return errDTO;
		}
	}
	catch(e){alert(e);}	
}
function openSkycargoPopup(){
	var number=document.Form1.txtNumber.value;
	var prefix=document.Form1.txtPrefix.value;
	var jrnnum=document.Form1.txtJrn.value;
	var finalUrl="http://www.eland.emirates.com/SkyChainOnline/SkyCargo_SSI/Tracking/cargoTracking.asp"+"?AWBP="+prefix+"&AWBN="+number+"&JRN="+jrnnum
	//alert(finalUrl);
	window.open(finalUrl,"TrackShipement","height=500,width=752,left=100,top=100,scrollbars=yes,toolbars=yes,status=yes,menu=yes")	
}	
function on_pageLoad(){	
	try{    
		if(true){
	    	trackShiptable_tree_onclick('0',true);
	    	trackShiptable1_tree_onclick('0',true);
		}
		var el = document.getElementById('info');
		if (el.style.display != 'none'){
			document.Form1.txtJrn.className="inputsReadOnly"
			document.Form1.txtJrn.readOnly=true;
		}
	}catch(e){}
}
function openMailTrackguide(){
	window.open("MailTrackshipmentguide.html","MailTrackshipmentguide","height=600,width=720,left=100,top=75,scrollbars=no,toolbars=no,status=no,menu=no");
}
function get_radio_value(trackType) { 
	for (var i=0; i < document.Form1.trackView.length; i++) { 
		var selObj = document.Form1.trackView[i];
		var selValue = selObj.value; 
		if(trackType == selValue)
			return selObj;
	} 
} 
function displayTrackRecords(trackType){
	var textObj = getElById('textBlock');
	var tableObj = getElById('tableBlock');
	var hdnObj = document.Form1.trackViewHdn;
	if(trackType){
		if(textObj && tableObj){
			if(trackType == 'textRadio'){
				textObj.style.display = 'inline';
				tableObj.style.display = 'none';
			}else if(trackType == 'tableRadio'){
				textObj.style.display = 'none';
				tableObj.style.display = 'inline';
			}
		}
	}
	hdnObj.value = trackType;
}

function reset(){
	document.Form1.txtNumber.value="";
	document.Form1.txtJrn.value="";
	for(var temp=0;temp<arryList.length;temp++){
		eval(arryList[temp][1]).value="";
	}
}



window.onload = function ()
{
bodyOnLoad()

invokeBodyOnLoad();


document.Form1.hdnSelectedTableRow.value = '';



document.Form1.hdnSelectedTableRow$0.value = '';



	on_pageLoad();
	selectTrackRadio();

document.Form1.onsubmit = trackForm_validation;


}

// --></script>
<table cellSpacing="0" cellPadding="10" style="width:780px;" border="0"><tr><td><table cellSpacing="0" cellPadding="0" style="width:100%;" border="0"><form method="post" name="Form0" action="/skychain/app">

<input type="hidden" name="service" value="direct/1/nwp:Trackshipmt/$BorderLayout.head.$Form"/>
<input type="hidden" name="sp" value="S0"/>
<input type="hidden" name="Form0" value=""/>
	<tr>
		<td colspan="2" class="header">
            <table cellspacing="0" cellpadding="0" border="0" width="100%">
                <tr><td style="padding-left:10px;width:100%;">
			<a href="#" class="headerLogo"><img src="images/main_site_logo.gif" width="62" height="62" alt="Emirates SkyCargo" /></a>
			<div class="headerUser">Welcome

 <span>skycargo guest user</span>

 </div>
			<ul class="headerLinks">
				<li>


<a href="/skychain/app?service=page/nwp:Register" title="register">register</a>
 <span class="separator">|</span>
                </li>
				<li>

<a href="/skychain/app?service=page/nwp:ChangePassword" onClick="javascript:targetOnClick();">Change Password</a> </li>
			</ul>
            </td></tr></table>
		</td>
	</tr>
    <tr>
		<td colspan="2">
<script>drawMenus();</script></td>

	</tr>

 <tr>
			<td><img src="images/spacer.gif" width="113" height="1" alt="" /></td>
			<td><img src="images/spacer.gif" width="647" height="1" alt="" /></td>
		</tr>

</form><tr><td class="sidebar"><table width="100%" cellspacing="0" cellpadding="0">
	<tr>
			<td class="photo"></td>

		</tr>
	<tr>
		<td class="title"><img src="images/menu/shipment_lft.gif" title="Shipments" alt="Shipments" ></td>
	</tr>
	<tr>
		<td>
			<ul class="menu">


<li class="first"> <table width="100%" cellspacing="0" cellpadding="0">

                                <tr>
									<td>
<a href="javascript:invokePage('/skychain/app?service=page/nwp:Trackshipmt','WEB01-10')" onmouseOut="" title="Track Shipment" onmouseOver="popdown();" class="selected">Track Shipment</a> </td>
                                    <td>
	</td>
                           		</tr>
                         	</table>
</li>


<li> <table width="100%" cellspacing="0" cellpadding="0">
                                <tr>
									<td>
<a href="javascript:invokePage('/skychain/app?service=page/nwp:scheduleOpr&amp;initial=y','WEB01-20')" onmouseOut="" title="Schedules" onmouseOver="popdown();" class="">Schedules</a> </td>
                                    <td>
	</td>
                           		</tr>

                         	</table>
</li>



<li> <table width="100%" cellspacing="0" cellpadding="0">
                                <tr>
									<td>
<a href="javascript:invokePage('/skychain/app?service=page/nwp:FlightAvailability','WEB01-30')" onmouseOut="" title="Availability" onmouseOver="popdown();" class="">Availability</a> </td>
                                    <td>

	</td>
                           		</tr>
                         	</table>
</li>



<li> <table width="100%" cellspacing="0" cellpadding="0">
                                <tr>
									<td>
<a href="javascript:invokePage('/skychain/app?service=page/nwp:Rates','WEB01-40')" onmouseOut="" title="Price Quote" onmouseOver="popdown();" class="">Price Quote</a> </td>

                                    <td>
	</td>
                           		</tr>
                         	</table>
</li>



<li class="locked"> <table width="100%" cellspacing="0" cellpadding="0">
                                <tr>
									<td>

<a href="javascript:invokePage('/skychain/app?service=page/nwp:Booking&amp;initial=y','WEB01-50')" onmouseOut="" title="Booking" onmouseOver="popdown();" class="">Booking</a> </td>
                                    <td>
	</td>
                           		</tr>
                         	</table>
</li>














<li> <table width="100%" cellspacing="0" cellpadding="0">
                                <tr>
									<td>
<a href="javascript:invokePage('/skychain/app?service=page/nwp:Landing&amp;menuID=WEB01-80','WEB01-80')" onmouseOut="" title="Air Waybill" onmouseOver="popup('mnuWEB01-80','imgmnuWEB01-80',-10,15);" class="">Air Waybill</a> </td>

                                    <td>
<div><img src="images/arrows.gif" id="imgmnuWEB01-80" name="imgmnuWEB01-80" border="0"></div>	</td>
                           		</tr>
                         	</table>
</li>



<li> <table width="100%" cellspacing="0" cellpadding="0">
                                <tr>
									<td>

<a href="javascript:invokePage('/skychain/app?service=page/nwp:BarcodePrint','WEB01-90')" onmouseOut="" title="Print Barcode Label" onmouseOver="popdown();" class="">Print Barcode Label</a> </td>
                                    <td>
	</td>
                           		</tr>
                         	</table>
</li>



<li> <table width="100%" cellspacing="0" cellpadding="0">

                                <tr>
									<td>
<a href="javascript:invokePage('/skychain/app?service=page/nwp:Landing&amp;menuID=WEB01-95','WEB01-95')" onmouseOut="" title="Movement Message" onmouseOver="popup('mnuWEB01-95','imgmnuWEB01-95',-10,15);" class="">Movement Message</a> </td>
                                    <td>
<div><img src="images/arrows.gif" id="imgmnuWEB01-95" name="imgmnuWEB01-95" border="0"></div>	</td>
                           		</tr>
                         	</table>
</li>























<li> <table width="100%" cellspacing="0" cellpadding="0">
                                <tr>
									<td>
<a href="javascript:invokePage('/skychain/app?service=page/nwp:Landing&amp;menuID=WEB01-150','WEB01-150')" onmouseOut="" title="Claims" onmouseOver="popup('mnuWEB01-150','imgmnuWEB01-150',-10,15);" class="">Customer Relations</a> </td>
                                    <td>

<div><img src="images/arrows.gif" id="imgmnuWEB01-150" name="imgmnuWEB01-150" border="0"></div>	</td>
                           		</tr>
                         	</table>
</li>



<li> <table width="100%" cellspacing="0" cellpadding="0">
                                <tr>
									<td>
<a href="javascript:invokePage('/skychain/app?service=page/nwp:Landing&amp;menuID=WEB01-160','WEB01-160')" onmouseOut="" title="Useful Links" onmouseOver="popup('mnuWEB01-160','imgmnuWEB01-160',-10,15);" class="">Useful Links</a> </td>

                                    <td>
<div><img src="images/arrows.gif" id="imgmnuWEB01-160" name="imgmnuWEB01-160" border="0"></div>	</td>
                           		</tr>
                         	</table>
</li>

	</ul>
		</td>
	</tr>
</table></td><td class="main"><table cellSpacing="0" cellPadding="0" style="width: 100%;" border="0"><tr>

	<td style="padding-right:10px;">
	    <table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td class="title">
			        <table width="100%" border="0" cellpadding="0" cellspacing="0">
						<tr>
				          <td align="left" class="appHeading">Track Shipment</td>
				          <td align="right">&nbsp;

 </td>
					    </tr>
					</table>
			    </td>
			</tr>
        </table>
    </td>
</tr><tr><td class="content"><table cellSpacing="0" cellPadding="0" border="0" id="loadTabl" style="display:none;" width="642px" align="left" valign="top"><tr><td align="center" height="300" style="width:642px" valign="middle" class="loadingStyle"></td></tr></table><table cellSpacing="0" cellPadding="0" border="0" id="formTabl" style="display:block;" width="642px" align="left" valign="top"><tr><td valign="top" style="width:642px"><table cellSpacing="0" cellPadding="0" border="0" width="100%" align="left" valign="top"><tr align="right"><td class="fntMandDesc">* Indicates mandatory fields.</td></tr></table></td></tr><tr><td valign="top" class="pageMain" style="width:642px"><span class="pageContent" >Track and trace by air waybill number or job reference number (JRN) the current status of your shipments and get details of your shipment progress. Track up to 10 shipments at a time. It is now possible to track the status of your shipment/s via email. <a href="javaScript:openMailTrackguide();">Click here</a> for more information.</span></td></tr><tr><td valign="top" style="width:642px">

<div id="dvErrorDis" class="dvErrorDis"></div><form method="post" name="Form1" action="/skychain/app">
<input type="hidden" name="service" value="direct/1/nwp:Trackshipmt/trackForm"/>
<input type="hidden" name="sp" value="S1"/>
<input type="hidden" name="Form1" value="selectDoctype,txtPrefix,txtNumber,txtJrn,txtAWBPrefix,txtAWBNumber,txtAWBPrefix$0,txtAWBNumber$0,txtAWBPrefix$1,txtAWBNumber$1,txtAWBPrefix$2,txtAWBNumber$2,txtAWBPrefix$3,txtAWBNumber$3,txtAWBPrefix$4,txtAWBNumber$4,txtAWBPrefix$5,txtAWBNumber$5,txtAWBPrefix$6,txtAWBNumber$6,txtAWBPrefix$7,txtAWBNumber$7,$Submit,$Submit$0,$FormConditional,trackShiptable,hdnSelectedTag,hdnSelectedTableRow,trackShiptable1,hdnSelectedTag$0,hdnSelectedTableRow$0,$FormConditional$0,pageSize,listSize,advSearch,trackViewHdn"/>
<input type="hidden" name="trackForm_hdnLastPermissionCheck" id="trackForm_hdnLastPermissionCheck" value=""/>
<input type="hidden" name="trackForm_hdnLastPermissionCode" id="trackForm_hdnLastPermissionCode" value=""/>
<input type="hidden" name="hdnFormID" id="hdnFormID" value="trackForm"/>
<input type="hidden" name="$FormConditional" value="T"/>
<input type="hidden" name="hdnSelectedTag" value=""/>
<input type="hidden" name="hdnSelectedTableRow" value=""/>
<input type="hidden" name="hdnSelectedTag$0" value=""/>
<input type="hidden" name="hdnSelectedTableRow$0" value=""/>
<input type="hidden" name="$FormConditional$0" value="F"/>
<input type="hidden" name="pageSize" value="10"/>
<input type="hidden" name="listSize" value="1"/>
<input type="hidden" name="advSearch" value="F"/>
<input type="hidden" name="trackViewHdn" value="textRadio"/>

	<table width="642"  border="0" cellspacing="0" cellpadding="0">
       	    <tr>
              <td width="6" class=borderbottom>&nbsp;</td>
              <td width="118" class="bordertab">Track Shipment</td>
              <td width="474" class=borderbottom>&nbsp;</td>
              <td width="144" class=borderall nowrap><div><a class="linkverdana"><a id="moreinfo" href="#" onclick="javascript:show('info');return false;" onmouseover="window.status ='Multiple Shipments';return true;" title="Multiple Shipments" onmouseout="window.status='';return true;">Multiple shipments</a></a>&nbsp<img id="advImg" src="images/ad.gif" width="9" height="9"></div></td>
            </tr>
          </table>

         <table width="642" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td class="borderthreeforsearchpanel">
               <table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="55%">
                      <TABLE height="21" border=0 cellPadding=0 cellSpacing=0>
	                      <TR>
	                        <TD width="105" height="15" vAlign=bottom noWrap> <span class="label">Document No.</span></TD>

	                        <TD vAlign=bottom rowSpan=4> <input type="text" name="selectDoctype" value="AWB" onfocus="onFocus_FieldClassChange(this,'null','');" class="inputsReadOnly" onChange="setDocPrefix()" onblur="onBlur_FieldClassChange(this,'null','');" style="width: 55px" readOnly="true" title="Document Type"/>
<input type="text" name="txtPrefix" value="575" onfocus="onFocus_FieldClassChange(this,'NUMBER','');" class="inputs" onblur="onBlur_FieldClassChange(this,'NUMBER','');" style="width:28px " maxlength="3" dataType="NUMBER" title="AWB Prefix"/>
<input type="text" name="txtNumber" value="94110122" onchange="_awbValidation(this)" onfocus="onFocus_FieldClassChange(this,'AWBSERIAL','');" class="inputs" onblur="onBlur_FieldClassChange(this,'AWBSERIAL','');" style="width:65px;text-transform:uppercase" maxlength="8" dataType="AWBSERIAL" title="AWB Number"/> </TD>
	                      </TR>
	                      <TR>
	                        <TD noWrap bgColor= #999999 height="1"></TD>
	                      </TR>
	                      <TR>
	                        <TD noWrap height=1></TD>

	                      </TR>
                  </TABLE>
                  </td>
                  <td width="45%">
                      <TABLE cellSpacing=0 cellPadding=0 border=0>
	                      <TR>
	                        <TD width="105" height="15" vAlign=bottom noWrap>Job Reference No</TD>
	                        <TD vAlign=bottom rowSpan=4>

<input type="text" name="txtJrn" onfocus="onFocus_FieldClassChange(this,'NUMBER','');" class="inputs" onblur="onBlur_FieldClassChange(this,'NUMBER','');" style="width:100px " maxlength="15" dataType="NUMBER" title="Job Reference Number"/></TD>
	                      </TR>
	                      <TR>
	                        <TD noWrap bgColor= #999999 height="1"></TD>
	                      </TR>
	                      <TR>
	                        <TD noWrap height=1></TD>
	                      </TR>
                  </TABLE>

                 </td>
                </tr>
<tr style="display:none;" id="info">	<td>
                        <TABLE height="21" border=0 cellPadding=0 cellSpacing=0>
 <tr>
	                        <TD width="109" height="15"  >&nbsp; </TD>
	                        <TD vAlign=bottom width="55px">&nbsp;</TD>
	                        <TD vAlign=bottom >&nbsp;</TD>

	                        <TD ><input type="text" name="txtAWBPrefix" value="176" size="1" onfocus="onFocus_FieldClassChange(this,'NUMBER','');" class="inputs" onblur="onBlur_FieldClassChange(this,'NUMBER','');" style="width:28px" maxlength="3" dataType="NUMBER" id="address223232422310"/></TD>
	                        <TD vAlign=bottom >&nbsp;</TD>
	                        <TD ><input type="text" name="txtAWBNumber" size="1" onchange="_awbValidation(this)" onfocus="onFocus_FieldClassChange(this,'AWBSERIAL','');" class="inputs" onblur="onBlur_FieldClassChange(this,'AWBSERIAL','');" style="width:65px;text-transform:uppercase" maxlength="8" dataType="AWBSERIAL" title="AWB Number"/></TD>
 </TR>
	                      <TR>
	                        <TD noWrap colspan="6" height="1"></TD>
	                      </TR>
 <tr>
	                        <TD width="109" height="15"  >&nbsp; </TD>

	                        <TD vAlign=bottom width="55px">&nbsp;</TD>
	                        <TD vAlign=bottom >&nbsp;</TD>
	                        <TD ><input type="text" name="txtAWBPrefix$0" value="176" size="1" onfocus="onFocus_FieldClassChange(this,'NUMBER','');" class="inputs" onblur="onBlur_FieldClassChange(this,'NUMBER','');" style="width:28px" maxlength="3" dataType="NUMBER" id="address223232422310"/></TD>
	                        <TD vAlign=bottom >&nbsp;</TD>
	                        <TD ><input type="text" name="txtAWBNumber$0" size="1" onchange="_awbValidation(this)" onfocus="onFocus_FieldClassChange(this,'AWBSERIAL','');" class="inputs" onblur="onBlur_FieldClassChange(this,'AWBSERIAL','');" style="width:65px;text-transform:uppercase" maxlength="8" dataType="AWBSERIAL" title="AWB Number"/></TD>
 </TR>
	                      <TR>
	                        <TD noWrap colspan="6" height="1"></TD>
	                      </TR>

 <tr>
	                        <TD width="109" height="15"  >&nbsp; </TD>
	                        <TD vAlign=bottom width="55px">&nbsp;</TD>
	                        <TD vAlign=bottom >&nbsp;</TD>
	                        <TD ><input type="text" name="txtAWBPrefix$1" value="176" size="1" onfocus="onFocus_FieldClassChange(this,'NUMBER','');" class="inputs" onblur="onBlur_FieldClassChange(this,'NUMBER','');" style="width:28px" maxlength="3" dataType="NUMBER" id="address223232422310"/></TD>
	                        <TD vAlign=bottom >&nbsp;</TD>
	                        <TD ><input type="text" name="txtAWBNumber$1" size="1" onchange="_awbValidation(this)" onfocus="onFocus_FieldClassChange(this,'AWBSERIAL','');" class="inputs" onblur="onBlur_FieldClassChange(this,'AWBSERIAL','');" style="width:65px;text-transform:uppercase" maxlength="8" dataType="AWBSERIAL" title="AWB Number"/></TD>
 </TR>

	                      <TR>
	                        <TD noWrap colspan="6" height="1"></TD>
	                      </TR>
 <tr>
	                        <TD width="109" height="15"  >&nbsp; </TD>
	                        <TD vAlign=bottom width="55px">&nbsp;</TD>
	                        <TD vAlign=bottom >&nbsp;</TD>
	                        <TD ><input type="text" name="txtAWBPrefix$2" value="176" size="1" onfocus="onFocus_FieldClassChange(this,'NUMBER','');" class="inputs" onblur="onBlur_FieldClassChange(this,'NUMBER','');" style="width:28px" maxlength="3" dataType="NUMBER" id="address223232422310"/></TD>

	                        <TD vAlign=bottom >&nbsp;</TD>
	                        <TD ><input type="text" name="txtAWBNumber$2" size="1" onchange="_awbValidation(this)" onfocus="onFocus_FieldClassChange(this,'AWBSERIAL','');" class="inputs" onblur="onBlur_FieldClassChange(this,'AWBSERIAL','');" style="width:65px;text-transform:uppercase" maxlength="8" dataType="AWBSERIAL" title="AWB Number"/></TD>
 </TR>
	                      <TR>
	                        <TD noWrap colspan="6" height="1"></TD>
	                      </TR>
 <tr>
	                        <TD width="109" height="15"  >&nbsp; </TD>

	                        <TD vAlign=bottom width="55px">&nbsp;</TD>
	                        <TD vAlign=bottom >&nbsp;</TD>
	                        <TD ><input type="text" name="txtAWBPrefix$3" value="176" size="1" onfocus="onFocus_FieldClassChange(this,'NUMBER','');" class="inputs" onblur="onBlur_FieldClassChange(this,'NUMBER','');" style="width:28px" maxlength="3" dataType="NUMBER" id="address223232422310"/></TD>
	                        <TD vAlign=bottom >&nbsp;</TD>
	                        <TD ><input type="text" name="txtAWBNumber$3" size="1" onchange="_awbValidation(this)" onfocus="onFocus_FieldClassChange(this,'AWBSERIAL','');" class="inputs" onblur="onBlur_FieldClassChange(this,'AWBSERIAL','');" style="width:65px;text-transform:uppercase" maxlength="8" dataType="AWBSERIAL" title="AWB Number"/></TD>
 </TR>
	                      <TR>
	                        <TD noWrap colspan="6" height="1"></TD>
	                      </TR>

 <tr>
	                        <TD width="109" height="15"  >&nbsp; </TD>
	                        <TD vAlign=bottom width="55px">&nbsp;</TD>
	                        <TD vAlign=bottom >&nbsp;</TD>
	                        <TD ><input type="text" name="txtAWBPrefix$4" value="176" size="1" onfocus="onFocus_FieldClassChange(this,'NUMBER','');" class="inputs" onblur="onBlur_FieldClassChange(this,'NUMBER','');" style="width:28px" maxlength="3" dataType="NUMBER" id="address223232422310"/></TD>
	                        <TD vAlign=bottom >&nbsp;</TD>
	                        <TD ><input type="text" name="txtAWBNumber$4" size="1" onchange="_awbValidation(this)" onfocus="onFocus_FieldClassChange(this,'AWBSERIAL','');" class="inputs" onblur="onBlur_FieldClassChange(this,'AWBSERIAL','');" style="width:65px;text-transform:uppercase" maxlength="8" dataType="AWBSERIAL" title="AWB Number"/></TD>
 </TR>

	                      <TR>
	                        <TD noWrap colspan="6" height="1"></TD>
	                      </TR>
 <tr>
	                        <TD width="109" height="15"  >&nbsp; </TD>
	                        <TD vAlign=bottom width="55px">&nbsp;</TD>
	                        <TD vAlign=bottom >&nbsp;</TD>
	                        <TD ><input type="text" name="txtAWBPrefix$5" value="176" size="1" onfocus="onFocus_FieldClassChange(this,'NUMBER','');" class="inputs" onblur="onBlur_FieldClassChange(this,'NUMBER','');" style="width:28px" maxlength="3" dataType="NUMBER" id="address223232422310"/></TD>

	                        <TD vAlign=bottom >&nbsp;</TD>
	                        <TD ><input type="text" name="txtAWBNumber$5" size="1" onchange="_awbValidation(this)" onfocus="onFocus_FieldClassChange(this,'AWBSERIAL','');" class="inputs" onblur="onBlur_FieldClassChange(this,'AWBSERIAL','');" style="width:65px;text-transform:uppercase" maxlength="8" dataType="AWBSERIAL" title="AWB Number"/></TD>
 </TR>
	                      <TR>
	                        <TD noWrap colspan="6" height="1"></TD>
	                      </TR>
 <tr>
	                        <TD width="109" height="15"  >&nbsp; </TD>

	                        <TD vAlign=bottom width="55px">&nbsp;</TD>
	                        <TD vAlign=bottom >&nbsp;</TD>
	                        <TD ><input type="text" name="txtAWBPrefix$6" value="176" size="1" onfocus="onFocus_FieldClassChange(this,'NUMBER','');" class="inputs" onblur="onBlur_FieldClassChange(this,'NUMBER','');" style="width:28px" maxlength="3" dataType="NUMBER" id="address223232422310"/></TD>
	                        <TD vAlign=bottom >&nbsp;</TD>
	                        <TD ><input type="text" name="txtAWBNumber$6" size="1" onchange="_awbValidation(this)" onfocus="onFocus_FieldClassChange(this,'AWBSERIAL','');" class="inputs" onblur="onBlur_FieldClassChange(this,'AWBSERIAL','');" style="width:65px;text-transform:uppercase" maxlength="8" dataType="AWBSERIAL" title="AWB Number"/></TD>
 </TR>
	                      <TR>
	                        <TD noWrap colspan="6" height="1"></TD>
	                      </TR>

 <tr>
	                        <TD width="109" height="15"  >&nbsp; </TD>
	                        <TD vAlign=bottom width="55px">&nbsp;</TD>
	                        <TD vAlign=bottom >&nbsp;</TD>
	                        <TD ><input type="text" name="txtAWBPrefix$7" value="176" size="1" onfocus="onFocus_FieldClassChange(this,'NUMBER','');" class="inputs" onblur="onBlur_FieldClassChange(this,'NUMBER','');" style="width:28px" maxlength="3" dataType="NUMBER" id="address223232422310"/></TD>
	                        <TD vAlign=bottom >&nbsp;</TD>
	                        <TD ><input type="text" name="txtAWBNumber$7" size="1" onchange="_awbValidation(this)" onfocus="onFocus_FieldClassChange(this,'AWBSERIAL','');" class="inputs" onblur="onBlur_FieldClassChange(this,'AWBSERIAL','');" style="width:65px;text-transform:uppercase" maxlength="8" dataType="AWBSERIAL" title="AWB Number"/></TD>
 </TR>

	                      <TR>
	                        <TD noWrap colspan="6" height="1"></TD>
	                      </TR>
 </TABLE>
                    </td>
                    <td>&nbsp;
                    </td>
</tr> </table>
           </td>

          </tr>
          <tr>
            <td align="left" class="borderthree">
              <table border="0"  cellSpacing=0 cellPadding=0 width="100%">
                  <tr>
                      <td>
                          <input id="trackView" name="trackView" type="radio" onclick="displayTrackRecords('textRadio');" value="textRadio"/>Text view&nbsp;
                          <input id="trackView" name="trackView" type="radio" onclick="displayTrackRecords('tableRadio');" value="tableRadio"/>Tabular view </td>

                      <td  align="right">
<input type="submit" name="$Submit" style="width: 45px " title="Track" class="input" value="Track"/>
<input type="submit" name="$Submit$0" style="width: 48px " title="Reset" onclick="reset();_validate_trackForm=false" class="input" value="Reset"/> </td>
                      </tr>
                  </table>
            </td>
          </tr>
        </table>                  															     
    <br>
 <table width="100%" border="0" cellspacing="0" cellpadding="0">

      <tr>
        <td width="1%" class=borderbottom>&nbsp;</td>
        <td width="13%" class="bordertab" noWrap>Track Records</td>
        <td width="86%" class=borderbottom>&nbsp;</td>
        </tr>
      <tr>
        <td height="26" colspan="3" class="borderthree"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>

			<td align="left">Click the +/- button to view/hide shipment status details</td>
			<td align="right"><a href="javascript:printTrackShipment();" title="Print Tracking Response">Print</a> </td>
		  </tr>
        </table></td>
        </tr>
    </table>
    <div id="textBlock" name="textBlock" style="display:block;">

<table name="trackShiptable" border="0" cellspacing="0" class="grdTable"><thead><tr><th class="grdHead">&nbsp;</th><th class="grdHead">Document No.</th><th class="grdHead">Origin</th><th class="grdHead">Destination</th><th class="grdHead">Pieces</th><th class="grdHead">Weight</th><th class="grdHead">Volume</th><th class="grdHead">Nature of Goods</th><th class="grdHead">Product</th><th class="grdHead">SHC Code</th></tr></thead><tr class="grdRow" name="trackShiptablerow00" id="trackShiptablerow00" onmouseover="trackShiptable_setRowMouseOver('0','0')" onmouseout="trackShiptable_setRowMouseOut('0','0')"><td name="trackShiptabledata00" id="trackShiptabledata00" class="grdNobg"><a href="javascript: trackShiptable_tree_onclick('0', true);"><img border="0" id="trackShiptablerowimg0" name="trackShiptablerowimg0" src="/skychain/images/ico_plus.gif"/></a></td><td class="grdRowData">575-94110122</td><td class="grdRowData">ZRH</td><td class="grdRowData">BGW</td><td class="grdRowData">1</td><td class="grdRowData">740.00</td><td class="grdRowData">1.06</td><td class="grdRowData">GENUINE ABB TUR</td><td class="grdRowData">GENERAL CARGO</td><td class="grdRowData">HEA</td></tr><tr class="grdRow" style="display:none" name="trackShiptablerow0" id="trackShiptablerow0"><td class="grdNobg">&nbsp;</td><td class="grdRowData" colspan="9">1 pieces weighing 740.00 kgs <b>Unconfirmed</b> on flight 7C0999/ <b>DXB-BGW</b>,STD null , STA null .(Tran. Date 28AUG2010)<br>1 pieces weighing 740.00 kgs <b>received</b> from shipper at 19:31 hrs on 28 AUG 2010 at <b>ZRH</b> Zurich Kloten,SWITZERLAND.  <br></td></tr></table><input type="hidden" name="trackShiptableDataRow0" id="trackShiptableDataRow0" value="java.lang.Long~9367218"></input><input type="hidden" name="trackShiptableJavaClass" id="trackShiptableJavaClass" value="com.emirates.ngcs.nweb.trackshipment.ShipmentDTO"></input>	</div>

     <div id="tableBlock" name="tableBlock" style="display:none;">
<table name="trackShiptable1" border="0" cellspacing="0" class="grdTable"><thead><tr><th class="grdHead">&nbsp;</th><th class="grdHead">Document No.</th><th class="grdHead">Origin</th><th class="grdHead">Destination</th><th class="grdHead">Pieces</th><th class="grdHead">Weight</th><th class="grdHead">Volume</th><th class="grdHead">Nature of Goods</th><th class="grdHead">Product</th><th class="grdHead">SHC Code</th></tr></thead><tr class="grdRow" name="trackShiptable1row00" id="trackShiptable1row00" onmouseover="trackShiptable1_setRowMouseOver('0','0')" onmouseout="trackShiptable1_setRowMouseOut('0','0')"><td name="trackShiptable1data00" id="trackShiptable1data00" class="grdNobg"><a href="javascript: trackShiptable1_tree_onclick('0', true);"><img border="0" id="trackShiptable1rowimg0" name="trackShiptable1rowimg0" src="/skychain/images/ico_plus.gif"/></a></td><td class="grdRowData">575-94110122</td><td class="grdRowData">ZRH</td><td class="grdRowData">BGW</td><td class="grdRowData">1</td><td class="grdRowData">740.00</td><td class="grdRowData">1.06</td><td class="grdRowData">GENUINE ABB TUR</td><td class="grdRowData">GENERAL CARGO</td><td class="grdRowData">HEA</td></tr><tr class="grdRow" style="display:none" name="trackShiptable1row0" id="trackShiptable1row0"><td class="grdNobg">&nbsp;</td><td class="grdRowData" colspan="9"><table class="grdTable" border="0" cellpadding="0" cellspacing="0" align="left"><thead><tr><th class="grdHead">Station</td><th class="grdHead">Status Date</td><th class="grdHead">Status</td><th class="grdHead">Flight Details</td><th class="grdHead">Pieces</td><th class="grdHead">Weight</td></tr></thead><tr class="grdRow"><td class="grdNobg">&nbsp;ZRH</span></td><td class="grdRowData">&nbsp;28 AUG 2010 19:31</span></td><td class="grdRowData">&nbsp;Received from Shipper</span></td><td class="grdRowData">&nbsp;-</span></td><td class="grdRowData">&nbsp;1</span></td><td class="grdRowData">&nbsp;740.0&nbsp;K</span></td></tr><tr class="grdRow"><td class="grdNobg">&nbsp;ZRH</span></td><td class="grdRowData">&nbsp;28 AUG 2010 19:31</span></td><td class="grdRowData">&nbsp;Booking Unconfirmed</span></td><td class="grdRowData">&nbsp;7C0999, , STD , DXB-BGW, STA - null - null</span></td><td class="grdRowData">&nbsp;1</span></td><td class="grdRowData">&nbsp;740.0&nbsp;K</span></td></tr></table></td></tr></table><input type="hidden" name="trackShiptable1DataRow0" id="trackShiptable1DataRow0" value="java.lang.Long~9367218"></input><input type="hidden" name="trackShiptable1JavaClass" id="trackShiptable1JavaClass" value="com.emirates.ngcs.nweb.trackshipment.ShipmentDTO"></input> </div>

      </form>
</td></tr></table></td></tr><tr><td class="back_to_top"><a href="#"><img src="images/top.gif" width="17" height="18" alt="top"></img></a></td></tr></table></td></tr><tr>
	<td colspan="2" class="footer">
		<span>Copyright &copy; 2009 Emirates SkyCargo. All Rights Reserved.</span>
<a href="javascript:invokePage('http://www.skycargo.com/Misc/Disclaimer.asp','WEB00-80','parent')">Disclaimer</a> |
<a href="javascript:invokePage('http://www.skycargo.com/Misc/conditions/conditions1.asp','WEB00-90','parent')">Conditions of Carriage</a>	</td>

</tr>
</table></td></tr></table>
</body></HTML>

Open in new window

0
 

Author Comment

by:chuck_norris666
Comment Utility
Wicked, thanks for that, the cookie jar was the answer.
0
 
LVL 108

Expert Comment

by:Ray Paseur
Comment Utility
Great! - It's not usually that simple ;-)
~Ray
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

744 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

16 Experts available now in Live!

Get 1:1 Help Now