<!--
function openNewWindow( url, title, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable) {
// Définition des variables
var x = "";
var newwindowc = "";
var param = 'toolbar='+toolbar+',location='+location+',directories='+directories+',status='+status+',menubar='+menubar+',scrollbars='+scrollbars+',resizable='+resizable;
var param2 = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes';
if( width != "0" ) {
	x = ",width="+width;
	}
if( height != "0" ) {
	x = x + ",height="+height;
	}
        
if ((width == "0") && (height == "0")) {
	newwindowc = window.open(url, title, param2 + x);
	}
	else {
	newwindowc = window.open(url, title, param + x);
	}
}
function validTis(i_Msg) {
	var s_Continue = 'OK';
	// validation des valeurs obligatoire
	var o_Form = self.document.forms['TISPL'];
	var o_Error = document.getElementById('erreur');
	o_Error.innerHTML = '';
	document.getElementById('f01').style.backgroundColor = '#ffffff';
	document.getElementById('f07').style.backgroundColor = '#ffffff';
	document.getElementById('f08').style.backgroundColor = '#ffffff';
	document.getElementById('f10').style.backgroundColor = '#ffffff';
	document.getElementById('f11').style.backgroundColor = '#ffffff';
	document.getElementById('fi01').style.backgroundColor = '#ffffff';
	document.getElementById('fi07').style.backgroundColor = '#ffffff';
	document.getElementById('fi08').style.backgroundColor = '#ffffff';
	document.getElementById('fi10').style.backgroundColor = '#ffffff';
	document.getElementById('fi11').style.backgroundColor = '#ffffff';
	if (o_Form.field01.value=='') { // Société
		document.getElementById('f01').style.backgroundColor = 'red';
		document.getElementById('fi01').style.backgroundColor = 'red';
		s_Continue = 'KO';
		}
	if (o_Form.field07.value=='0') { // Pays
		document.getElementById('f07').style.backgroundColor = 'red';
		document.getElementById('fi07').style.backgroundColor = 'red';
		s_Continue = 'KO';
		}
	if (o_Form.field08.value=='') { // tel
		document.getElementById('f08').style.backgroundColor = 'red';
		document.getElementById('fi08').style.backgroundColor = 'red';
		s_Continue = 'KO';
		}
	if (o_Form.field10.value=='') { // contact
		document.getElementById('f10').style.backgroundColor = 'red';
		document.getElementById('fi10').style.backgroundColor = 'red';
		s_Continue = 'KO';
		}
	if (o_Form.field11.value=='') { // email
		document.getElementById('f11').style.backgroundColor = 'red';
		document.getElementById('fi11').style.backgroundColor = 'red';
		s_Continue = 'KO';
		}
	if (s_Continue == 'KO') {			
		s_Html = '<table border="0" cellspacing="0" cellpadding="0">';
		s_Html += '<tr>';
		s_Html += '<td bgColor="red" color="#ffffff" height="25">&nbsp;&nbsp;'+i_Msg+'&nbsp;&nbsp;</td>';
		s_Html += '</tr>';
		s_Html += '</table>';
		o_Error.innerHTML = s_Html;
		}
	else {
		o_Form.submit();
		}
	}
function openDemandeTis(i_Id) {
	var s_Url = '';
	var i_width = '';
	var i_height = '';
	switch (i_Id) {
  	case 1:
    	s_Url = './formular.php?id=30&type=1';
    	i_width = 450;
    	i_height = 650;
   		break;
  	case 2:
    	s_Url = './formular.php?id=30&type=2';
    	i_width = 450;
    	i_height = 480;
    	break;
  	default:
   		break;
		}
	if (s_Url != '') {
		openNewWindow(s_Url,'tisPLformular',i_width,i_height,'no','no','no','no','no','no','no');
		}
	}
function openmyconsodday() {
	openNewWindow('./portal/myconsodday-htm.php','tisPLconso','800','600','no','no','no','no','no','yes','yes');
	}
-->
