// JavaScript Document
// var Select_test = 'toto';
// alert('popup js');

// scripts de gestion des popups
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=500,height=300,scrollbars=yes');
return false;
}
function targetopener(mylink, closeme, closeonly)
{
if (! (window.focus && window.opener))return true;
window.opener.focus();
if (! closeonly)window.opener.location.href=mylink.href;
if (closeme)window.close();
return false;
}
function setOptions(form, selectField, value, name)
{
var lst = document.forms[form][selectField];
lst.options.length = 0
lst.disabled = true;
lst.options[0] = new Option(name, value);
lst.disabled = false;
}