var xmlHttp

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;
}

function search_areamgt(str) { 
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}

var url="func/operations-dossier.php"
url=url+"?sect=search-areamgt"
url=url+"&id="+str
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-areamgt").innerHTML=xmlHttp.responseText
	 document.getElementById("result-areamgt").style.display=""
	 } else{
	 document.getElementById("result-areamgt").innerHTML="<center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-areamgt").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function search_projmgt(str) { 
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}

var url="func/operations-dossier.php"
url=url+"?sect=search-projmgt"
url=url+"&id="+str
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-projmgt").innerHTML=xmlHttp.responseText
	 document.getElementById("result-projmgt").style.display=""
	 } else{
	 document.getElementById("result-projmgt").innerHTML="<center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-projmgt").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function search_farmmgt(str) { 
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}

var url="func/operations-dossier.php"
url=url+"?sect=search-farmmgt"
url=url+"&id="+str
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-farmers").innerHTML=xmlHttp.responseText
	 document.getElementById("result-farmers").style.display=""
	 } else{
	 document.getElementById("result-farmers").innerHTML="<center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-farmers").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function search_loctype(str) { 
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}
var url="func/operations-dossier.php"
url=url+"?sect=search-loctype"
url=url+"&type="+str
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-locoption").innerHTML=xmlHttp.responseText
	 document.getElementById("result-locoption").style.display=""
	 } else{
	 document.getElementById("result-locoption").innerHTML="<center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-locoption").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function search_location(str) { 
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}
var url="func/operations-dossier.php"
url=url+"?sect=search-location"
url=url+"&loc="+str
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-farmers").innerHTML=xmlHttp.responseText
	 document.getElementById("result-farmers").style.display=""
	 } else{
	 document.getElementById("result-farmers").innerHTML="<center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-farmers").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function search_location2(str,page) { 
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}
var url="func/operations-dossier.php"
url=url+"?sect=search-location2"
url=url+"&loc="+str
url=url+"&page="+page

xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-farmers").innerHTML=xmlHttp.responseText
	 document.getElementById("result-farmers").style.display=""
	 } else{
	 document.getElementById("result-farmers").innerHTML="<center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-farmers").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function DossierPanel(str,str2) { 
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}

var url="func/operations-dossier.php"
url=url+"?sect=dossier-panel"
url=url+"&panel="+str
url=url+"&id="+str2
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("dossier-panel").innerHTML=xmlHttp.responseText
	 document.getElementById("dossier-panel").style.display=""
	 } else{
	 document.getElementById("dossier-panel").innerHTML="<center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("dossier-panel").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function map_filter(str, str2, str3){
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}

var url="func/operations-dossier.php"
url=url+"?sect=maps-dofilter"
url=url+"&id="+str
url=url+"&nameid="+str2
url=url+"&mtype="+str3
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-farmers").innerHTML=xmlHttp.responseText
	 document.getElementById("result-farmers").style.display=""
	 } else{
	 document.getElementById("result-farmers").innerHTML="<center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-farmers").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)



}

function variety_filter(str, str2, str3){
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}

var url="func/operations-dossier.php"
url=url+"?sect=maps-dofilter-variety"
url=url+"&id="+str
url=url+"&nameid="+str2
url=url+"&mtype="+str3
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-variety").innerHTML=xmlHttp.responseText
	 document.getElementById("result-variety").style.display=""
	 } else{
	 document.getElementById("result-variety").innerHTML="<center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-variety").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function variety_filter_places(str, str2, str3, str4, str5){
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}

var url="func/operations-dossier.php"
url=url+"?sect=maps-dofilter-variety-places"
url=url+"&id="+str
url=url+"&nameid="+str2
url=url+"&mtype="+str3
url=url+"&cyid="+str4
url=url+"&level="+str5
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-farmers").innerHTML=xmlHttp.responseText
	 document.getElementById("result-farmers").style.display=""
	 } else{
	 document.getElementById("result-farmers").innerHTML="<center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-farmers").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)



}

function nicotine_filter(str, str2, str3, str4){
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}

