var xmlHttp

function searchzone(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="search_get.php"
url=url+"?id_zone="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("txtHint").innerHTML=xmlHttp.responseText 

 }  
} 


function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}


var xmlHttp

function listingzone(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="zone_list.php"
url=url+"?id_zone_list="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged2 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function stateChanged2() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("txtList").innerHTML=xmlHttp.responseText 
 }  
} 

function deletephoto(str){
	if (confirm("Are you sure you want to delete this picture?")) {
		myRef = window.open('zone_photodelete.php?id='+str,'photodelete','left=20,top=20,width=500,height=500,toolbar=1,resizable=0');
	
	}
}


function selectzone()
{ 
	if (document.formmap.checkbox11.checked) {
		document.formmap.checkboxC1.checked = true;
		document.formmap.checkboxC2.checked = true;
		document.formmap.checkboxC3.checked = true;
		document.formmap.checkboxC4.checked = true;
		document.formmap.checkboxC5.checked = true;
		document.formmap.checkboxC6.checked = true;
		
	}
	else {
		document.formmap.checkboxC1.checked = false;
		document.formmap.checkboxC2.checked = false;
		document.formmap.checkboxC3.checked = false;
		document.formmap.checkboxC4.checked = false;
		document.formmap.checkboxC5.checked = false;
		document.formmap.checkboxC6.checked = false;
		
	}
}