// JavaScript Document

function checkEnter(e,key){ //e is event object passed from function invocation
var characterCode //literal character code will be stored in this variable
//alert("");
if(e && e.which){ //if which property of event object is supported (NN4)
e = e
characterCode = e.which //character code is contained in NN4's which property
}
else{
e = event
characterCode = e.keyCode //character code is contained in IE's keyCode property
}

if(characterCode == 13){ 
//if generated character code is equal to ascii 13 (if enter key)
//alert(key);
siteSearch(key); //submit the form
return false 
}
else{
return true 
}

}


function siteSearch(keyword)
{
	keyword=keyword.toLowerCase();
	//if(keyword=='home' )
	//alert(keyword);
	 if((keyword == 'home') || (keyword == 'atlas logistics'))
	 {
     document.location.href="http://www.atlaslogistics.co.in/index.html";
	  }else
	 if((keyword == 'mission and quality policy') || (keyword == 'mission') || (keyword == 'quality policy'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/MissionandQualityPolicy.html";
	  }else if(keyword == 'cmd')
	  {
      document.location.href="http://www.atlaslogistics.co.in/FromCMD.html";
	  }else if((keyword == 'directors profile')||(keyword == 'managing directors profile')||(keyword == 'directors profiles'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/ManagingDirectorsProfiles.html";
	  }else if((keyword == 'organization chart')||(keyword == 'company chart')||(keyword == 'atlas chart'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/OrganizationChart.html";
	  }
	  else if((keyword == 'milestones')||(keyword == 'milestone'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/Milestones.html";
	  }else if((keyword == 'air freight')||(keyword == 'sky freight')||(keyword == 'air freights')||(keyword == 'sky freights'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/AirFreight.html";
	  }
	  else if((keyword == 'sea freight')||(keyword == 'ocean freight')||(keyword == 'sea freights')||(keyword == 'ocean freights')||(keyword == 'full container load')||(keyword == 'fcl')||(keyword == 'less than container load')||(keyword == 'less container load')||(keyword == 'lcl')||(keyword == 'ncl')||(keyword == 'non containerised load')||(keyword == 'sea export')||(keyword == 'sea import'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/SeaFreight.html";
	  }else if((keyword == 'customs brokerage')||(keyword == 'customs services'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/CustomsBrokerage.html";
	  }else if((keyword == 'warehousing')||(keyword == 'distribution')||(keyword == 'warehousing & distribution')||(keyword ==  'warehousing and distribution'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/Warehousing&Distribution.html";
	  }else if((keyword == 'project logistics')||(keyword == 'projects cargo'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/ProjectLogistics.html";
	  }else if((keyword == 'road')||(keyword == 'rail')||(keyword == 'road logistics')||(keyword == 'rail logistics')||(keyword == 'transportaion'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/Transportation.html";
	  }else if((keyword == 'perishable')||(keyword == 'temperature controlled cargo'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/Perishable.html";
	  }if((keyword == 'telecommunications'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/Telecommunications.html";
	  }else if((keyword == 'retail'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/Retail.html";
	  }else if((keyword == 'fashion'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/Fashion.html";
	  }
	  else if((keyword == 'press'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/Press.html";
	  }
	  else if((keyword == 'our news')||(keyword == 'news'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/OurNews.html";
	  }
	  else if((keyword == 'volumetric weight'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/VolumetricWeight.html";
	  }
	  else if((keyword == 'conversion calculator'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/ConversionCalculator.html";
	  }else if((keyword == 'currency converter'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/CurrencyConverter.html";
	  }else if((keyword == 'holiday list'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/HolidayList.html";
	  }else if((keyword == 'useful links'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/Usefullinks.html";
	  }else if((keyword == 'disclaimer'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/Disclaimer.html";
	  }
	  else if((keyword == 'privacy policy'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/PrivacyPolicy.html";
	  }else if((keyword == 'terms of use')||(keyword == 'terms and conditions'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/TermsofUse.html";
	  }else if((keyword == 'hawb'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/HAWB.html";
	  }else if((keyword == 'standard trading instruction'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/StandardTradingInstruction.html";
	  }else if((keyword == 'can')||(keyword == 'can instructions'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/CANInstruction.html";
	  }
	   else if((keyword == 'site map')||(keyword == 'sitemap'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/SiteMap.html";
	  }
	  else if((keyword == 'feedback'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/Feedbcak.html";
	  }else if((keyword == 'downloads')||(keyword == 'documents')||(keyword == 'atlas presentation')||(keyword == 'export transport logistics cost')||(keyword == 'atlas office details')||(keyword == 'office details')||(keyword == 'presentation'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/Downloads.html";
	  }else if((keyword == 'photo')||(keyword == 'photos')||(keyword == 'gallery')||(keyword == 'photo gallery'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/PhotoGallery.html";
	  }
	  else if((keyword == 'technology')||(keyword == 'tracker system'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/technology.html";
	  }
	  else if((keyword == 'contact us')||(keyword == 'branches'))
	  {
      document.location.href="http://www.atlaslogistics.co.in/ContactUs.html";
	  }
}

function traslate(val)
{//alert(val.value); 
if(val.value=='zh-CN')
{
document.location.href="http://72.14.235.104/translate_c?hl=zh&ie=UTF-8&oe=UTF-8&langpair=en%7Czh&u=http://www.atlaslogistics.co.in/&prev=/language_tools&usg=ALkJrhiTp9sUkGsQEwOv_sfycYRxnaWMZg";
}else if(val.value=='it')
{
document.location.href="http://72.14.235.104/translate_c?hl=zh&ie=UTF-8&oe=UTF-8&langpair=en%7Cit&u=http://www.atlaslogistics.co.in/&prev=/language_tools&usg=ALkJrhiTp9sUkGsQEwOv_sfycYRxnaWMZg";
}
google.setOnLoadCallback(translate);

}else if(val.value=='ja')
{
document.location.href="http://72.14.235.104/translate_c?hl=ja&ie=UTF-8&oe=UTF-8&langpair=en%7Cja&u=http://www.atlaslogistics.co.in/&prev=/language_tools&usg=ALkJrhijf8f0Ne2PaXJD6MMH829Xcs0lVA";
}else if(val.value=='ko')
{
document.location.href="http://72.14.235.104/translate_c?hl=ko&ie=UTF-8&oe=UTF-8&langpair=en%7Cko&u=http://www.atlaslogistics.co.in/&prev=/language_tools&usg=ALkJrhgZyj-i_YibsD5VxPXFqGpDJllrBg";
}else if(val.value=='en')
{
document.location.href="http://www.atlaslogistics.co.in";
}
 

}