// JavaScript Document

var locations = new Array();
locations['AACH'] = 'Aachen';
locations['ABER'] = 'Aberdeen';
locations['ABRD'] = 'Aberdeen, MD';
locations['ADEL'] = 'Adelaide';
locations['AKRO'] = 'Akron, OH';
locations['AL'] = 'Alberta';
locations['ALBU'] = 'Albuquerque, NM';
locations['ANA'] = 'Anaheim, CA';
locations['ATL'] = 'Atlanta, GA';
locations['AZ'] = 'Arizona';
locations['ATHE'] = 'Athens';
locations['BAD'] = 'Baden-Baden';
locations['BALT'] = 'Baltimore, MD';
locations['BANG'] = 'Bangkok';
locations['BARC'] = 'Barcelona';
locations['BAY'] = 'Bay Area, CA';
locations['BC'] = 'British Columbia';
locations['BEIJ'] = 'Beijing';
locations['BELG'] = 'Belgium';
locations['BELL'] = 'Bellevue, WA';
locations['BNGL'] = 'Bangalore';
locations['BOH'] = 'Beachwood, OH';
locations['BLO'] = 'Bloomington, MN';
locations['BORD'] = 'Bordeaux';
locations['BRIS'] = 'Brisbane';
locations['CAN'] = 'Canada';
locations['CAXI'] = 'Caxias do Sul';
locations['CHAM'] = 'Champaign, IL';
locations['CHEN'] = 'Chennai';
locations['CHIC'] = 'Chicago, IL';
locations['CHI'] = 'China';
locations['CINC'] = 'Cincinnati, OH';
locations['CLEV'] = 'Cleveland, OH';
locations['CN'] = 'California - Northern';
locations['CM'] = 'Cologne Messe';
locations['CO'] = 'Colorado';
locations['COLU'] = 'Columbus, OH';
locations['COST'] = 'Costa Mesa, CA';
locations['COVE'] = 'Coventry';
locations['CS'] = 'California - Southern';
locations['CURI'] = 'Curitiba';
locations['DALL'] = 'Dallas, TX';
locations['DAEJ'] = 'Daejeon';
locations['DELHI'] = 'New Delhi';
locations['DENV'] = 'Denver, CO';
locations['DETR'] = 'Detroit, MI';
locations['DRES'] = 'Dresden';
locations['EDIN'] = 'Edinburgh';
locations['EFFR'] = 'Effretikon';
locations['ESBJ'] = 'Esbjerg';
locations['ESPO'] = 'Espoo';
locations['ESS'] = 'Essen';
locations['FRAN'] = 'Frankfurt';
locations['FREM'] = 'Fremont, CA';
locations['FORT'] = 'Fort Worth, TX';
locations['GER'] = 'Germany';
locations['GOTE'] = 'G\u00F6teborg';
locations['GRAZ'] = 'Graz';
locations['GLAS'] = 'Glasgow';
locations['HAN'] = 'Hannover';
locations['HAMP'] = 'Hampton, VA';
locations['HOUS'] = 'Houston, TX';
locations['HUIZ'] = 'Huizen';
locations['HYDER'] = 'Hyderabad';
locations['ID'] = 'Idaho';
locations['IND'] = 'India';
locations['ISTA'] = 'Istanbul';
locations['ISR'] = 'Israel';
locations['KARL'] = 'Karlsruhe';
locations['KL'] = 'Kuala Lumpur';
locations['KOR'] = 'Korea';
locations['KUAL'] = 'Kuala Lumpur';
locations['LIVE'] = 'Liverpool';
locations['LANS'] = 'Landesmesse Stuttgart';
locations['LASV'] = 'Las Vegas, NV';
locations['LEU'] = 'Leuven';
locations['LOND'] = 'London';
locations['LONG'] = 'Long Beach, CA';
locations['LOSA'] = 'Los Angeles, CA';
locations['LOUIS'] = 'Louisville, KY';
locations['LYO'] = 'Lyon';
locations['MADR'] = 'Madrid';
locations['MANN'] = 'Mannheim';
locations['MELB'] = 'Melbourne';
locations['MEMP'] = 'Memphis, TN';
locations['MIA2'] = 'Ann Arbor, MI (Axel Products)';
locations['MILAN'] = 'Milan';
locations['MILANO'] = 'Milano';
locations['MINN'] = 'Minneapolis, MN';
locations['MO'] = 'Montana';
locations['MONT'] = 'Montreal, Quebec';
locations['MONT2'] = 'Montreal';
locations['MOUNT'] = 'Mountain View, CA';
locations['MUNIC'] = 'Munich';
locations['NAPL'] = 'Naples, FL';
locations['NM'] = 'New Mexico';
locations['NEWA'] = 'Newark , DE';
locations['NETH'] = 'Netherlands';
locations['NICE'] = 'Nice';
locations['NOLA'] = 'New Orleans, LA';
locations['NOCA'] = 'Santa Clara, CA';
locations['NOCA1'] = 'Santa Clara, CA*';
locations['NPBC'] = 'Newport Beach, CA';
locations['NTHV'] = 'Northville, MI';
locations['NURE'] = 'Nuremberg';
locations['NV'] = 'Nevada';
locations['ONTAR'] = 'Toronto, Ontario';
locations['OR'] = 'Oregon';
locations['ORLAN'] = 'Orlando, FL';
locations['OSAK'] = 'Osaka';
locations['OSLO'] = 'Oslo';
locations['OTTA'] = 'Ottawa';
locations['OXF'] = 'Oxford';
locations['PACI'] = 'Pacific Grove, CA';
locations['PANO'] = 'Seattle, WA';
locations['PALM'] = 'Palm Springs, CA';
locations['PARI'] = 'Paris';
locations['PENA'] = 'Penang';
locations['PERTH'] = 'Perth';
locations['PHOE'] = 'Phoenix, AZ';
locations['PITT'] = 'Pittsburgh, PA';
locations['PLY'] = 'Plymouth, MI';
locations['PORT'] = 'Portland, OR';
locations['POZN'] = 'Poznan';
locations['PRAHA'] = 'Prague';
locations['PROV'] = 'Providence, RI';
locations['PUNE'] = 'Pune';
locations['RALE'] = 'Raleigh, NC';
locations['RIO'] = 'Rio de Janeiro';
locations['ROCH'] = 'Rochester, NY';
locations['ROSE'] = 'Rosemount, IL';
locations['ROTT'] = 'Rotterdam';
locations['SALT'] = 'Salt Lake City, UT';
locations['SALZ'] = 'Salzburg';
locations['SAND'] = 'San Diego, CA';
locations['SAOP'] = 'Sao Paulo';
locations['SCHA'] = 'Schaumburg, IL';
locations['SEAT'] = 'Seattle, WA';
locations['SEUL'] = 'Seoul';
locations['SEVOK'] = 'Sevenoaks';
locations['SHANG'] = 'Shanghai';
locations['SING'] = 'Singapore';
locations['SOCA'] = 'Long Beach, CA';
locations['SOCA1'] = 'Long Beach, CA*';
locations['STA'] = 'Stade';
locations['STAD'] = 'Stadthalle Aschaffenburg';
locations['STAV'] = 'Stavanger';
locations['STUT'] = 'Stuttgart';
locations['SYDN'] = 'Sydney';
locations['TBD'] = 'TBD';
locations['TFCU'] = 'Taichung';
locations['TNCK'] = 'Tainan';
locations['TOKY'] = 'Tokyo';
locations['TORI'] = 'Torino';
locations['TOUL'] = 'Toulouse';
locations['TPEI'] = 'Taipei City';
locations['TROY'] = 'Troy, MI';
locations['TSING'] = 'Tsingdao';
locations['TURIN'] = 'Turin';
locations['UT'] = 'Utah';
locations['UK'] = 'UK';
locations['VANT'] = 'Vantaa';
locations['VAST'] = 'V\u00E4ster\u00E5s';
locations['VELIZ'] = 'V\u00E9lizy-Villacoublay';
locations['VELIZY'] = 'V\u00E9lizy';
locations['VELD'] = 'Veldhoven';
locations['VERS'] = 'Versailles';
locations['VIEN'] = 'Vienna';
locations['WA'] = 'Washington';
locations['WADC'] = 'Washington, D.C.';
locations['WAR'] = 'Warsaw';
locations['WARR'] = 'Warrington';
locations['WARW'] = 'Warwick, RI';
locations['WICH'] = 'Wichita, KS';
locations['WIES'] = 'Wiesbaden';
locations['WINT'] = 'Winterthur';
locations['WLFT'] = 'West Lafayette, IN';
locations['WOOD'] = 'Woodland Hills, CA';
locations['WUER'] = 'Wuerzburg';
locations['WY'] = 'Wyoming';
locations['YOKO'] = 'Yokohama';

