function singlepgpoint(peopelgroupid,geographicdataInLatLng)
{
	showLoading(true);
var popent_id=document.getElementById("sel_peoplegroup").value;
var point=geographicdataInLatLng;
var CityPeopleGroupId =peopelgroupid;
var xmlHttp22; 
					         try 
		                     {   // Firefox, Opera 8.0+, Safari
			                   xmlHttp22=new XMLHttpRequest();
		                      }
		                     catch (e)
		                     {
		                      // Internet Explorer
		                       try
			                   {
				                  xmlHttp22=new ActiveXObject("Msxml2.XMLHTTP");
			                     }
		                       catch (e)
			                   {
			                     try
			                     {
				                    xmlHttp22=new ActiveXObject("Microsoft.XMLHTTP");
			                        }
			                       catch (e)
			                       { 
				                     alert("Your browser does not support AJAX!");
				                     return false;
			                        }
			                      } 
		                       }
	                        xmlHttp22.onreadystatechange = function()
		                    {  
				              showLoading(true);
							  document.getElementById("statusDIV").innerHTML = 'Please wait process is going on...';
				              if(xmlHttp22.readyState == 4)
				               {
					                HandleResponse22(xmlHttp22.responseText);
								    //showLoading(false);
				                 }
	                        }
		                    var flag=22; 
		                    xmlHttp22.open("POST", "webservices_ajax.php", true); //pgname=pgcheck; 
		                    xmlHttp22.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
                        xmlHttp22.send('&pgname='+popent_id+'&flag='+flag+'&CityPeopleGroupId='+CityPeopleGroupId+'&point='+point);   
		                    function HandleResponse22(response22) 
		                     {
							   //alert(response22);
		                       var  data =response22;
							   // map.openInfoWindowHtml(point, data);
							   var tabs = [];  // info Tabs container for InfoWindows
			                   var tab_labels = [];			
			                   var htmls = [];
				               tot_html=data.split('+');
					           tab_labels.push('Location'); htmls.push(tot_html[0]);
					           tab_labels.push('Linguistic'); htmls.push(tot_html[1]);
					           tab_labels.push('Cultural'); htmls.push(tot_html[2]);
					           tab_labels.push('Information'); htmls.push(tot_html[3]); 
					           for (var j=0; j < 4; j++) 
					           {
			                      htmls[j] = '<div class="infowindow" style="width:430px;height:100px">' + htmls[j] + '</div>';
			                      tabs.push(new GInfoWindowTab(tab_labels[j],htmls[j]));
		                         } 
							    marker.openInfoWindowTabsHtml(tabs);
								clear_StepsInfo();
							    document.getElementById("statusDIV").innerHTML = "TAB Records found : 1";
							    showLoading(false);
							  }
}

function singlelgpoint(peopelgroupid)
{
var popent_id=document.getElementById("sel_lang").value;

var CityPeopleGroupId =peopelgroupid;
var xmlHttp66; 
					         try 
		                     {   // Firefox, Opera 8.0+, Safari
			                   xmlHttp66=new XMLHttpRequest();
		                      }
		                     catch (e)
		                     {
		                      // Internet Explorer
		                       try
			                   {
				                  xmlHttp66=new ActiveXObject("Msxml2.XMLHTTP");
			                     }
		                       catch (e)
			                   {
			                     try
			                     {
				                    xmlHttp66=new ActiveXObject("Microsoft.XMLHTTP");
			                        }
			                       catch (e)
			                       { 
				                     alert("Your browser does not support AJAX!");
				                     return false;
			                        }
			                      } 
		                       }
	                        xmlHttp66.onreadystatechange = function()
		                    {  
				              document.getElementById("statusDIV").innerHTML = 'Please wait process is going on...';
				              showLoading(true);	
				              if(xmlHttp66.readyState == 4)
				               {
					                HandleResponse66(xmlHttp66.responseText);
								    showLoading(false);
				                 }
	                        }
		                    var flag=66; 
		                    xmlHttp66.open("POST", "webservices_ajax.php", true); //pgname=pgcheck; 
		                    xmlHttp66.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
		                    xmlHttp66.send( '&lgname='+popent_id+'&flag='+flag+ '&CityPeopleGroupId=' +CityPeopleGroupId);
		                    function HandleResponse66(response66) 
		                     {
							   //alert(response22);
		                       var  data =response66;
							   // map.openInfoWindowHtml(point, data);
							   var tabs = [];  // info Tabs container for InfoWindows
			                   var tab_labels = [];			
			                   var htmls = [];
				               tot_html=data.split('+');
					           tab_labels.push('Location'); htmls.push(tot_html[0]);
					           tab_labels.push('Linguistic'); htmls.push(tot_html[1]);
					           tab_labels.push('Cultural'); htmls.push(tot_html[2]);
					           tab_labels.push('Information'); htmls.push(tot_html[3]); 
					           for (var j=0; j < 4; j++) 
					           {
			                      htmls[j] = '<div class="infowindow" style="width:430px;height:100px">' + htmls[j] + '</div>';
			                      tabs.push(new GInfoWindowTab(tab_labels[j],htmls[j]));
		                         } 
							    marker.openInfoWindowTabsHtml(tabs);	
							    document.getElementById("statusDIV").innerHTML = "TAB Records found : 1";
							    showLoading(false);
							  }
}


