 function setlocation(uid)
 {
   var webURL   = document.getElementById("webURL").value;
   var setlocman=document.getElementById('setlocman').checked;
    if(setlocman==true || setlocman==false)
   {
	 $.post(webURL+"/location/savestatusprivacy&setlocman="+setlocman+"&userid="+uid+"", { },
		function(data){ 
		//alert("Data Loaded: " + data);
		/*if(data=="1")
		{
			alert('Your Point Save');
		}*/
		});
   }
 }  
 
 function hidelocation(uid)
 { 
   var webURL   = document.getElementById("webURL").value;
   
   var hideloc=document.getElementById('hideloc').checked;
   if(hideloc==true || hideloc==false  )
   {
		//alert(hideloc);
	 $.post(webURL+"/location/savestatusprivacy&hideloc="+hideloc+"&userid="+uid+"", { },
		function(data){ 
		//alert("Data Loaded: " + data);
		if(data=="1")
		{
		//	alert('Your Point Save');
		}
		});
   }
  
}  

function hidestreet(uid)
 {
    var webURL   = document.getElementById("webURL").value;
	
	var hidestrladd=document.getElementById('hidestrladd').checked;
     if(hidestrladd==true || hidestrladd==false)
   {
		//alert('success');
	 $.post(webURL+"/location/savestatusprivacy&hidestrladd="+hidestrladd+"&userid="+uid+"", { },
	 
		function(data){ 
		//alert("Data Loaded: " + data);
		if(data=="1")
		{
	//		alert('Your Point Save');
		}
		});
   }
}

function hidephone(uid)
 {
    
	var webURL   = document.getElementById("webURL").value;
	
	var hideph=document.getElementById('hideph').checked;
   if(hideph==true || hideph==false)
   {
	//alert('success');
	 $.post(webURL+"/location/savestatusprivacy&hideph="+hideph+"&userid="+uid+"",{ },
		function(data){ 
		//alert("Data Loaded: " + data);
		if(data=="1")
		{
		//	alert('Your Point Save');
		}
		});
   }
}   

function hidemail(uid)
 {
    
	var webURL   = document.getElementById("webURL").value;
	
	var hidemail=document.getElementById('hidemail').checked;
//alert(hidemail);
   if(hidemail==true || hidemail==false)
   {
		//alert('success');
	 $.post(webURL+"/location/savestatusprivacy&hidemail="+hidemail+"&userid="+uid+"", { },
		function(data){ 
	//	alert("Data Loaded: " + data);
		if(data=="1")
		{
	//		alert('Your Point Save');
		}
		});
   }
 }  
 
 function hideurl(uid)
 {
    
	var webURL   = document.getElementById("webURL").value;
	
	var vanityurl=document.getElementById('vanityurl').checked;
//alert(hidemail);
   if(vanityurl==true || vanityurl==false)
   {
		//alert('success');
	 $.post(webURL+"/location/savestatusprivacy&vanityurl="+vanityurl+"&userid="+uid+"", { },
		function(data){ 
	//	alert("Data Loaded: " + data);
		if(data=="1")
		{
	//		alert('Your Point Save');
		}
		});
   }
 }
 
function sharefriend(uid)
 {
    var webURL   = document.getElementById("webURL").value;
	
	var withfrnd=document.getElementById('withfrnd').checked;
  if(withfrnd==true || withfrnd==false)
   {
		//alert('success');
	 $.post(webURL+"/location/savestatusprivacy&withfrnd="+withfrnd+"&userid="+uid+"", { },
		function(data){ 
		//alert("Data Loaded: " + data);
		if(data=="1")
		{
		//	alert('Your Point Save');
		}
		});
   }
  
 }
 
 function sharecommunity(uid)
 {
    var webURL   = document.getElementById("webURL").value;
	
	var withcomm=document.getElementById('withcomm').checked;
  if(withcomm==true||withcomm==false)
   {
		//alert('success');
	 $.post(webURL+"/location/savestatusprivacy&withcomm="+withcomm+"&userid="+uid+"", { },
		function(data){ 
		//alert("Data Loaded: " + data);
		if(data=="1")
		{
		//	alert('Your Point Save');
		}
		});
   }
  
 }
 
 
 function sharecommunityradius(uid,withcommradius)
 {
    
	 var webURL   = document.getElementById("webURL").value;
		//alert('success');
	 $.post(webURL+"/location/savestatusprivacy&withcommradius="+withcommradius+"&userid="+uid+"", { },
		function(data){ 
		//alert("Data Loaded: " + data);
		if(data=="1")
		{
		//	alert('Your Point Save');
		}
		});
  }
  
  function showStaticMapImageUrl()
  {
		var username    = document.getElementById("username").value;
		var key   = document.getElementById("googlekey").value;		
		var width   = document.getElementById("mapWidthTEXT").value;
		var height   = document.getElementById("mapHeightTEXT").value;
		var staticzoom   = document.getElementById("zoomlevel").value;
		var size   = document.getElementById("markerSizeSELECT").value;
		var color   = document.getElementById("markerColorSELECT").value;
		var letter   = document.getElementById("markerLetterSELECT").value;
		var maptype    = document.getElementById("maptype").value;
		var badgeURL=userid+'/'+size+color+letter+'/'+staticzoom+'/'+maptype+'/'+width+'x'+height;
		var data = '<iframe src="'+webURL+'/location/badge/'+badgeURL+'" style="width:'+width+'px;height:'+height+'px;border:none;" scrolling="no" frameborder="0"></iframe>';
		document.getElementById('staticmapurl').value=data;
		document.getElementById('showimg').innerHTML=data;
		
  }
  
  function disableSelects()
  {
	    var markerSize = document.getElementById("markerSizeSELECT").value;
	  	if (markerSize == "small" || markerSize == "tiny") 
	  	{ 
   	 		document.getElementById("markerLetterSELECT").selectedIndex = 0;
    		document.getElementById("markerLetterSELECT").disabled = true;
  		} 
		else
		{
			document.getElementById("markerLetterSELECT").disabled = false;
		}
  }