var countries = new Array();
countries['AS'] = 'Austria';
countries['AST'] = 'Australia';
countries['BEL'] = 'Belgium';
countries['BEN'] = 'Benelux';
countries['BZL'] = 'Brazil';
countries['CAN'] = 'Canada';
countries['CHI'] = 'China';
countries['CZE'] = 'Czech Republic';
countries['DEN'] = 'Denmark';
countries['FI'] = 'Finland';
countries['FR'] = 'France';
countries['GER'] = 'Germany';
countries['GRE'] = 'Greece';
countries['IND'] = 'India';
locations['ISR'] = 'Israel';
countries['IT'] = 'Italy';
countries['JA'] = 'Japan';
countries['KOR'] = 'Korea';
countries['LUX'] = 'Luxembourg';
countries['MAL'] = 'Malaysia';
countries['NET'] = 'Netherlands';
countries['NOR'] = 'Norway';
countries['PO'] = 'Poland';
countries['SA'] = 'South Africa';
countries['SCOT'] = 'Scotland';
countries['SG'] = 'Singapore';
countries['SP'] = 'Spain';
countries['SW'] = 'Sweden';
countries['SWI'] = 'Switzerland';
countries['THA'] = 'Thailand ';
countries['TW'] = 'Taiwan';
countries['TUR'] = 'Turkey';
countries['UK'] = 'UK';
countries['USA'] = 'USA';

