function searchByPost1()
{

  var query1Value = $('#querysearch').val();
 
  var formurl=window.location.href;
  if((formurl.indexOf("au.michelin.dev")>0) || (formurl.indexOf("au.phluency.com")>0) || (formurl.indexOf("www.michelin.com.au")>0))
	 $('#searchForm1').attr("action","/au-search/search.jsp");

  if((formurl.indexOf("id.michelin.dev")>0) || (formurl.indexOf("id.phluency.com")>0) || (formurl.indexOf("michelin.co.id")>0))
	$('#searchForm1').attr("action","/id-search/search.jsp");
  if((formurl.indexOf("my.michelin.dev")>0) || (formurl.indexOf("my.phluency.com")>0) || (formurl.indexOf("michelin.com.my")>0))
	$('#searchForm1').attr("action","/my-search/search.jsp");
  if((formurl.indexOf("sg.michelin.dev")>0) || (formurl.indexOf("sg.phluency.com")>0) || (formurl.indexOf("michelin.com.sg")>0))
	$('#searchForm1').attr("action","/sg-search/search.jsp");
  if((formurl.indexOf("in.michelin.dev")>0) || (formurl.indexOf("in.phluency.com")>0) || (formurl.indexOf("michelin.in")>0))
	$('#searchForm1').attr("action","/in-search/search.jsp");
  if((formurl.indexOf("ph.michelin.dev")>0) || (formurl.indexOf("ph.phluency.com")>0) || (formurl.indexOf("michelin.com.ph")>0))
	$('#searchForm1').attr("action","/ph-search/search.jsp");
  if((formurl.indexOf("nz.michelin.dev")>0) || (formurl.indexOf("nz.phluency.com")>0) || (formurl.indexOf("michelin.co.nz")>0))
	$('#searchForm1').attr("action","/nz-search/search.jsp");
  if((formurl.indexOf("tw.michelin.dev")>0) || (formurl.indexOf("tw.phluency.com")>0) || (formurl.indexOf("michelin.com.tw")>0))
	$('#searchForm1').attr("action","/tw-search/search.jsp");
  if((formurl.indexOf("kr.michelin.dev")>0) || (formurl.indexOf("kr.phluency.com")>0) || (formurl.indexOf("michelin.co.kr")>0))
	$('#searchForm1').attr("action","/kr-search/search.jsp");
  if((formurl.indexOf("vn.michelin.dev")>0) || (formurl.indexOf("vn.phluency.com")>0) || (formurl.indexOf("michelin.vn")>0))
	$('#searchForm1').attr("action","/vn-search/search.jsp");

  if((formurl.indexOf("th.michelin.dev.new/tha/")>0) || (formurl.indexOf("th.phluency.com/tha/")>0) || (formurl.indexOf("michelin.co.th/tha/")>0))
	$('#searchForm1').attr("action","/tha/search/search.jsp");
	if((formurl.indexOf("th.michelin.dev.new/then/")>0) || (formurl.indexOf("th.phluency.com/then/")>0) || (formurl.indexOf("michelin.co.th/then/")>0))
	$('#searchForm1').attr("action","/then/search/search.jsp");
  if((formurl.indexOf("jp.michelin.dev")>0) || (formurl.indexOf("jp.phluency.com")>0) || (formurl.indexOf("michelin.co.jp")>0))
	$('#searchForm1').attr("action","/jp-search/search.jsp");
	if((formurl.indexOf("hk.michelin.dev/hk/")>0) || (formurl.indexOf("hk.phluency.com/hk/")>0) || (formurl.indexOf("michelin.com.hk/hk/")>0))
	$('#searchForm1').attr("action","/hk/search/search.jsp");
	if((formurl.indexOf("hk.michelin.dev/hken/")>0) || (formurl.indexOf("hk.phluency.com/hken/")>0) || (formurl.indexOf("michelin.com.hk/hken/")>0))
	$('#searchForm1').attr("action","/hken/search/search.jsp");
	//TB
	 if((formurl.indexOf("tbau.michelin.dev")>0) || (formurl.indexOf("tbau.phluency.com")>0) || (formurl.indexOf("transport.michelin.com.au")>0))
	 $('#searchForm1').attr("action","/tbau-search/search.jsp");
	 
	 	 if((formurl.indexOf("tbin.michelin.dev")>0) || (formurl.indexOf("tbin.phluency.com")>0) || (formurl.indexOf("www.michelintransport.in")>0))
	 $('#searchForm1').attr("action","/tbin-search/search.jsp");
	 
	 	 	 if((formurl.indexOf("tbid.michelin.dev")>0) || (formurl.indexOf("tbid.phluency.com")>0) || (formurl.indexOf("www.michelintransport.co.id")>0))
	 $('#searchForm1').attr("action","/tbid-search/search.jsp");
	 
	 	 	 if((formurl.indexOf("tbsg.michelin.dev")>0) || (formurl.indexOf("tbsg.phluency.com")>0) || (formurl.indexOf("www.michelintransport.com.sg")>0))
	 $('#searchForm1').attr("action","/tbsg-search/search.jsp");
	 
	 	 	 if((formurl.indexOf("tbph.michelin.dev")>0) || (formurl.indexOf("tbph.phluency.com")>0) || (formurl.indexOf("www.michelintransport.com.ph")>0))
	 $('#searchForm1').attr("action","/tbph-search/search.jsp");
	 
	 	 	 if((formurl.indexOf("tbmy.michelin.dev")>0) || (formurl.indexOf("tbmy.phluency.com")>0) || (formurl.indexOf("www.michelintransport.com.my")>0))
	 $('#searchForm1').attr("action","/tbmy-search/search.jsp");
	 
	 	 	 if((formurl.indexOf("tbvn.michelin.dev")>0) || (formurl.indexOf("tbvn.phluency.com")>0) || (formurl.indexOf("www.michelintransport.com.vn")>0))
	 $('#searchForm1').attr("action","/tbvn-search/search.jsp");
	 
	 	 	 if((formurl.indexOf("tbth.michelin.dev")>0) || (formurl.indexOf("tbth.phluency.com")>0) || (formurl.indexOf("www.transport.michelin.co.th")>0))
	 $('#searchForm1').attr("action","/tbth-search/search.jsp");
	 
	 	 	 if((formurl.indexOf("tbtw.michelin.dev")>0) || (formurl.indexOf("tbtw.phluency.com")>0) || (formurl.indexOf("www.michelintransport.com.tw")>0))
	 $('#searchForm1').attr("action","/tbtw-search/search.jsp");
	 
	 	 	 if((formurl.indexOf("tbkr.michelin.dev")>0) || (formurl.indexOf("tbkr.phluency.com")>0) || (formurl.indexOf("www.michelintransport.co.kr")>0))
	 $('#searchForm1').attr("action","/tbkr-search/search.jsp");
	 	 	 if((formurl.indexOf("tbhk.michelin.dev/tbhkcn")>0) || (formurl.indexOf("tbhk.phluency.com/tbhkcn")>0) || (formurl.indexOf("www.michelintransport.com.hk/tbhkcn")>0))
	 $('#searchForm1').attr("action","/tbhkcn/search/search.jsp");
	 	 	 	 if((formurl.indexOf("tbhk.michelin.dev/tbhken")>0) || (formurl.indexOf("tbhk.phluency.com/tbhken")>0) || (formurl.indexOf("www.michelintransport.com.hk/tbhken")>0))
	 $('#searchForm1').attr("action","/tbhken/search/search.jsp");
   //TW
   	   if((formurl.indexOf("twau.michelin.dev")>0) || (formurl.indexOf("twau.phluency.com")>0) || (formurl.indexOf("motorcycle.michelin.com.au")>0))
	 $('#searchForm1').attr("action","/twau-search/search.jsp");
	    	   if((formurl.indexOf("twap.michelin.dev")>0) || (formurl.indexOf("twap.phluency.com")>0) || (formurl.indexOf("motorcycle.michelin.asia")>0))
	 $('#searchForm1').attr("action","/twap-search/search.jsp");
	    	   if((formurl.indexOf("twin.michelin.dev")>0) || (formurl.indexOf("twin.phluency.com")>0) || (formurl.indexOf("motorcycle.michelin.in")>0))
	 $('#searchForm1').attr("action","/twin-search/search.jsp");
	    	   if((formurl.indexOf("twjp.michelin.dev")>0) || (formurl.indexOf("twjp.phluency.com")>0) || (formurl.indexOf("motorcycle.michelin.co.jp")>0))
	 $('#searchForm1').attr("action","/twjp-search/search.jsp");
	 
  
  document.searchForm1.submit();
}


