var button=null;
function scrollMe(event)
{
var st = event.currentTarget.scrollTop + (event.detail * 12);
event.currentTarget.scrollTop = st < 0 ? 0 : st;
event.preventDefault();
}
function windowHeight()
{
if (window.innerHeight) return window.innerHeight;
else if (document.body && document.body.clientHeight) return document.body.clientHeight;
else return 0;
}
function windowWidth()
{
if (window.innerWidth) return window.innerWidth;
else if (document.body && document.body.clientWidth) return document.body.clientWidth;
else return 0;
}
var bInitLayerScroll=false;
function windowSizeChange()
{
obj=document.getElementById("LayerScroll");
objMenu=document.getElementById("LayerScrollMenu");
if (obj && objMenu)
{
if (!bInitLayerScroll && navigator.userAgent.indexOf("Firefox")!=-1)
{
obj.addEventListener('DOMMouseScroll', scrollMe, false);
bInitLayerScroll=true;
}
winWidth=windowWidth();
placeButton=0;
if (button!=null)
{
placeButton=32;
objButton=document.getElementById("LayerButton");
if (objButton)
{
objButton.innerHTML="
";
}
}
if (winWidth<1000)
{
obj.style.width=560;
obj.style.height=350-placeButton;
objMenu.style.height=245;
document.body.background ="fond800x600.jpg";
}
else if (winWidth<1200)
{
obj.style.width=760;
obj.style.height=520-placeButton;
objMenu.style.height=410;
document.body.background ="fond1024x768.jpg";
}
else if (winWidth<1600)
{
obj.style.width=960;
obj.style.height=650-placeButton;
objMenu.style.height=676;
document.body.background ="fond1280x1024.jpg";
}
else
{
obj.style.width=1300;
obj.style.height=765-placeButton;
objMenu.style.height=950;
document.body.background ="fond1600x1200.jpg";
}
}
}
/*initialiser la surveillance de Netscape*/
if (window.innerWidth) window.onresize = windowSizeChange;
function openWindow(url)
{
win=window.open(url ,"win",'screenX=0,screenY=0,left=0,top=0,width=790,height=570,scrollbars=yes');
}
function quit()
{
// if (window.location.href.indexOf("http")==-1)
window.close();
// else
// window.location.href="../index.htm";
}
//
// Obtention de l'objet selected parmis un groupe
//
function getValueSelected(object)
{
for (var i=0; i";
button+="";
button+="
";
button+=strCancelText;
button+="";
button+="";
}
function buttonOk(strOk,strOkText)
{
buttonOkImg(strOk,strOkText,"ok");
}
function buttonOkImg(strOk,strOkText,strIcon)
{
if (button==null) button=" | ";
button+="";
button+="";
button+=strOkText;
button+=" ";
button+="";
button+=" ";
button+="";
button+=" | ";
}
var strSortSelect;
var strSortOrder;
var strSortClass;
/**
* M�thode pour effectuer un tri sur une colonne
*/
function tri(strColumnName,strField)
{
str="";
str+="";
str+=strColumnName;
str+="";
strUrl=window.location.href;
if (strUrl.indexOf(strField)!=-1 || strField==strSortSelect)
{
if (strUrl.indexOf("sortorder_c=1")!=-1 || strSortOrder=="1")
str+="
"
else
str+="
"
}
str+="";
document.write(str);
}
/**
* M�morisation des param�tres du tri actuel dans le cas ou
* les param�tres ne sont pas dans l'URL mais seulement dans le corps
*/
function setTri(_strSortSelect,_strSortOrder,_strSortClass)
{
strSortSelect=_strSortSelect;
strSortOrder=_strSortOrder;
strSortClass=_strSortClass;
}
/**
* Effecture le tri sur un champs
*/
function doTri(strField)
{
strLocation=_setParam(window.location.href,"sortselect_c",strField);
strLocation=_xorParam(strLocation,"sortorder_c");
window.location.href=strLocation;
}
/**
* Met un param�tre dans l'URL affich�e
*/
function setParam(strParam,strValue)
{
window.location.href=_setParam(window.location.href,strParam,strValue);
}
/**
* Met un param�tre dans l'URL
*/
function _setParam(strLocation,strParam,strValue)
{
nPos=strLocation.indexOf(strParam);
if (nPos==-1)
{
if (strLocation.indexOf("?")==-1)
return strLocation+"?"+strParam+"="+strValue;
else
return strLocation+"&"+strParam+"="+strValue;
}
else
{
nLength=1;
for (i=nPos+strParam.length+1; i "
if (_nbFichiers<0)
str+="Le fichier a été ajouté au panier";
else if (_nbFichiers==1 || _nbFichiers=="1")
str+="1 fichier dans le panier";
else
str+=_nbFichiers+" fichiers dans le panier";
str+=""
}
obj=document.getElementById("LayerBasket");
if (obj)
obj.innerHTML=str;
}
/**
* Fait un chargement ftp et indique au serveur que l'utilisateur l'a lanc�
*/
function ftp(_url,_id)
{
data="action=addHisto";
data+="&TypeAndID=" + _id;
data+="&what=402"; // d�fini par com.td.treedbms_or.typesql.TypeHistoAbs.WHAT_FTP
data+="&Texte=" + _url;
httpRequest(window.location.href,data);
window.location.href=_url;
}