PageSourceSearch

https://www.travelojordan.com/template/themes/exploringtourism/js/client5.js

js travelojordan.com collected 2026-10-03 02:40:52 UTC 27,762 bytes, 809 lines download raw bytes

1var ajaxConn = new XHConn();
2var siteUrl=window.location.href;
3siteUrl=siteUrl.substring(0,siteUrl.lastIndexOf('/'))+"/";
4 
5//siteUrl = themepath;
6/*
7var ht_url = self.location.href;
8ht_url = ht_url.toLowerCase();
9
10// determine the server   
11
12
13var ht_local = 'localhost:8080/';
14var ht_ip = '192.168.1.49/';
15var ht_test_url = '174.121.38.67/~ambikato/';
16var ht_live = 'www.ambikatours.com/';
17var ht_live_ambika = 'www.ambikatours.com/';
18
19if(ht_url.lastIndexOf(ht_local) > 1)
20	siteUrl = "http://localhost:8080/ambikatours/";
21else if(ht_url.lastIndexOf(ht_ip) > 1)
22	siteUrl = "http://192.168.1.49/ambikatours/";
23else if(ht_url.lastIndexOf(ht_test_url) > 1)
24	siteUrl = "http://174.121.38.67/~ambikato/";
25else if(ht_url.lastIndexOf(ht_live) > 1)
26	siteUrl = "http://www.ambikatours.com/";
27else if(ht_url.lastIndexOf(ht_live_ambika) > 1)
28	siteUrl = "http://www.ambikatours.com/";
29*/	
30//siteUrl = "http://www.travelozimbabwe.com/template/themes/travelozimbawe/"
31//alert(siteUrl);
32
33var prSpliter='<!!>';
34var idSpliter='<!ids!>';
35var rowSpliter='<!rows!>';
36var senderObj;
37var recevierObj;
38var selectText="Select";
39
40var totalText="Total";
41var recordsText="Records";
42
43/******************************************* Common Function ************************************************/
44function getObjwarehouse(objID) 
45{
46	if (document.getElementById)
47	{
48		if (document.getElementById(objID)==null)
49			return window.parent.document.getElementById(objID);			
50		
51		return document.getElementById(objID)
52	}
53	else if (document.all)
54	{
55		if (document.all(objID)==null)
56			return window.parent.document.all[objID];
57		
58		return document.all[objID];
59	}
60	else if (document.layers)
61	{
62		if (document.layers(objID)==null)
63			return window.parent.document.layers[objID];
64		
65		return document.layers[objID];
66	}
67}
68
69function txtnavigate(pagename,qstr,recinpage,totpage,pagenow)
70{
71	
72	gotopage = getObjwarehouse('txtpno').value;
73	if (gotopage > totpage || gotopage <= 0)
74	{
75		getObjwarehouse('txtpno').value = pagenow;
76	}
77	else
78	{
79		
80		rstart = (gotopage * recinpage) - recinpage;
81		
82		//alert(qstr+rstart);
83		ajxSearch(pagename,qstr+rstart);
84	}
85}
86
87
88/*function emptyList(empRecObj)
89{
90	if(getObjwarehouse(empRecObj))
91	{
92		for(i=1;i<(getObjwarehouse(empRecObj).options.length+1);i++)
93		{
94			getObjwarehouse(empRecObj).remove(i-1);
95			i--;
96		}
97		var optionObject=new Option("Select");
98		var optionRank=getObjwarehouse(empRecObj).options.length;
99		getObjwarehouse(empRecObj).options[optionRank]=optionObject;
100		getObjwarehouse(empRecObj).options[optionRank].value=0;
101	}
102}*/
103function emptyList(recevierObj)
104{
105	for(i=1;i<(getObj(recevierObj).options.length+1);i++)
106	{
107		getObj(recevierObj).remove(i-1);
108		i--;
109	}
110}
111/******************************************* End Common Function ************************************************/
112
113function ajxSearch(pname,searchId)
114{
115	getObjwarehouse("divResult").innerHTML="Loading <img src='load.gif' />";
116	var ajaxConn = new XHConn();
117	var siteUrl=window.location.href;
118	siteUrl=siteUrl.substring(0,siteUrl.lastIndexOf('/'))+"/";
119	ajaxConn.connect(siteUrl+pname, "POST", searchId,fnWhenDone_x);
120}
121
122function fnWhenDone_x(XML)
123{
124	getObjwarehouse("divResult").innerHTML=XML.responseText;
125}
126
127function hideMsg()
128{
129	if(getObjwarehouse("divAddMsg"))
130		getObjwarehouse("divAddMsg").style.display="none";
131	if(getObjwarehouse("divUpMsg"))
132		getObjwarehouse("divUpMsg").style.display="none";
133	if(getObjwarehouse("divConfMsg"))
134		getObjwarehouse("divConfMsg").style.display="none";
135	if(getObjwarehouse("divDelMsg"))
136		getObjwarehouse("divDelMsg").style.display="none";
137	if(getObjwarehouse("divPODMsg"))
138		getObjwarehouse("divPODMsg").style.display="none";
139}
140
141function divswitch(pname,searchId,textBoxId)
142{
143	if(searchId!=1)
144	{
145		getObjwarehouse("divAdd").style.display="";
146		ajxAdd(pname,searchId)
147	}
148	else
149	{
150		if(getObjwarehouse(textBoxId))
151			getObjwarehouse(textBoxId).value="";
152		if(getObjwarehouse("order_no"))
153			getObjwarehouse("order_no").value="";
154		getObjwarehouse("divTable").style.display="";
155		getObjwarehouse("divAdd").style.display="none";
156	}
157}
158
159function ajxAdd(pname,searchId)
160{
161 	getObjwarehouse("divTable").style.display="none";
162	getObjwarehouse("divAdd").style.display="block";
163	getObjwarehouse("divAdd").innerHTML="Loading <img src='load.gif' />";
164	var ajaxConn = new XHConn();
165	var siteUrl=window.location.href;
166	siteUrl=siteUrl.substring(0,siteUrl.lastIndexOf('/'))+"/";
167	ajaxConn.connect(siteUrl+pname, "POST", searchId,fnWhenDone_Add);
168}
169
170function fnWhenDone_Add(XML)
171{
172	getObjwarehouse("divAdd").innerHTML=XML.responseText;
173}
174
175
176/***************************************************** Start Login *********************************************/
177function submitLogin(formName,valGroup)
178{	
179	if(eval(getFormElement(formName,valGroup)))
180	{
181		document.login.submit();
182	}
183}
184
185// return str.replace(/^[\s]+/,'').replace(/[\s]+$/,'').replace(/[\s]{2,}/,' ');}
186// return str.replace(/^\s+|\s+$/g,"");
187
188/*function trim(str){
189	if(!str || typeof str != 'string')   return null;  else return (str.replace(/^\s+|\s+$/g,"")); }*/
190	
191function checkBlank()
192{	
193	if (getObjwarehouse("newpassword").value.indexOf(' ') != -1)
194		return false;
195	else
196		return true;
197}
198
199function CheckMinLength()
200{
201	
202		if(getObjwarehouse("newpassword").value.length<6)
203			return false;
204		else 
205			return true;
206}
207
208/***************************************************** End Login *********************************************/
209
210function checkAll(recPerPage)
211{
212	for (i=1;i<=recPerPage;i++)
213	{
214		var chkbx = "chk" + i; 
215		if (getObjwarehouse(chkbx))
216		{
217			if (getObjwarehouse('chkall').checked == true)
218			{
219				getObjwarehouse(chkbx).checked = true;
220			}
221			else
222			{
223				getObjwarehouse(chkbx).checked = false;
224			}
225		}
226	}
227}
228
229
230function changeIdVal(getval)
231{
232	getval1 =	getval.split(",");
233	getObjwarehouse("hidlid").value=getval1[1];
234	getObjwarehouse("hidelidedit").value=getval1[0];
235}
236
237/*******************************************************NEW************************************************************/
238
239function ajaxContentSearch(pname,searchId)
240{
241	//ShowLoadingModalNew();
242	getObjwarehouse("divResult").innerHTML="Loading <img src='load.gif' />";
243	ajaxConn.connect(siteUrl+pname, "POST", searchId,fnWhenDone_ajaxContentSearch);
244}
245
246function fnWhenDone_ajaxContentSearch(XML)
247{
248	//alert(XML.responseText);
249	getObjwarehouse("divResult").innerHTML="";
250	getObjwarehouse("divResult").style.display="block";	
251	getObjwarehouse("divResult").innerHTML=XML.responseText;
252	//HideLoadingModalNew();
253}
254
255function checkLength(ctrlID)
256{
257	if(getObjwarehouse(ctrlID).value.length>50)
258		return false;
259	return true;
260}
261
262
263
264function CollapseSearchSection()
265    {
266
267        $("#divSearch").slideToggle("slow");
268       
269        $(this).toggleClass("active");
270    
271    } 
272
273/******************************Subcriber Master**************************/
274function sumbitSubcriber(formName,valGroup)
275{	
276	if(eval(getFormElement(formName,valGroup)))
277	{	
278		document.frmsubcribe.submit();
279	}
280}
281/***********Submit Form ******* */
282function sumbitFormClient(formName,valGroup)
283{	
284	//alert(document.getElementById('hidpageno'+frmname).value);
285	var frmname = formName.name;
286	//alert(formName.name);
287	if(eval(getFormElement(formName,valGroup)))
288	{	
289		//document.obj.submit();
290		document.getElementById('hidpageno'+frmname).value = 1;
291		$('#'+frmname).submit();
292	}
293}
294/*************For Pagig Nation***************/
295function getPagedestID(a,country,city)
296{  
297		document.getElementById('hidpageno').value = a;
298		document.getElementById('hidcountry').value = country;
299		document.getElementById('hidcity').value = city;
300		if(document.getElementById('hidcity2'))
301		document.getElementById('hidcity2').value = city;
302
303		document.getElementById('destsearch').action = "destinations/" + a;
304		
305		jQuery('#'+'destsearch').submit();
306		return false;
307}
308/*************For Pagig Nation***************/
309function getPageactID(a,country,city)
310{  
311		document.getElementById('ddlbuddhistcountry2').value = country;
312		document.getElementById('ddlbuddhistcity2').value = city;
313		
314
315		document.getElementById('frmactivities').action = "activities/";
316		
317		jQuery('#'+'frmactivities').submit();
318		return false;
319}
320
321function getPagedestnav(a)
322{
323		document.getElementById('hidpageno').value = a;
324		//document.getElementById('hidcountry').value = country;
325		//document.getElementById('hidcity').value = city;
326		
327
328		//document.getElementById('destsearch').action = "places-to-visit/" + a + "/";
329		
330		//$('#'+'destsearch').submit();
331		
332		window.location.href="places-to-visit/" + a + "/";
333		
334		return false;
335}
336
337function getPageID(a,Objform)
338{
339		//alert(a);
340		
341		var frmname = Objform.name ;
342		//alert(frmname);
343		//frmname.elements['hidpageno'].value = a;
344		document.getElementById('hidpageno'+frmname).value = a;
345		if(frmname == "frmpackages")
346		{
347			document.getElementById(frmname).action = "tours/" + a + "/";
348			window.location.href="tours/" + a + "/";
349		}
350		if(frmname == "frmsights")
351		{
352			document.getElementById(frmname).action = "sightseeing/" + a + "/";
353			window.location.href="sightseeing/" + a + "/";
354		}
355		if(frmname == "frmactivities")
356		{
357			document.getElementById(frmname).action = "activities/" + a + "/";
358			window.location.href="activities/" + a + "/";
359		}
360		if(frmname == "frmhotal")
361		{
362			document.getElementById(frmname).action = "hotels/" + a + "/";
363			window.location.href="hotels/" + a + "/";
364		}
365		if(frmname == "frmticket")
366		{
367			document.getElementById(frmname).action = "air-tickets/" + a + "/";
368			window.location.href="air-tickets/" + a + "/";
369		}
370		//SearchTickets();
371		//alert(frmname);
372		//document.frmticket.submit();
373		//$('#'+frmname).submit();
374		return false;
375}
376
377function ActiveFlashClass(id,li_id)
378{
379	
380	if(li_id=='frmticket'){
381		//alert(document.getElementById('mnhotal'));
382		document.getElementById('divmnhotal').innerHTML="<a href='#' onclick=\"return ActiveFlashClass(this.name,'frmhotal');\" id='mnhotal' name='mnhotal'>Hotels</a>";
383		document.getElementById('divmnticket').innerHTML="<a href='#' class='active' onclick=\"return ActiveFlashClass(this.name,'frmticket');\" id='mnticket' name='mnticket'>Air Tickets</a>";
384		document.getElementById('divmnpackage').innerHTML="<a href='#' onclick=\"return ActiveFlashClass(this.name,'frmpackages');\" id='mnpackage' name='mnpackage'>Tour Packages</a>";
385		document.getElementById('divsight').innerHTML="<a href='#' onclick=\"return ActiveFlashClass(this.name,'frmsights');\" id='sight' name='sight'>Sightseeing</a>";
386		document.getElementById('divtravel').innerHTML="<a href='#' onclick=\"return ActiveFlashClass(this.name,'frmactivities');\" id='travel' name='travel'>Travel Activities</a>";
387	}
388	else if(li_id=='frmhotal'){
389		document.getElementById('divmnhotal').innerHTML="<a href='#' class='active' onclick=\"return ActiveFlashClass(this.name,'frmhotal');\" id='mnhotal' name='mnhotal'>Hotels</a>";
390		document.getElementById('divmnticket').innerHTML="<a href='#'  onclick=\"return ActiveFlashClass(this.name,'frmticket');\" id='mnticket' name='mnticket'>Air Tickets</a>";
391		document.getElementById('divmnpackage').innerHTML="<a href='#' onclick=\"return ActiveFlashClass(this.name,'frmpackages');\" id='mnpackage' name='mnpackage'>Tour Packages</a>";
392		document.getElementById('divsight').innerHTML="<a href='#' onclick=\"return ActiveFlashClass(this.name,'frmsights');\" id='sight' name='sight'>Sightseeing</a>";
393		document.getElementById('divtravel').innerHTML="<a href='#' onclick=\"return ActiveFlashClass(this.name,'frmactivities');\" id='travel' name='travel'>Travel Activities</a>";
394  }
395	else if(li_id=='frmpackages'){
396		document.getElementById('divmnhotal').innerHTML="<a href='#' onclick=\"return ActiveFlashClass(this.name,'frmhotal');\" id='mnhotal' name='mnhotal'>Hotels</a>";
397		document.getElementById('divmnticket').innerHTML="<a href='#' onclick=\"return ActiveFlashClass(this.name,'frmticket');\" id='mnticket' name='mnticket'>Air Tickets</a>";
398		document.getElementById('divmnpackage').innerHTML="<a href='#' class='active' onclick=\"return ActiveFlashClass(this.name,'frmpackages');\" id='mnpackage' name='mnpackage'>Tour Packages</a>";
399		document.getElementById('divsight').innerHTML="<a href='#' onclick=\"return ActiveFlashClass(this.name,'frmsights');\" id='sight' name='sight'>Sightseeing</a>";
400		document.getElementById('divtravel').innerHTML="<a href='#' onclick=\"return ActiveFlashClass(this.name,'frmactivities');\" id='travel' name='travel'>Travel Activities</a>";
401	}
402	else if(li_id=='frmsights'){
403		document.getElementById('divmnhotal').innerHTML="<a href='#' onclick=\"return ActiveFlashClass(this.name,'frmhotal');\" id='mnhotal' name='mnhotal'>Hotels</a>";
404		document.getElementById('divmnticket').innerHTML="<a href='#' onclick=\"return ActiveFlashClass(this.name,'frmticket');\" id='mnticket' name='mnticket'>Air Tickets</a>";
405		document.getElementById('divmnpackage').innerHTML="<a href='#' onclick=\"return ActiveFlashClass(this.name,'frmpackages');\" id='mnpackage' name='mnpackage'>Tour Packages</a>";
406		document.getElementById('divsight').innerHTML="<a href='#' class='active' onclick=\"return ActiveFlashClass(this.name,'frmsights');\" id='sight' name='sight'>Sightseeing</a>";
407		document.getElementById('divtravel').innerHTML="<a href='#' onclick=\"return ActiveFlashClass(this.name,'frmactivities');\" id='travel' name='travel'>Travel Activities</a>";
408	}
409	else if(li_id=='frmactivities'){
410		document.getElementById('divmnhotal').innerHTML="<a href='#' onclick=\"return ActiveFlashClass(this.name,'frmhotal');\" id='mnhotal' name='mnhotal'>Hotels</a>";
411		document.getElementById('divmnticket').innerHTML="<a href='#' onclick=\"return ActiveFlashClass(this.name,'frmticket');\" id='mnticket' name='mnticket'>Air Tickets</a>";
412		document.getElementById('divmnpackage').innerHTML="<a href='#' onclick=\"return ActiveFlashClass(this.name,'frmpackages');\" id='mnpackage' name='mnpackage'>Tour Packages</a>";
413		document.getElementById('divsight').innerHTML="<a href='#' onclick=\"return ActiveFlashClass(this.name,'frmsights');\" id='sight' name='sight'>Sightseeing</a>";
414		document.getElementById('divtravel').innerHTML="<a href='#' class='active' onclick=\"return ActiveFlashClass(this.name,'frmactivities');\" id='travel' name='travel'>Travel Activities</a>";
415	}
416	
417	//--Display li Contain-----
418	document.getElementById('frmticket').style.display='none' ;
419	document.getElementById('frmhotal').style.display='none' ;
420	<!--document.getElementById('frmtransport').style.display='none' ;-->
421	document.getElementById('frmcityTour').style.display='none' ;
422	document.getElementById('frmthaigolf').style.display='none' ;
423	document.getElementById('frmpackages').style.display='none' ;
424	document.getElementById('frmsights').style.display='none' ;
425	document.getElementById('frmactivities').style.display='none' ;
426	document.getElementById(li_id).style.display = '' ;
427	
428	return false;
429}
430
431function GetCity(a,cityid,divname,menu)
432{ 
433
434  // alert(menu);
435   $(function() {//When the Dom is ready
436	$.ajax({//Make the Ajax Request
437	type: "POST",
438	url: siteUrl+"ajex_pages/getCity.php",
439	data: "CntId="+a+"&CityId="+cityid+"&menu="+menu,
440	
441	beforeSend:  function() { 
442	$('div#wait').html('<img src="../images/loading.gif" border="0" />');//Loading image during the Ajax Request
443	},
444	success: function(html){//html = the server response html code
445	$("#wait").remove();
445//Remove the div with id=more 
446	$("div#"+divname).html(html);//Add the html returned by the server .
447	//alert(html);
448	}
449	});
450
451return false;
452});
453
454//GetItems(a);
455}
456
457function GetHotelSearchData(divname,menu)
458{ 
459//alert(menu);
460	if(menu == 'airtecket')
461	{
462	 // var a= document.getElementById('ddlcountryhotel').value;
463	  var depcityid= document.getElementById('ddldepcity').value;
464	// alert(depcityid);
465	  var Destcityid= document.getElementById('ddldestcity').value;
466	  var flightid= document.getElementById('ddlflightname').value;
467	}
468	
469	
470	if(menu == 'hotel')
471	{
472	  var a= document.getElementById('ddlcountryhotel').value;
473	  var cityid= document.getElementById('ddlhotelcity').value;
474	  var starid= document.getElementById('ddlhotalstar').value;
475	}
476	
477	if(menu == 'citytour')
478	{
479	  var a= document.getElementById('ddlcitytourcountry').value;
480	  var cityid= document.getElementById('ddlcityCitytour').value;
481	  var catid= document.getElementById('ddlcitytourcat').value;
482	}
483	if(menu == 'buddhist')
484	{
485	  var a= document.getElementById('ddlbuddhistcountry').value;
486	  var cityid= document.getElementById('ddlbuddhistcity').value;
487	  var DepDate= document.getElementById('ddlDepDate').value;
488	  var catid = document.getElementById('ddlToursCat').value;
489	}
490	if(menu == 'sight')
491	{
492	  var a= document.getElementById('ddlbuddhistcountry1').value;
493	  var cityid= document.getElementById('ddlbuddhistcity1').value;
494	  var DepDate= document.getElementById('ddlDepDate1').value;
495	  var catid = document.getElementById('ddlToursCat1').value;
496	}
497	if(menu == 'travel')
498	{
499	  var a= document.getElementById('ddlbuddhistcountry2').value;
500	  var cityid= document.getElementById('ddlbuddhistcity2').value;
501	  var DepDate= document.getElementById('ddlDepDate2').value;
502	  var catid = document.getElementById('ddlToursCat2').value;
503	}
504	if(menu == 'thaigolf')
505	{
506	  var a= document.getElementById('ddlthaigolfcountry').value;
507	  var cityid= document.getElementById('ddlthaigolfcity').value;
508	  var Cname= document.getElementById('ddlCourseName').value;
509	}
510	
511 // alert("test");
512   $(function() {//When the Dom is ready
513	$.ajax({//Make the Ajax Request
514	type: "POST",
515	url: siteUrl+"ajex_pages/getHotelData.php",
516	data: "CntId="+a+"&CityId="+cityid+"&starid="+starid+"&catid="+catid+"&menu="+menu+"&catid="+catid+"&DepDate="+DepDate+"&Cname="+Cname+"&depcityid="+depcityid+"&Destcityid="+       Destcityid+"&flightid="+flightid,
517	beforeSend:  function() { 
518	$('div#wait').html('<img src="../images/loading.gif" border="0" />');//Loading image during the Ajax Request
519	},
520	success: function(html){//html = the server response html code
521	$("#wait").remove();//Remove the div with id=more 
522	$("div#"+divname).html(html);//Add the html returned by the server .
523	//alert(html);
524	}
525	});
526
527return false;
528});
529
530//GetItems(a);
531}
532
533function GetHomeSearchData(divname,menu)
534{ 
535 // alert(menu);
536	if(menu == 'airtecket')
537	{
538	 // var a= document.getElementById('ddlcountryhotel').value;
539	  var depcityid= document.getElementById('ddldepcity').value;
540	// alert(depcityid);
541	  var Destcityid= document.getElementById('ddldestcity').value;
542	  var flightid= document.getElementById('ddlflightname').value;
543	}
544	
545	
546	if(menu == 'hotel')
547	{
548	  var a= document.getElementById('ddlcountryhotel').value;
549	  var cityid= document.getElementById('ddlhotelcity').value;
550	  var starid= document.getElementById('ddlhotalstar').value;
551	}
552	
553	if(menu == 'citytour')
554	{
555	  var a= document.getElementById('ddlcitytourcountry').value;
556	  var cityid= document.getElementById('ddlcityCitytour').value;
557	  var catid= document.getElementById('ddlcitytourcat').value;
558	}
559	if(menu == 'buddhist')
560	{
561	  var a= document.getElementById('ddlbuddhistcountry').value;
562	  var cityid= document.getElementById('ddlbuddhistcity').value;
563	  var DepDate= document.getElementById('ddlDepDate').value;
564	  var catid = document.getElementById('ddlToursCat').value;
565	}
566	if(menu == 'sight')
567	{
568	  var a= document.getElementById('ddlbuddhistcountry1').value;
569	  var cityid= document.getElementById('ddlbuddhistcity1').value;
570	  var DepDate= document.getElementById('ddlDepDate1').value;
571	  var catid = document.getElementById('ddlToursCat1').value;
572	}
573	if(menu == 'travel')
574	{
575	  var a= document.getElementById('ddlbuddhistcountry2').value;
576	  var cityid= document.getElementById('ddlbuddhistcity2').value;
577	  var DepDate= document.getElementById('ddlDepDate2').value;
578	  var catid = document.getElementById('ddlToursCat2').value;
579	}
580	if(menu == 'thaigolf')
581	{
582	  var a= document.getElementById('ddlthaigolfcountry').value;
583	  var cityid= document.getElementById('ddlthaigolfcity').value;
584	  var Cname= document.getElementById('ddlCourseName').value;
585	}
586	
587 // alert("test");
588   $(function() {//When the Dom is ready
589	$.ajax({//Make the Ajax Request
590	type: "POST",
591	url: siteUrl+"ajex_pages/getHomeSearchData.php",
592	data: "CntId="+a+"&CityId="+cityid+"&starid="+starid+"&menu="+menu+"&catid="+catid+"&DepDate="+DepDate+"&Cname="+Cname+"&depcityid="+depcityid+"&Destcityid="+Destcityid+"&flightid="+flightid,
593	beforeSend:  function() { 
594	$('div#wait').html('<img src="../images/loading.gif" border="0" />');//Loading image during the Ajax Request
595	},
596	success: function(html){//html = the server response html code
597	$("#wait").remove();
597//Remove the div with id=more 
598	$("div#"+divname).html(html);//Add the html returned by the server .
599	//alert(html);
600	}
601	});
602
603return false;
604});
605
606//GetItems(a);
607}
608
609
610
611function sumbitFormClientQuery(formName,type,rsid,typesof)
612{	
613	
614	var frmname = formName.name;
615	//alert(frmname);
616	if(type == 'first')
617	{
618	  document.getElementById('rtype'+rsid).value = 	document.getElementById('rtype'+rsid).value +document.getElementById('first'+frmname).value ;		
619	}
620	else if(type == 'business')
621	{
622		document.getElementById('rtype'+rsid).value = 	document.getElementById('rtype'+rsid).value +document.getElementById('business'+frmname).value ;	 		
623	}
624	else if(type == 'economy')
625	{
626		document.getElementById('rtype'+rsid).value = 	document.getElementById('rtype'+rsid).value +document.getElementById('economy'+frmname).value ;	 		
627	}
628	document.getElementById(frmname).action = "contact-us.php?typesof="+typesof+"&id="+rsid;
629	
630	$('#'+frmname).submit();
631	
632	
633}
634function submitHotalClientQuery(formName,type,rsid,typesof)
635{	
636	//alert("test");
637	var frmname = formName.name;
638	
639	document.getElementById(frmname).action = "contact-us.php?typesof="+typesof+"&id="+rsid;
640	
641	$('#'+frmname).submit();
642	
643	
644}
645
646
647function submitcontact(formName,valGroup)
648{	
649	if(eval(getFormElement(formName,valGroup)))
650	{	
651		document.contact.submit();
652	}
653}
654
655function fillCityByCon()
656{
657	var country=getObjwarehouse("country").value;
658	
659	//ShowLoadingModal("city",30,"City");
660	ajaxConn.connect(siteUrl+"cityfill.php", "POST", "country="+country,fnWhenDone_fillCityByCon);
661}
662
663function fnWhenDone_fillCityByCon(XML)
664{
665	//alert(XML.responseText);
666	emptyList("city");
667	var arrStatus=XML.responseText.split(",");
668	
669	var optionObject=new Option("Select City");
670	var optionRank=getObjwarehouse("city").options.length;
671	getObjwarehouse("city").options[optionRank]=optionObject;
672	getObjwarehouse("city").options[optionRank].value=0;
673	//alert(arrStatus.length);
674	for(k=0;k<(arrStatus.length-1);k++)
675	{
676		var arrCity = arrStatus[k].split("<!!>");
677		//alert(arrCity[0]);alert(arrCity[1]);
678		var optionObject=new Option(arrCity[1]);
679		var optionRank=getObjwarehouse("city").options.length;
680		getObjwarehouse("city").options[optionRank]=optionObject;
681		getObjwarehouse("city").options[optionRank].value=arrCity[0];
682		
683		
684		//if(cityVal==arrStatus[k])
685		//	getObjwarehouse("city").options[optionRank].selected=true;
686		
687	}
688	//HideLoadingModal();	
689}
690
691function transportcontact(type,name,price)
692{
693//alert(type);
694var typesof,type,name,price;
695	getObjwarehouse("hidtype").value=type;
696	getObjwarehouse("hidname").value=name;
697	getObjwarehouse("hidprice").value=price;
698	document.transport.action="contact-us.php?typesof=transport";
699	document.transport.submit();
700}
701function submitcontactcity(tourname,countryid,cityid,days,night,tourcat)
702{
703	var tourname,countryid,cityid,days,night,typesof;
704	getObjwarehouse("hidtourname").value=tourname;
705	getObjwarehouse("hidctry").value=countryid;
706	getObjwarehouse("hidcity").value=cityid;
707	getObjwarehouse("hiddays").value=days;
708	getObjwarehouse("hidnight").value=night;
709	getObjwarehouse("hidtourcat").value=tourcat;
710	document.citycontact.action="contact-us.php?typesof=city";
711	document.citycontact.submit();
712}
713
714function submitcontactbuddhist(tourname,countryid,cityid,days,night,tourcat)
715{
716
717	var tourname,countryid,cityid,days,night,tourcat;
718	getObjwarehouse("hidtourname").value=tourname;
719	getObjwarehouse("hidctry").value=countryid;
720	getObjwarehouse("hidcity").value=cityid;
721	getObjwarehouse("hiddays").value=days;
722	getObjwarehouse("hidnight").value=night;
723	getObjwarehouse("hidtourcat").value=tourcat;
724	document.buddhistcontact.action="contact-us.php?typesof=buddhist";
725	document.buddhistcontact.submit();
726}
727
728function submitthaigolf(tourname,countryid,cityid,days,night,tourcat)
729{
730
731	var tourname,countryid,cityid,days,night,tourcat;
732	getObjwarehouse("hidtourname").value=tourname;
733	getObjwarehouse("hidctry").value=countryid;
734	getObjwarehouse("hidcity").value=cityid;
735	getObjwarehouse("hiddays").value=days;
736	getObjwarehouse("hidnight").value=night;
737	getObjwarehouse("hidtourcat").value=tourcat;
738	document.golfcontact.action="contact-us.php?typesof=thaigolf";
739	document.golfcontact.submit();
740}
741
742
743function saveEmail(formName,valGroup,url)
744{
745		var txtsubcribername = getObjwarehouse("txtsubcribername").value;
746		var txtsubcriberemail = getObjwarehouse("txtsubcriberemail").value;
747		var txtwcaptcha_subscriber = getObjwarehouse("txtwcaptcha_subscriber").value;
748		var captcha_num1_subscriber = getObjwarehouse("captcha_num1_subscriber").value;
749		var captcha_num2_subscriber = getObjwarehouse("captcha_num2_subscriber").value;
750		
751		
752		
753		if(txtsubcriberemail == '')
754		 {
755		   alert("Please enter subscriber email.");
756		   return false;
757		 }
758		else if(txtsubcriberemail.lastIndexOf('@')==-1 ||txtsubcriberemail.lastIndexOf('@')==-1)
759		 {
760		   alert("Please enter valid subscriber email.");
761		   return false;
762		 }
763		else if(txtwcaptcha_subscriber == '')
764		 {
765		   alert("Please enter captcha.");
766		   return false;
767		 }
768		 
769		 if(ValidBotBootSubscriber()){
770		//getObjwarehouse("response_div").style.display="none";
771		 //if(email_subscribe != "Enter your email address" && email_subscribe!="")
772		// {  
773		
774		   //ajaxConn.connect(siteUrl+"subscrib_email.php", "POST", "txtsubcribername="+txtsubcribername+"&txtsubcriberemail="+txtsubcriberemail,fnWhenDone_saveEmail);
775
776		 ajaxConn.connect(url+"subscrib_email.php", "POST", "txtsubcribername="+txtsubcribername+"&txtsubcriberemail="+txtsubcriberemail+"&txtwcaptcha_subscriber="+txtwcaptcha_subscriber+"&captcha_num1_subscriber="+captcha_num1_subscriber+"&captcha_num2_subscriber="+captcha_num2_subscriber,fnWhenDone_saveEmail);
777
778		// }
779		/* else
780		 {
781			getObjwarehouse("response_div").style.display="";
782			getObjwarehouse("response_div").innerHTML="No email address provided"; 
783		 }*/
784		 }
785		 else{
786			 alert("Please enter valid captcha.");
787			return false;
788		 }
789	 
790}
791
792function fnWhenDone_saveEmail(XML)
793{
794var getUrl = window.location;
795var baseUrl = getUrl .protocol + "//" + getUrl.host;
796//alert(baseUrl);
797	if("You have successfully subscribed." == XML.responseText)
798	{
799		window.location=baseUrl+"/thanks-subscribe/";
800	}
801	else{
802		alert(XML.responseText);
803		//getObjwarehouse("txtsubcribername").value='';
804		//getObjwarehouse("txtsubcriberemail").value='';
805	/*	getObjwarehouse("response_div").innerHTML="";
806		getObjwarehouse("response_div").style.display="";
807	    getObjwarehouse("response_div").innerHTML=XML.responseText;*/
808    }
809}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.