var months = ["ERROR", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", "ERROR2" ];

var NS = (navigator.appName=="Netscape")?true:false;

function formatDate(IN, OUT,space) {
	  var startDATE = IN.split("/");
	  var endDATE = OUT.split("/");
	  var srYear = startDATE[0];
	  var srMonth = startDATE[1];
	  var srDay = startDATE[2];
	  var erYear = endDATE[0];
	  var erMonth = endDATE[1];
	  var erDay = endDATE[2];
	  var startMonth = srMonth*1;
	  var endMonth = erMonth*1;
	  var startDay = srDay*1;
	  var endDay = erDay*1;
	  
	  var dash = "\u2013";
	  
	  if (space == 'long') { var dash = " \u2013 "; } 
	  if (space == 'and') { var dash = " \u0026 "; } 
	  
	  var dateFormatted = '';
	  if (IN) 
	  {
		  if ((srYear == erYear) && (srMonth == erMonth) && (srDay == erDay)) 
		  {
			dateFormatted = months[startMonth] + " " + startDay;
		  } 
		  else if (srMonth == erMonth)
		  {
			dateFormatted = months[startMonth] + " " + startDay + dash + endDay;
		  } 
		  else 
		  {
			dateFormatted = months[startMonth] + " " + startDay + dash + months[endMonth] + " " + endDay;
		  }
	  } 
	  else
	  {
	  	  dateFormatted = 'N/A';
	  }
	  // alert(dateFormatted);
	  return dateFormatted;
}