var url="func/operations-dossier.php"
url=url+"?sect=maps-dofilter-nicotine"
url=url+"&id="+str
url=url+"&nameid="+str2
url=url+"&mtype="+str3
url=url+"&level="+str4
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-farmers").innerHTML=xmlHttp.responseText
	 document.getElementById("result-farmers").style.display=""
	 } else{
	 document.getElementById("result-farmers").innerHTML="<center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-farmers").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)



}

function map_regionmgt(str) { 
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}

var url="func/operations-dossier.php"
url=url+"?sect=maps-regionmgt"
url=url+"&id="+str
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-regionmgt").innerHTML=xmlHttp.responseText
	 document.getElementById("result-regionmgt").style.display=""
	 } else{
	 document.getElementById("result-regionmgt").innerHTML="<center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-regionmgt").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function map_areamgt(str) { 
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}

var url="func/operations-dossier.php"
url=url+"?sect=maps-areamgt"
url=url+"&id="+str
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-areamgt").innerHTML=xmlHttp.responseText
	 document.getElementById("result-areamgt").style.display=""
	 } else{
	 document.getElementById("result-areamgt").innerHTML="<center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-areamgt").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function maps_areamgt_list(str) { 
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}

var url="func/operations-dossier.php"
var cyid=document.getElementById("result-cropyear").value
url=url+"?sect=maps-areamgt-list"
url=url+"&id="+str+"&cyid="+cyid
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-farmers").innerHTML=xmlHttp.responseText
	 document.getElementById("result-farmers").style.display=""
	 } else{
	 document.getElementById("result-farmers").innerHTML="<center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-farmers").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function maps_projmgt(str) { 
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}

var url="func/operations-dossier.php"
var cyid=document.getElementById("result-cropyear").value
url=url+"?sect=maps-projmgt"
url=url+"&id="+str+"&cyid="+cyid
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-farmers").innerHTML=xmlHttp.responseText
	 document.getElementById("result-farmers").style.display=""
	 } else{
	 document.getElementById("result-farmers").innerHTML="<center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-farmers").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function nameslist_dropdown(str,count) { 
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}
var div="nameslist-linkedto-"+count
var url="func/backend-static-ajax.php"
url=url+"?sect=nameslist-dropdown"
url=url+"&position="+str
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById(div).innerHTML=xmlHttp.responseText
	 document.getElementById(div).style.display=""
	 } else{
	 document.getElementById(div).innerHTML="<center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById(div).style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function gallery_areamgt(str) { 
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}

var url="func/backend-static-ajax.php"
url=url+"?sect=gallery-search-areamgt"
url=url+"&id="+str
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-areamgt").innerHTML=xmlHttp.responseText
	 document.getElementById("result-areamgt").style.display=""
	 } else{
	 document.getElementById("result-areamgt").innerHTML="<center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-areamgt").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function gallery_projmgt(str) { 
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}

var url="func/backend-static-ajax.php"
url=url+"?sect=gallery-search-projmgt"
url=url+"&id="+str
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-projmgt").innerHTML=xmlHttp.responseText
	 document.getElementById("result-projmgt").style.display=""
	 } else{
	 document.getElementById("result-projmgt").innerHTML="<center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-projmgt").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function gallery_farmmgt(str)  {
var url="func/backend-static-ajax.php"
url=url+"?sect=gallery-search-farmer"
url=url+"&id="+str
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-farmers").innerHTML=xmlHttp.responseText
	 document.getElementById("result-farmers").style.display=""
	 } else{
	 document.getElementById("result-farmers").innerHTML="<center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-farmers").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function gallery_fields(str,farmer) { 
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}

var url="func/backend-static-ajax.php"
url=url+"?sect=gallery-search-fields"
url=url+"&id="+str+"&nameid="+farmer
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-fields").innerHTML=xmlHttp.responseText
	 document.getElementById("result-fields").style.display=""
	 } else{
	 document.getElementById("result-fields").innerHTML="<center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-fields").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function searchFarmer() { 
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}
var str = escape(document.getElementById('farmername').value)
var url="func/operations-dossier"
url=url+"?sect=search-farmer"
url=url+"&farmer="+farmer
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-fields").innerHTML=xmlHttp.responseText
	 document.getElementById("result-fields").style.display=""
	 } else{
	 document.getElementById("result-fields").innerHTML="<center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-fields").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function rpt_recruit(str, str2, str3){
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}

