try{
	
var nav_isIE = false;
var activecombo;
var req;
var inicio=true;
var xmlhttp=false;

if (window.XMLHttpRequest) {
	xmlhttp = new XMLHttpRequest();
	// branch for IE/Windows ActiveX version
	} else{
	nav_isIE = true;
	xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	
function deletconfirm(url){
	if(confirm('Deseja realmente excluir este registro\n\nObservação:\n Não será possível desfazer a ação.')){
       exec(url)
	}
}


function getdestinatarios(idclMkp) {
  if(xmlhttp.readyState != 2 && xmlhttp.readyState != 3) {
	 
	Fp=0;
	try{
		Fp=document.getElementById('idg').value }catch(e){}
		
		xmlhttp.open('POST',"gerenciador_process.php" ,false);
		xmlhttp.setRequestHeader('Method',"POST" +  "HTTP/1.1");
		xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		xmlhttp.send('action=getdestinatarios&idclMkp=' + idclMkp + '&Fp=' + Fp);
		 if (xmlhttp.readyState == 4 || xmlhttp.status == 200) {
				 var objdiv=document.getElementById('divDestinatarios');
		         objdiv.innerHTML = urldecode(xmlhttp.responseText) 
   		}
	}
}


function urldecode(texto){
//Desfaz o urlencode
texto=texto.replace(/\+/g," ");
texto=unescape(texto);
return texto;
}
//************ fim carrega XML to Combbox *****************************
function trim( text ) {
   if(text==null) return null;
   return text.replace(/^[ \t]+|[ \t]+$/g, "");
}


}catch(e){}