function singlepgpoly(peoplegroupid)
{
var popent_id=document.getElementById("sel_peoplegroup").value;
var CityPeopleGroupId =peoplegroupid;
var xmlHttp20; 
					        try 
		                    {   // Firefox, Opera 8.0+, Safari
			                  xmlHttp20=new XMLHttpRequest();
		                     }
		                    catch (e)
		                    {
		                     // Internet Explorer
		                      try
			                  {
				                 xmlHttp20=new ActiveXObject("Msxml2.XMLHTTP");
			                    }
		                      catch (e)
			                  {
			                    try
			                    {
				                   xmlHttp20=new ActiveXObject("Microsoft.XMLHTTP");
			                       }
			                      catch (e)
			                      { 
				                    alert("Your browser does not support AJAX!");
				                    return false;
			                       }
			                     } 
		                      }
	                       xmlHttp20.onreadystatechange = function()
		                   { 
				             document.getElementById("statusDIV").innerHTML = 'Please wait process is going on...';
				             showLoading(false);	
				             if(xmlHttp20.readyState == 4)
				              {
					               HandleResponse20(xmlHttp20.responseText);
								   showLoading(false);
				                }
	                       }
		                   var flag=20; 
		                   xmlHttp20.open("POST", "webservices_ajax.php", true);
		                   xmlHttp20.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
		                   xmlHttp20.send( '&pgname='+popent_id+'&flag='+flag+ '&CityPeopleGroupId=' +CityPeopleGroupId);
		                   function HandleResponse20(response20) 
		                    {
							  var  data =response20;
							  var tabs = [];  // info Tabs container for InfoWindows
			                  var tab_labels = [];			
			                  var htmls = [];
				              tot_html=data.split('+');
					          tab_labels.push('Location'); htmls.push(tot_html[0]);
					          tab_labels.push('Linguistic'); htmls.push(tot_html[1]);
					          tab_labels.push('Cultural'); htmls.push(tot_html[2]);
					          tab_labels.push('Information'); htmls.push(tot_html[3]); 
					          for (var j=0; j < 4; j++) 
					          {
			                     htmls[j] = '<div class="infowindow" style="width:390px;height:100px">' + htmls[j] + '</div>';
			                     tabs.push(new GInfoWindowTab(tab_labels[j],htmls[j]));
		                        }
							   map.openInfoWindowTabsHtml(point, tabs);	
							   document.getElementById("statusDIV").innerHTML = "TAB Records found : 1";
							   showLoading(false);
							 }
}


function singlelgpoly(languagegroupid)
{
var popent_id=document.getElementById("sel_lang").value;
var CityPeopleGroupId =languagegroupid;
var xmlHttp44; 
					        try 
		                    {   // Firefox, Opera 8.0+, Safari
			                  xmlHttp44=new XMLHttpRequest();
		                     }
		                    catch (e)
		                    {
		                     // Internet Explorer
		                      try
			                  {
				                 xmlHttp44=new ActiveXObject("Msxml2.XMLHTTP");
			                    }
		                      catch (e)
			                  {
			                    try
			                    {
				                   xmlHttp44=new ActiveXObject("Microsoft.XMLHTTP");
			                       }
			                      catch (e)
			                      { 
				                    alert("Your browser does not support AJAX!");
				                    return false;
			                       }
			                     } 
		                      }
	                       xmlHttp44.onreadystatechange = function()
		                   {
				             document.getElementById("statusDIV").innerHTML = 'Please wait process is going on...';
				             showLoading(true);	
				             if(xmlHttp44.readyState == 4)
				              {
					               HandleResponse44(xmlHttp44.responseText);
								   
				                }
	                       }
		                   var flag=44; 
		                   xmlHttp44.open("POST", "webservices_ajax.php", true);
		                   xmlHttp44.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
		                   xmlHttp44.send( '&lgname='+popent_id+'&flag='+flag+ '&CityPeopleGroupId=' +CityPeopleGroupId);
		                   function HandleResponse44(response44) 
		                    {
							  //alert("testing");
		                      var  data =response44;
							  // map.openInfoWindowHtml(point, data);
							  var tabs = [];  // info Tabs container for InfoWindows
			                  var tab_labels = [];			
			                  var htmls = [];
				              tot_html=data.split('+');
					          //alert(tot_html[0]);
					          //alert(tot_html[1]);
					 
					          //htmls.push(tot_html[0]);
					          tab_labels.push('Location'); htmls.push(tot_html[0]);
					          tab_labels.push('Linguistic'); htmls.push(tot_html[1]);
					          tab_labels.push('Cultural'); htmls.push(tot_html[2]);
					          tab_labels.push('Information'); htmls.push(tot_html[3]); 
					          //htmls.push(0);
					          for (var j=0; j < 4; j++) 
					          {
			                     //alert("htmls len:"+htmls.length);
			                     htmls[j] = '<div class="infowindow" style="width:430px;height:100px">' + htmls[j] + '</div>';
			                     tabs.push(new GInfoWindowTab(tab_labels[j],htmls[j]));
		                        }
							   map.openInfoWindowTabsHtml(point, tabs);	
							   document.getElementById("statusDIV").innerHTML = "TAB Records found : 1";
							   showLoading(false);
							 }
}
