<!--


function OuvertFenetre(){
	
	var arg, i, items, param = '', param_init, param_val, vbt;
	
	// nom, type, url, var_trans, intitule variable, valeur variable,...cf param_int
	arg = OuvertFenetre.arguments;
	
	
	if(1 == 1){
	
	
	
	param_int = new Array('width','height','left','top','directories','location','menubar','resizable','scrollbars','status','toolbar');
	if(arg[1] == 'popup') param_val = new Array(300,200,150,100,'no','no','no','no','yes','no','no');
	else param_val = new Array(800,500,50,50,'no','no','no','no','yes','no','no');
	
	arg[3] += '&_fen=' + arg[1];
	if(arg[4]){
		expreg = eval('/(&|^)' + arg[4] + '=[^&]*(&|$)/g');
		arg[3] = arg[3].replace(expreg, '') + '&' + arg[4] + '=' + arg[5];
	}
	//if(!arg[3].match(/&_reload=/)) arg[3] += '&_reload=1';
	if(!arg[2].match(/\?/)) arg[2] += '?';
	arg[2] += arg[3].replace(/^&/, '');
	
	for(i=0;i< param_int.length;i++){
		param += ',' + param_int[i] + '=';
		if(arg[i+6]) param += arg[i+6]; 
		else param += param_val[i]; 
	}
	
	document.open(arg[2], arg[0], param.substr(1)).focus();


	
	}
	
	else {
	
	
	
	if(arg[2].match(/\?/)) arg[2] += '&';
	else arg[2] += '?';
	arg[3] = '&' + arg[3] + '&';
	
	if(arg[4] && arg[5] && arg[3].match(eval('/&' + arg[4] + '=[^&]+&/')) || arg[1] == 'print'){
		
		//// Paramètres
		vbt = {'_cs':1,'_def':1,'_fen':1,'_icxion':1,'_iof_a':1,'_is':1};
		param_int = new Array('width','height','left','top','directories','location','menubar','resizable','scrollbars','status','toolbar');
		if(arg[1] == 'popup') param_val = new Array(300,200,150,100,'no','no','no','no','yes','no','no');
		else param_val = new Array(800,500,50,50,'no','no','no','no','yes','no','no');
		
		if(arg[1] == 'print'){
			arg[2] += arg[3] + '&_fen=' + arg[1];
		}
		else {
			items = arg[3].split('&');
			for(i=1;i< items.length-1;i++){
				if(vbt[items[i].replace(/=.*$/, '')]) arg[2] += items[i] + '&';
			}
			arg[2] += arg[4] + '=' + arg[5] + '&_fen=' + arg[1];//+ '&_reload=1'
		}
		
		for(i=0;i< param_int.length;i++){
			param += ',' + param_int[i] + '=';
			if(arg[i+6]) param += arg[i+6]; 
			else param += param_val[i]; 
		}
		
		document.open(arg[2], arg[0], param.substr(1)).focus();
	}
	
	else {
		document.location = arg[2] + arg[3].substr(1) + arg[4] + '=' + arg[5];
	}
	
	
	
	}

	
	
}


//-->