<!--
function BrowserCheck() {
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.version	= navigator.appVersion
	this.v				= parseInt(this.version)
	this.ns				= (this.b=="ns" && this.v>=4)
	this.ns4			= (this.b=="ns" && this.v==4)
	this.ns5			= (this.b=="ns" && this.v==5)
	this.ns6up		= (this.b=="ns" && this.v>=5)
	this.ie				= (this.b=="ie" && this.v>=4)
	this.ie4			= (this.version.indexOf('MSIE 4')>0)
	this.ie5			= (this.version.indexOf('MSIE 5')>0)
	this.ie6			= (this.version.indexOf('MSIE 6')>0)
	this.ie6up		= (this.b=="ie" && this.v>=6)
	this.min			= (this.ns||this.ie)
}
is = new BrowserCheck()

function openAtHomeWindow(){
	var strQS = "&shipmentnum=" + document.FORM2.strHoldShipment.value;
	popWindow('help/TrackHelp.asp?item=AtHome' + strQS)
}

//var popupWin; //holds the popup windows <commented to resolve multiple open problem - <25/11/2004> Nidhi
function openWindow(url,width,height,xCrd,yCrd,loc,tool,re,scroll,stat,title) {
	//if (popupWin) {  <commented to resolve multiple open problem - <25/11/2004> Nidhi
		// close old window before we open a new one
		//popupWin.close();  <commented to resolve multiple open problem - <25/11/2004> Nidhi
	//}     <commented to resolve multiple open problem - <25/11/2004> Nidhi
  var popupWin = window.open(url, 'popup', 'width='+width+',height='+height+',left='+xCrd+',top='+yCrd+',location='+loc+',toolbar='+tool+',resizable='+re+',scrollbars='+scroll+',status='+stat+',titlebar='+title);
  popupWin.focus();
}

function popWindowTall(url)
{
	var topPosition = (screen.height)?(screen.height - 475)/2:100;
	var leftPosition = (screen.width)?(screen.width - 530)/2:100;
	var description = window.open (url,'ABXWindow','toolbar=no,directories=no,menubar=no,width=530,height=475,resizable=no,status=no,scrollbars=yes,top=' +topPosition + ',left=' + leftPosition)
	description.focus()
}

function popWindowSizeable(url, sizeable){
	var topPosition = (screen.height)?(screen.height - 475)/2:100;
	var leftPosition = (screen.width)?(screen.width - 650)/2:100;
	
//url="http://www.airborne.com"
	var description = window.open (url,'ABXWinSizeable','toolbar=no,directories=no,menubar=no,width=650,height=475,resizable='+sizeable+',status=no,scrollbars=yes,top=' +topPosition + ',left=' + leftPosition)
	description.focus()
}

function popWindow(url){
	var topPosition = (screen.height)?(screen.height - 400)/2:100;
	var leftPosition = (screen.width)?(screen.width - 530)/2:100;
	var description = window.open (url,'ABXWindow','toolbar=no,directories=no,menubar=no,width=530,height=400,resizable=no,status=no,scrollbars=yes,top=' +topPosition + ',left=' + leftPosition)
	description.focus()
}

function closeDescription() {
}

function setWindowFlag(state) {
}

			function GetContentWnd(){ return parent; }	
			function OnEmail(){
				var oWnd = 	GetContentWnd();
				var oDoc = oWnd.document;
				var oDescription = oDoc.getElementById("Description");
				var strDescription = ( (oDescription == null) || (oDescription.content == "") ) ? oDoc.title : oDescription.content;	
				if( oDoc.title == "" )
					oWnd.location.href = "mailto:?body="+BuildEmailDescription(strDescription, AddParamToURL(oWnd.location.href, strEmailString));
				else
					oWnd.location.href = "mailto:?subject="+escape(oDoc.title)+"&body="+BuildEmailDescription(strDescription, AddParamToURL(oWnd.location.href, strEmailString));
				return true;
			}
			function BuildEmailDescription(strDescription,hRef){
				return escape("Here's a great article you might be interested in:" +
							String.fromCharCode(13)+ String.fromCharCode(13) + strDescription + String.fromCharCode(13) + "URL: " + hRef);
			}
			function AddParamToURL(strLoc,strParam){
				var i = strLoc.lastIndexOf("?");
				if(strLoc.indexOf(strParam, i) >= 0)
					return strLoc;
				
				strLoc += ((i >= 0) && (i > strLoc.lastIndexOf("/"))) ? "&" : "?";
				return strLoc + strParam;
			}