var url="func/operations-dossier.php"
url=url+"?sect=rpts-recruit"
url=url+"&id="+str
url=url+"&nameid="+str2
url=url+"&utype="+str3
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-report").innerHTML=xmlHttp.responseText
	 document.getElementById("result-report").style.display=""
	 } else{
	 document.getElementById("result-report").innerHTML="<center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-report").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)



}

function rpt_rca(str, str2, str3){
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}

var url="func/operations-dossier.php"
url=url+"?sect=rpts-rca"
url=url+"&id="+str
url=url+"&nameid="+str2
url=url+"&utype="+str3
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-report").innerHTML=xmlHttp.responseText
	 document.getElementById("result-report").style.display=""
	 } else{
	 document.getElementById("result-report").innerHTML="<center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-report").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)



}

function rpt_arstat(str, str2, str3){
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}

var url="func/operations-dossier.php"
url=url+"?sect=rpts-arstat"
url=url+"&id="+str
url=url+"&nameid="+str2
url=url+"&utype="+str3
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-report").innerHTML=xmlHttp.responseText
	 document.getElementById("result-report").style.display=""
	 } else{
	 document.getElementById("result-report").innerHTML="<center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-report").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function show_gallery(str1,str2,str3,str4,str5){
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}

var url="func/operations-dossier.php"
url=url+"?sect=field-gallery"
url=url+"&fieldid="+str1
url=url+"&farmerid="+str2
url=url+"&what="+str3
url=url+"&who="+str4
url=url+"&cyid="+str5
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-summary").innerHTML=xmlHttp.responseText
	 document.getElementById("result-summary").style.display=""
	 } else{
	 document.getElementById("result-summary").innerHTML="<br /><br /><center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-summary").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function show_gallery_variety(str1,str2,str3,str4,str5,str6){
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}

var url="func/operations-dossier.php"
url=url+"?sect=field-gallery-variety"
url=url+"&fieldid="+str1
url=url+"&farmerid="+str2
url=url+"&cyid="+str3
url=url+"&who="+str4
url=url+"&town="+str5
url=url+"&variety="+str6
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-summary").innerHTML=xmlHttp.responseText
	 document.getElementById("result-summary").style.display=""
	 } else{
	 document.getElementById("result-summary").innerHTML="<br /><br /><center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-summary").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}


function show_summary_variety(str1,str2,str3,str4){
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}

var url="func/operations-dossier.php"
url=url+"?sect=show-summary-variety1"
url=url+"&cyid="+str1
url=url+"&id="+str2
url=url+"&town="+str3
url=url+"&variety="+str4
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-summary").innerHTML=xmlHttp.responseText
	 document.getElementById("result-summary").style.display=""
	 } else{
	 document.getElementById("result-summary").innerHTML="<br /><br /><center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-summary").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function show_summary(str1,str2,str3){
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}

var url="func/operations-dossier.php"
url=url+"?sect=show-summary"
url=url+"&what="+str1
url=url+"&who="+str2
url=url+"&cyid="+str3
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-summary").innerHTML=xmlHttp.responseText
	 document.getElementById("result-summary").style.display=""
	 } else{
	 document.getElementById("result-summary").innerHTML="<br /><br /><center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-summary").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function close_gallery(){
xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	}

var url="func/operations-dossier.php"
url=url+"?sect=close-gallery"
xmlHttp.onreadystatechange=function() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	 document.getElementById("result-summary").innerHTML=xmlHttp.responseText
	 document.getElementById("result-summary").style.display=""
	 } else{
	 document.getElementById("result-summary").innerHTML="<br /><br /><center><img src='images/ajax-loader.gif' width='220' height='19' border='0' alt='' /></center>"
	 document.getElementById("result-summary").style.display=""
	 }
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
