2004-03-20 01:52:37 +01:00
|
|
|
function SelectAll( formulaire )
|
|
|
|
{
|
2006-11-17 05:20:07 +01:00
|
|
|
var len = formulaire.elements.length;
|
2004-03-20 01:52:37 +01:00
|
|
|
var i=0;
|
|
|
|
for( i = 0; i < len; i++)
|
|
|
|
{
|
|
|
|
if ( formulaire.elements[i].type=='checkbox'
|
|
|
|
&& formulaire.elements[i].name != 'copie')
|
|
|
|
{
|
|
|
|
formulaire.elements[i].checked = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2006-03-30 04:08:53 +02:00
|
|
|
function DeselectAll( formulaire )
|
|
|
|
{
|
2006-11-17 05:20:07 +01:00
|
|
|
var len = formulaire.elements.length;
|
2006-03-30 04:08:53 +02:00
|
|
|
var i=0;
|
|
|
|
for( i = 0; i < len; i++)
|
|
|
|
{
|
|
|
|
if ( formulaire.elements[i].type=='checkbox'
|
|
|
|
&& formulaire.elements[i].name != 'copie')
|
|
|
|
{
|
|
|
|
formulaire.elements[i].checked = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2004-03-20 01:52:37 +01:00
|
|
|
function Inverser( formulaire )
|
|
|
|
{
|
2006-11-17 05:20:07 +01:00
|
|
|
var len = formulaire.elements.length;
|
2004-03-20 01:52:37 +01:00
|
|
|
var i=0;
|
|
|
|
for( i=0; i<len; i++)
|
|
|
|
{
|
|
|
|
if ( formulaire.elements[i].type=='checkbox'
|
|
|
|
&& formulaire.elements[i].name != 'copie')
|
|
|
|
{
|
|
|
|
formulaire.elements[i].checked = !formulaire.elements[i].checked;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2006-11-17 05:20:07 +01:00
|
|
|
function phpWGOpenWindow(theURL,winName,features)
|
2006-07-15 01:56:47 +02:00
|
|
|
{
|
2006-11-17 05:20:07 +01:00
|
|
|
img = new Image();
|
|
|
|
img.src = theURL;
|
|
|
|
if (img.complete)
|
2006-07-15 01:56:47 +02:00
|
|
|
{
|
2006-11-17 05:20:07 +01:00
|
|
|
var width=img.width +40;
|
|
|
|
var height=img.height +40;
|
2006-07-15 01:56:47 +02:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2006-11-17 05:20:07 +01:00
|
|
|
var width=640;
|
|
|
|
var height=480;
|
|
|
|
img.onload = resizeWindowToFit;
|
2006-07-15 01:56:47 +02:00
|
|
|
}
|
2006-11-17 05:20:07 +01:00
|
|
|
newWin = window.open(theURL,winName,features+',left=2,top=1,width=' + width + ',height=' + height);
|
2006-07-15 01:56:47 +02:00
|
|
|
}
|
|
|
|
|
2006-11-17 05:20:07 +01:00
|
|
|
function resizeWindowToFit()
|
2004-10-02 00:50:50 +02:00
|
|
|
{
|
2006-11-17 05:20:07 +01:00
|
|
|
newWin.resizeTo( img.width+50, img.height+100);
|
2005-09-03 18:36:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function popuphelp(url)
|
|
|
|
{
|
|
|
|
window.open(
|
|
|
|
url,
|
|
|
|
'dc_popup',
|
|
|
|
'alwaysRaised=yes,dependent=yes,toolbar=no,height=420,width=500,menubar=no,resizable=yes,scrollbars=yes,status=no'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|