var msie3=false;
browserVer=parseInt( navigator.appVersion );
if( browserVer == 2 && navigator.appName == "Microsoft Internet Explorer" ) { browserVer=3;msie3=true}

var now = new Date();
var hereoff=now.getTimezoneOffset();
if( now.toString().indexOf( "Daylight Time" ) != -1 &&
navigator.appName == "Netscape" && browserVer <= 4 ) hereoff +=60;
var dst;

function montonum( mon )
{
  if( mon == "Jan" ) return 0;
  if( mon == "Feb" ) return 1;
  if( mon == "Mar" ) return 2;
  if( mon == "Apr" ) return 3;
  if( mon == "May" ) return 4;
  if( mon == "Jun" ) return 5;
  if( mon == "Jul" ) return 6;
  if( mon == "Aug" ) return 7;
  if( mon == "Sep" ) return 8;
  if( mon == "Oct" ) return 9;
  if( mon == "Nov" ) return 10;
  if( mon == "Dec" ) return 11;
}

//Begin Add on 07/25/2005
//Function to open the input URL in another window with the address bar
function PopUpWithLocation(pageURL)
{
	var win;
	win = null;
	settings='left=20,top=20,height=500,width=600,scrollbars=yes,status=yes,location=yes,toolbar=yes,resizable=yes,menubar=yes';
	win=window.open(pageURL,"Win",settings);
	win.focus();
}
//End Add on 07/25/2005

//**********Functions used for Country Detail Pages under International Tools******************
function do_time( offset )
{
  offbits=offset.split( ":" );
  hours=eval( now.getHours() + offbits[0] );
  if( dst ) hours +=1;
  sign=1; if( offbits[0] < 0 ) { sign=-1; }
  mins=eval( hours*60 + now.getMinutes() + offbits[1]*sign + hereoff);
  if( mins < 0 ) { mins +=1440; }
  hours=Math.floor( mins / 60 );
  mins=mins % 60;
  if( 23 < hours ) { hours -=24; }
  if( hours < 10 ) { hours="0"+hours; }
  if( mins < 10 ) { mins="0"+mins; }
  document.write( hours +":"+ mins );
}

function is_dst( dststart, dstend )
{
  if( dststart == " " || dstend == " " ) return false;
  dst_st=dststart.split( " " );
  st_mon=montonum( dst_st[0] );
  dst_en=dstend.split( " " );
  en_mon=montonum( dst_en[0] );
  now_mon=now.getMonth();
  if( now_mon < st_mon || en_mon < now_mon ) return false;
  now_day=now.getDate();
  if( st_mon == now_mon && now_day < dst_st[1] ) return false;
  if( en_mon == now_mon && now_day < dst_en[1] ) return false;
  return true;
}

function do_times( times, dststart, dstend )
{
  if( browserVer < 3 ) return;
  dst=is_dst( dststart, dstend );
  sep_times=times.split( "/" );
  if( sep_times.length != 1 )
  {
    document.write( "Between " );
    do_time( sep_times[0] );
    document.write( " and " );
    do_time( sep_times[sep_times.length-1] );
  }
  else
  {
    do_time( sep_times[0] );
  }
}
function goHist(a)
{
	history.go(a);      // Go back one.
}	
//**********End Functions used for Country Detail Pages under International Tools******************
// End the hiding here. -->

