var listzone;
var couli = 1
function DialogWithTime(message,timeout,parentFrame) {
	if(parentFrame) {
		if(parent.Dialog)
			parent.Dialog.closeInfo();
		parent.Dialog.info(message, {width:250, height:100, showProgress: true, destroyOnClose: true});
		setTimeout("parent.Dialog.closeInfo();parent.Dialog.okCallback();",timeout); 
	}
	else {
		if(Dialog)
			Dialog.closeInfo();
		Dialog.info(message, {width:250, height:100, showProgress: true, destroyOnClose: true});
		setTimeout("Dialog.closeInfo();Dialog.okCallback();",timeout); 
	}
}
function requestForm(zone,variable,dest,f,charg,autoclose,evalOther) {
	if(charg != null) {
		//destroy(Dialog);
		if(Dialog)
			Dialog.closeInfo();
		Dialog.info("Chargement<br>Veuillez Patienter ...", {width:250, height:100, showProgress: true, destroyOnClose: true});
	}
					//layerInfo('<span class="chargement"></span>');
listzone = 	document.getElementById(zone)
	   var xhr_object = null; 
	 
	if(window.XMLHttpRequest) // Firefox 
	   xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) // Internet Explorer 
	xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	else { // XMLHttpRequest non supporté par le navigateur 
	   alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
	   return; 
	} 
	 
	   xhr_object.open("POST", dest, true); 
	     
	   xhr_object.onreadystatechange = function() {
		  if(xhr_object.readyState < 4) {
	
		  }
		  else {
			 if(charg != null && autoclose != null)	 {
				setTimeout("Dialog.closeInfo()",autoclose); 
			 	/*DIV_Remove('incache');
				DIV_Remove('cache');*/
			  }
			//closeLayer('incache');closeLayer('cache')
		  	putContent(zone,xhr_object.responseText);
			if(evalOther)
				eval(evalOther)
		  }
	   } 
	 
	   xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
		data = variable; 
	   xhr_object.send(data); 
}
function putContent(zone,content) {
	document.getElementById(zone).innerHTML = content;
}
function SelectRequestGo(selObj){
	//alert(selObj.options[selObj.selectedIndex]);
	var request = selObj.options[selObj.selectedIndex].getAttribute('request')
	if(request!='none')
		eval(request)
}
function SelectRequestGo2(selObj){ //v3.0
	eval(selObj.options[selObj.selectedIndex].value)
  	//requestForm(value)
}