<!--

function openGeneral(winName)
{
	_openWindow(winUrl + winName + '.html',winName,'width=640,height=500,left=10,top=10,toolbar=no,menubar=no,status=no,resizable=no,scrollbars=yes');
}

function openDivers(winName)
{
	_openWindow(winName,winName,'width=640,height=700,left=100,top=100,toolbar=no,menubar=no,status=no,resizable=no,scrollbars=yes');
}

function openPartenaires(winName)
{
	_openWindow(winName,'Partenaires','width=820,height=700,left=100,top=100,toolbar=yes,menubar=yes,status=no,resizable=yes,scrollbars=yes');
}

function _openWindow(theURL,winName,features)
{
	window.open(theURL,winName,features);
}

function GetElementId(id)
{
	if (document.all)
	{
		return document.all[id];
	}
	else if (document.getElementById)
	{
		return document.getElementById(id);
	}
}

function GetElementName(id)
{
	if (document.all)
	{
		return document.all[id];
	}
	else if (document.getElementByName)
	{
		return document.getElementByName(id);
	}
}

function MaskPub()
{
	var _id=GetElementId("divpub");
	if (_id)
	{
		_id.style.zIndex=1;
		if(timerIDPub)
		{
			clearTimeout(timerIDPub);
			timerIDPub  = 0;
		}
	}
}

function AffMontant(_value,bool)
{
	if ((_value==0)&&bool)
	{
		return '';
	}
	else
	{
		if (_value.replace)
		{
			_value=_value.replace(',','.');
		}
		var _int=Math.floor(_value);
		var _dec=Math.round((_value-_int)*100);
		if (_dec<10) { _dec="0"+_dec; }
		return _int+","+_dec;
	}
}

function SendForm(_form,_action)
{
	//alert('sendform')
	var _form=document.forms[_form];
	if (_action)
	{
		_form.action=_action;
	}
	_form.submit();
}

//-->

