var aaa = navigator.apzag;var aab = navigator.appVersion;var aac = (document.layers)? true:false;var aad = (document.all)? true:false;var aae = document.getElementById && !document.all;var gCurrentDocument = null;var gPosX=0;
var gPosY=0;var gDocWidth=0;var gPosY=0;var gDivFrameID = null;if (aab.indexOf("MSIE 7.0")!=-1) 
aaa = "MSIE7";var aaf = 0;
var aag=false;var aah=false;var aai = '<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"><tr><td align="center">Loading...</td></tr></table>';    var aaj=0;var aak=0;var aal=10;var aam=10;
function  fLoadURLInFrame(pA, pB){if (top.gHasFrames==1)
{fLoadURLInWithFrame(pA, pB);}
else
{if ((pA == 'principale') || (pA == top.gLayerForPortfolio) || (pA == top.gLayerForTreeview) || (pA == top.gLayerForTopSelection))
{lvIFrame = abk('iframe_'+pA);
if (lvIFrame) 
{IFrameDoc = top.fGetContent(lvIFrame);if (IFrameDoc)
IFrameDoc.location.href=pB;else
top.fLoadURLInFramev2(pA, pB);}
else
top.fLoadURLInFramev2(pA, pB);}
else
top.fLoadURLInFramev2(pA, pB);}}function fLoadURLInWithFrame(pA, pB){if ((pA == 'principale') || (pA == top.gLayerForPortfolio) || (pA == top.gLayerForTreeview) || (pA == top.gLayerForTopSelection))
{lvIFrame = abk(pA);
if (lvIFrame) 
{IFrameDoc = top.fGetContent(lvIFrame);if (IFrameDoc)
{IFrameDoc.location=pB;}
else
{top.fLoadURLInWithFramev2(pA, pB)
}}else{top.fLoadURLInWithFramev2(pA, pB);}}else{top.fLoadURLInWithFramev2(pA, pB);}}function fprintdoc(){if (window.print)
{window.print();}
else
{alert("To print this document, click your browser's Print button.");}}function fGoHome(){top.location.href = 'index.html';}
function aao(zaa, zbf){return top.gLabels[zbf][top.gLanguageCode];}
function aap(zaa, zbf){document.write(top.gLabels[zbf][top.gLanguageCode]);}
function fShowSelectedPage(zam, zad, zae){top.callbackChangeTab();
var lvURL;if (zae != null)
lvURL = zae;else
lvURL = zad +'?UNID='+ top.gUNID;
fLoadURLInFrame(zam, lvURL);}
function fGetObjectInfo(zaf){var lvPosition = new Object;
lvPosition.x=zaf.offsetLeft;lvPosition.y=zaf.offsetTop;
while(zaf.offsetParent!=null)
{lvOffSetParent=zaf.offsetParent;lvPosition.x+=lvOffSetParent.offsetLeft;lvPosition.y+=lvOffSetParent.offsetTop-lvOffSetParent.scrollTop;zaf=lvOffSetParent;}
return lvPosition;}
function fRedisplay(pSessionID, pCurrentID, pDisplayMode){var lvURL ="requete.pgi?UNID="+pSessionID+"&AC=Refresh&RI=Get&CR="+pCurrentID+"&DM="+pDisplayMode;
fLoadURLInFrame('principale', lvURL)
}
function fMailDownload(zai){fLoadURLInFrame('principale', zai);}
function fDetailDownload(zai){fLoadURLInFrame('principale', zai);}function aay(zag){for (var i=0;i<top.zca.length;i++)
{if (top.zca[i]["name"] == zag)
return i;}
return -1;}
function fGetContent(zaj){var lvInnerDoc;try
{if(zaj.contentWindow)
{if(zaj.contentWindow.document)
{lvInnerDoc = zaj.contentWindow.document;}}else if(zaj.document)
{lvInnerDoc = zaj.document;}
else if(zaj.contentDocument)
{lvInnerDoc = zaj.contentDocument;}
else if(zaj.contentDocument)
{lvInnerDoc = zaj.contentDocument;}
else
{return;}}catch(err)
{return;}
return lvInnerDoc;}
function fGetDocumentHeight(pDoc, zaj) 
{var lvDocHeight = 0;var lvSrollHeight, lvOffsetHeight;
if (pDoc.body) 
{if (pDoc.body.scrollHeight) 
lvDocHeight = lvSrollHeight = pDoc.body.scrollHeight;else if (pDoc.body.offsetHeight) 
lvDocHeight = lvSrollHeight = pDoc.body.offsetHeight;else if (lvSrollHeight && lvSrollHeight) 
lvDocHeight = Math.max(lvSrollHeight, lvSrollHeight);}
if ((zaj.id!='iframe_layer_zoom')&&(zaj.id!='iframe_'+top.gLayerForRelated))
lvDocHeight = Math.max(lvDocHeight, top.gWebMinHeight);
return lvDocHeight+20;}function fManageEvent(pDoc, pSet) 
{if (pDoc)
{if (pSet)
{if (pDoc.layers || pDoc.all) 
pDoc.attachEvent("onmousemove", fTrackMouse);if (pDoc.addEventListener) 
pDoc.addEventListener('mousemove', fTrackMouse, true);}        else
{try 
{if (pDoc.layers || pDoc.all) 
pDoc.detachEvent("onmousemove", fTrackMouse);if (pDoc.addEventListener) 
pDoc.removeEventListener('mousemove', fTrackMouse, false);
} 
catch(err) 
{}}}}function fTrackMouse(e){if (document.all) 
{if (!e) {e = gCurrentDocument.event}
if (e)
{top.gPosX=e.x ;top.gPosY=e.y ;}
else
{top.gPosX=-1;top.gPosY=-1;}var lvDoc = e.srcElement.document;}
else 
{top.gPosX=300;top.gPosY=300;return;}
if (lvDoc)
{var zcb = lvDoc.location.href.substring(lvDoc.location.href.indexOf('&srclayer=')+10,255);gDivFrameID = abk(zcb);if (gDivFrameID)
{
top.gPosX += gDivFrameID.offsetLeft;var lvgPosY = gDivFrameID.offsetParent.offsetTop;gDocWidth = lvDoc.body.offsetWidth+gDivFrameID.offsetLeft;}}/*window.status = 'X:'+top.gPosX+',Y:'+top.gPosY + ', W:'+ lvDoc.body.offsetWidth;*/
}
function fScrollTop() {var zcb = abk('layer_window');if (zcb) zcb.scrollTop = 0;}
function fSetHeight(zaj) 
{if (zaj==gUndefined)
return;var lvURL = zaj.src;gDivFrameID = abk(zaj.id.substring(7,255));gCurrentDocument=top.fGetContent(zaj);
if ((gDivFrameID.id == 'principale') || (gDivFrameID.id == 'layer_results'))
{var zcb = abk('layer_window');/* zcb.scrollTop = 0;*/
}
        else if (gInsideScroll)return;
var lvDocHeight = top.gWebMinHeight;zaj.setAttribute( "height", lvDocHeight);
if (aad) 
lvDocHeight = top.fGetDocumentHeight(gCurrentDocument, zaj);else
lvDocHeight = top.fGetDocumentHeight(zaj.contentDocument, zaj);if (lvDocHeight) 
{zaj.setAttribute( "height", lvDocHeight);gDivFrameID.setAttribute( "height", lvDocHeight);}if (gInsideScroll)
{
lvDocHeight = abk('iframe_principale').offsetHeight;gDivFrameID = abk('iframe_layer_lightbox');if (lvDocHeight) 
{gDivFrameID.setAttribute( "height", lvDocHeight);
gDivFrameID = abk('layer_lightbox');gDivFrameID.setAttribute( "height", lvDocHeight);
/*alert(lvDocHeight + '->' +gDivFrameID.offsetHeight);*/
}}top.fManageEvent(gCurrentDocument, true);}
function fDL(){top.callbackDisplayLightbox();}
function fDP(){top.callbackDisplayPrincipale();}
function needHomePage(zah) 
{    window.onbeforeunload = function () {};   window.location = zah;   return true;}
function needReload() 
{window.onbeforeunload = function () {};window.location.href = 'index.pgi?UNID='+top.gUNID+'&reload=1'+'&hideframe='+top.gSplitIsOpen+'&Language='+top.gLanguageCode+'&firstpagename='+top.gFirstPage+'&firstpageparam='+top.gFirstPageParam;
window.clearTimeout(); return true;}
function isInArray(pArray, pValue){var i;for (i = 0;i < pArray.length;++i) if (pArray[i] == pValue) return true;return false;}
function addToHistory(zah) 
{if (isInArray(top.gHistory, zah)==false)
top.gHistory[top.gHistory.length] = zah;}
function goBack() 
{if (top.gHistory.length>1)
{lvURL = top.gHistory[top.gHistory.length-2];top.gHistory.pop();top.fLoadURLInFrame('principale',lvURL);}}function fLoadURLInWithFramev2(zag, zah){var zcb;
if (fLoadURLInFrame.arguments.length>2)
zcb = abk(zag,fLoadURLInFrame.arguments[2]);else
zcb = abk(zag);
if (!(zcb)) 
{if (zag == 'layer_zoom')
popupWindow('waiting.html?'+zah,parent.gZoomWidth,parent.gZoomHeight,zag);if (zag == 'layer_messagebox')
popupWindow('waiting.html?'+zah,400,200,zag);else
popupWindow('waiting.html?'+zah,400,400,zag);}
else if (zcb)
{if (zag=='principale') addToHistory(zah);zah = zah + '&srclayer=' + zag;
var lvABC = zcb.firstChild;if (lvABC)
{    lvABC.src = 'waiting.html?'+zah;}
        else
{zcb.src = 'waiting.html?'+zah;}}}
function fLoadURLInFramev2(zag, zah){if (top.gHasFrames==1)
{fLoadURLInWithFramev2(zag, zah);}
else
{var zbi = aay(zag);var zcb;
fShowHideLayer('layer_tips', false);;fShowHideLayer('layer_calendar', false);
/* top.fManageEvent(gCurrentDocument, false);*/
if (fLoadURLInFrame.arguments.length>2)
zcb = abk(zag,fLoadURLInFrame.arguments[2]);else
zcb = abk(zag);var lvAutoScroll ='no';
if (zbi>=0)
{zbg = top.zca[zbi]["animate_resize"];if (zbg)
lvAutoScroll = 'auto';}
if (top.abl(zag))
fShowHideLayer(zag, true);
if (zcb)
{if (zag=='principale') addToHistory(zah);zah = zah + '&srclayer=' + zag;
zcb.innerHTML='<iframe onload="top.fSetHeight(this)" onunload="top.fScrollTop()" id="iframe_'+zag+'" src="waiting.html?'+zah+'" allowtransparency="true" width="100%" height="100%"  marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling='+lvAutoScroll+'></iframe>';}}}
function fLoadURLInStandFrame(zag, zah){var zcb = abk(zag);var lvAutoScroll ='no';
fHideTips();zcb.innerHTML='<iframe id="iframe_'+zag+'" src="'+zah+'" allowtransparency="true" width="100%" height="100%"  marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling='+lvAutoScroll+'></iframe>';}
function aba(zag){zcb=abk('iframe_'+zag);
return zcb.src;}
function fActionBasket(zbeObjet,pAction,pSessionID){var lvURL;var lvDate = new Date;lvURL = "portfolio.pgi?UNID="+pSessionID+"&Objet="+zbeObjet+"&AC="+pAction+"&DT="+lvDate.getTime();fLoadURLInFrame(top.gLayerForPortfolio, lvURL);top.callbackActionBasket();}
function fUpdateLightboxCounterBox(pVal){top.gPortfolioSize = pVal;if (top.gLightboxCounterBox) top.gLightboxCounterBox.innerHTML = '['+top.gPortfolioSize +']';}
function abg(zai) 
{        var lvDate = new Date;
if (zai.length>0)
{
if (zai.indexOf("?",0) > 0)
zai = zai+"&DT="+lvDate.getTime();else
zai = zai+"?DT="+lvDate.getTime();
fLoadURLInFrame('treelist', zai);}}function CheckDate(pDate){var lvCount;var lvNumber1, lvNumber2, lvNumber3;var lvValue1, lvValue2, lvValue3;var lvDate;
if (pDate.length>0)
{lvNumber1 = (pDate.substring(0,2));lvNumber2 = (pDate.substring(3,5));lvNumber3 = (pDate.substring(6,10));
lvDate = new Date(lvNumber3,lvNumber2-1,lvNumber1);
lvValue1 = lvDate.getDate();lvValue2 = lvDate.getMonth()+1;lvValue3 = lvDate.getFullYear();
if ((lvNumber1 == lvValue1)&&(lvNumber2 == lvValue2)&&(lvNumber3 == lvValue3))
{if((pDate.charAt(2)=="/")&&(pDate.charAt(5)=="/"))
{return(true);}}else
{return(false);}}else
{return(true);}}function CheckForm1(pForm, pLanguage){var lvSaisieOK = 1;var lvHasDate, lvValueDate = 0;var lvIdx, lvChecked=0,lvChoice=0,lvCountObj = 0;
lvCountObj = pForm.elements.length;for(lvIdx=0;lvIdx<lvCountObj;lvIdx++)
{if (pForm.elements[lvIdx].type=="date")
{// Test du champ Date
lvHasDate = 1;if (CheckDate(pForm.datestart.value) == 0)
{  if (pLanguage==1) 
  alert("La date de début de recherche n'est pas valide. Le format est jj/mm/aaaa.");else if (pLanguage==3) 
  alert("Das Anfangsdatum der Suche ist nicht gültig. Das Format lautet tt/mm/jjjj.");else if (pLanguage==5) 
  alert("Il valore data di inizio non è valido. Il formato della data è gg/mm/aaaa.");else if (pLanguage==6) 
  alert("El valor de fecha inicial no es válido. El formato de fecha es dd/mm/aaaa.");else
  alert("The Start date value is not valid. The date format is dd/mm/yyyy.");pForm.datestart.focus();lvSaisieOK = 0;}
if (CheckDate(pForm.dateend.value) == 0)
{  if (pLanguage==1) 
  alert("La date de fin de recherche n'est pas valide. Le format est jj/mm/aaaa.");else if (pLanguage==3) 
  alert("Das Enddatum für die Suche ist nicht gültig. Das Format lautet tt/mm/jjjj.");else if (pLanguage==5) 
  alert("Il valore data finale non è valido. Il formato della data è gg/mm/aaaa.");else if (pLanguage==6) 
  alert("El valor de fecha final no es válido. El formato de fecha es dd/mm/aaaa.");else
  alert("The End date value is not valid. The date format is dd/mm/yyyy.");pForm.dateend.focus();lvSaisieOK = 0;}}else if (pForm.elements[lvIdx].type=="checkbox")
{if ((pForm.elements[lvIdx].checked)&&(pForm.elements[lvIdx].name!='explain')&&(pForm.elements[lvIdx].name!='synonyms'))
{lvChecked++;}}}
if (lvSaisieOK == 1)
{if (lvHasDate==1) 
{if ((pForm.datestart.value=="")&&(pForm.dateend.value==""))
{lvValueDate = 0;}
else
{lvValueDate = 1;}}if ((pForm.ValueWord.value=="")&&(lvChecked==0)&&(lvValueDate==0))
{  if (pLanguage==1) 
 alert("Vous devez renseigner au moins une valeur pour effectuer une recherche.");else if (pLanguage==3) 
  alert("Sie müssen mindestens einen Wert angeben, um die Suche durchführen zu können.");else if (pLanguage==5) 
  alert("Devi inserire almeno un valore per eseguire una ricerca.");else if (pLanguage==6) 
  alert("Debe introducir al menos un valor para llevar a cabo la búsqueda.");else
 alert("You must enter at least one value to perform a search.");pForm.ValueWord.focus();lvSaisieOK = 0;}
else
{lvSaisieOK = 1;}}if (lvSaisieOK == 0)
{return(false);}
else
{return(true);}}function CheckForm2(pForm, pLanguage){var lvSaisieOK = 1;var lvHasDate, lvValueDate = 0;var lvIdx, lvChecked=0,lvChoice=0,lvCountObj = 0;
lvCountObj = pForm.elements.length;
for(lvIdx=0;lvIdx<lvCountObj;lvIdx++)
{if (pForm.elements[lvIdx].type=="date")
{lvHasDate = 1;if (CheckDate(pForm.datestart.value) == 0)
{ if (pLanguage==1) 
  alert("La date de début de recherche n'est pas valide. Le format est jj/mm/aaaa.");else if (pLanguage==3) 
  alert("Das Anfangsdatum der Suche ist nicht gültig. Das Format lautet tt/mm/jjjj.");else if (pLanguage==5) 
  alert("Il valore data di inizio non è valido. Il formato della data è gg/mm/aaaa.");else if (pLanguage==6) 
  alert("El valor de fecha inicial no es válido. El formato de fecha es dd/mm/aaaa.");else
  alert("The Start date value is not valid. The date format is dd/mm/yyyy.");pForm.datestart.focus();lvSaisieOK = 0;}
if (CheckDate(pForm.dateend.value) == 0)
{  if (pLanguage==1) 
  alert("La date de fin de recherche n'est pas valide. Le format est jj/mm/aaaa.");else if (pLanguage==3) 
  alert("Das Enddatum für die Suche ist nicht gültig. Das Format lautet tt/mm/jjjj.");else if (pLanguage==5) 
  alert("Il valore data finale non è valido. Il formato della data è gg/mm/aaaa.");else if (pLanguage==6) 
  alert("El valor de fecha final no es válido. El formato de fecha es dd/mm/aaaa.");else
  alert("The End date value is not valid. The date format is dd/mm/yyyy.");pForm.dateend.focus();lvSaisieOK = 0;}}else if (pForm.elements[lvIdx].type=="checkbox")
{if (pForm.elements[lvIdx].checked)
{lvChecked++;}}else
{if ((pForm.elements[lvIdx].type=="select-one")&&(pForm.elements[lvIdx].name.substr(0,7) == 'KeyWord'))
{var lvOperator = pForm.elements[lvIdx+1].options[pForm.elements[lvIdx+1].selectedIndex].value;if ((pForm.elements[lvIdx].selectedIndex>0)&&(lvOperator>=0)&&(pForm.elements[lvIdx+2].value.length>1))
{lvChoice++;}}}}if (lvSaisieOK == 1)
{if (lvHasDate==1) 
{if ((pForm.datestart.value=="")&&(pForm.dateend.value==""))
lvValueDate = 0;else
lvValueDate = 1;}
if ((lvChecked==0)&&(lvChoice==0)&&(lvValueDate==0))
{
  if (pLanguage==1) 
 alert("Vous devez renseigner au moins une valeur pour effectuer une recherche.");else if (pLanguage==3) 
  alert("Sie müssen mindestens einen Wert angeben, um die Suche durchführen zu können.");else if (pLanguage==5) 
  alert("Devi inserire almeno un valore per eseguire una ricerca.");else if (pLanguage==6) 
  alert("Debe introducir al menos un valor para llevar a cabo la búsqueda.");else
 alert("You must enter at least one value to perform a search.");pForm.ValueWord1.focus();lvSaisieOK = 0;}
else
{lvSaisieOK = 1;}}if (lvSaisieOK == 0)
{return(false);}
else
{return(true);}}function CheckForm3(pForm, pLanguage){var lvSaisieOK = 1;var lvHasDate, lvValueDate = 0;var lvIdx, lvIdx2=0, lvChecked=0,lvChoice=0,lvCountObj = 0,lvCountOption=0;var lvSelection="";
lvCountObj = pForm.elements.length;for(lvIdx=0;lvIdx<lvCountObj;lvIdx++)
{if (pForm.elements[lvIdx].type=="date")
{lvHasDate = 1;if (CheckDate(pForm.datestart.value) == 0)
{if (pLanguage==1)
alert("La date de début de recherche n'est pas valide. Le format est jj/mm/aaaa.");else if (pLanguage==3) 
  alert("Das Anfangsdatum der Suche ist nicht gültig. Das Format lautet tt/mm/jjjj.");else if (pLanguage==5) 
  alert("Il valore data di inizio non è valido. Il formato della data è gg/mm/aaaa.");else if (pLanguage==6) 
  alert("El valor de fecha inicial no es válido. El formato de fecha es dd/mm/aaaa.");else
alert("The Start date value is not valid. The date format is dd/mm/yyyy.");pForm.datestart.focus();lvSaisieOK = 0;}
if (CheckDate(pForm.dateend.value) == 0)
{if (pLanguage==1)
alert("La date de fin de recherche n'est pas valide. Le format est jj/mm/aaaa.");else if (pLanguage==3) 
  alert("Das Enddatum für die Suche ist nicht gültig. Das Format lautet tt/mm/jjjj.");else if (pLanguage==5) 
  alert("Il valore data finale non è valido. Il formato della data è gg/mm/aaaa.");else if (pLanguage==6) 
  alert("El valor de fecha final no es válido. El formato de fecha es dd/mm/aaaa.");else
alert("The End date value is not valid. The date format is dd/mm/yyyy.");pForm.dateend.focus();lvSaisieOK = 0;}}else if (pForm.elements[lvIdx].type=="checkbox")
{if ((pForm.elements[lvIdx].checked)&&(pForm.elements[lvIdx].name!='explain')&&(pForm.elements[lvIdx].name!='synonyms'))
{lvChecked++;}}if (pForm.elements[lvIdx].type=="select-multiple")
{
lvCountOption = pForm.elements[lvIdx].length;for(lvIdx2=0;lvIdx2<lvCountOption;lvIdx2++)
{
if (pForm.elements[lvIdx].options[lvIdx2].selected)
{if (pForm.elements[lvIdx].options[lvIdx2].value != 0)
{if (lvSelection.length>0)
{lvSelection = lvSelection+','+pForm.elements[lvIdx].options[lvIdx2].value;}
else
{lvSelection = pForm.elements[lvIdx].options[lvIdx2].value;}}}}}}if (lvSaisieOK == 1)
{if (lvHasDate==1) 
{if ((pForm.datestart.value=="")&&(pForm.dateend.value==""))
lvValueDate = 0;else
lvValueDate = 1;}
if ((lvSelection=="")&&(lvValueDate==0)&&(lvChecked==0))
{if (pLanguage==1)
alert("Vous devez renseigner au moins une valeur pour effectuer une recherche.");else if (pLanguage==3) 
  alert("Sie müssen mindestens einen Wert angeben, um die Suche durchführen zu können.");else if (pLanguage==5) 
  alert("Devi inserire almeno un valore per eseguire una ricerca.");else if (pLanguage==6) 
  alert("Debe introducir al menos un valor para llevar a cabo la búsqueda.");else
alert("You must enter at least one value to perform a search.");lvSaisieOK = 0;}
else
{lvSaisieOK = 1;}}pForm.ivSelection.value = lvSelection;
if (lvSaisieOK == 0)
{return(false);}
else
{return(true);}}function GetForm3(pForm, pLanguage){var lvSaisieOK = 1;
if (pForm.ValueWord.value=="")
{
if (pLanguage==1)
alert("Vous devez renseigner une valeur pour effectuer un filtre sur les mots-clés.");else if (pLanguage==3) 
  alert("Sie müssen einen Wert angeben, um für Ihre Schlüsselwörter einen Filter einzubauen.");else if (pLanguage==5) 
  alert("Devi inserire un termine o la parte di un termine per eseguire un filtro con delle parole chiave.");else if (pLanguage==6) 
  alert("Debe introducir un término o parte de un término para realizar un filtrado de palabras clave.");else
alert("You must enter a term or a part of a term in order to filter on keywords.");pForm.ValueWord.focus();lvSaisieOK = 0;}
else
{lvSaisieOK = 1;}

if (lvSaisieOK == 0)
{return(false);}
else
{return(true);}}function CheckStdForm(pForm){var lvSaisieOK = 1;
if (pForm.userrequest.value=="")
{
alert("Vous devez renseigner une valeur pour effectuer une recherche.");pForm.userrequest.focus();lvSaisieOK = 0;}
else
{lvSaisieOK = 1;}
if (lvSaisieOK == 0)
{return(false);}
else
{return(true);}}function CheckOrder(pForm, pLanguage){var lvSaisieOK = 1;
lvCountObj = pForm.elements.length;for(lvIdx=0;lvIdx<lvCountObj;lvIdx++)
{if ((pForm.elements[lvIdx].type=="checkbox") && (pForm.elements[lvIdx].checked==false))
{
if (pForm.elements[lvIdx].name=="agree")
{if (pLanguage==1)
alert("Pour poursuivre, vous devez accepter nos conditions générales de cession et de vente.");else if (pLanguage==3) 
  alert("Um weiterzuverfahren, müssen Sie erst die allgemeinen Geschäftsbedingungen akzeptieren.");else if (pLanguage==5) 
  alert("Per ordinare devi accettare i nostri termini e le nostre condizioni.");else if (pLanguage==6) 
  alert("Para realizar un pedido, debe aceptar nuestros términos y condiciones.");else
alert("To order, you must accept our terms and conditions.");lvSaisieOK = 0;}
else if((pForm.elements[lvIdx].name!="agree") && (pForm.elements[lvIdx].name.indexOf('ischeckeditem_',0) < 0))
{if (pLanguage==1)
alert("Pour poursuivre, vous devez valider votre commande.");else
alert("To continue, you must confirm your order.");lvSaisieOK = 0;}}}

if (lvSaisieOK == 0)
{return(false);}
else
{return(true);}}function popupWindow(pFile,w,h,zag,pAddon) 
{if(screen.width)
{var winl = (screen.width-w)/2;var wint = (screen.height-h)/2;}
else
{winl = 0;wint =0;}
if (winl < 0) winl = 0;if (wint < 0) wint = 0;pAddon = "titlebar=no,menubar=no,toolbar=no,location=no,scrollbars=0,resizable=1,status=no,directories=no,copyhistory=no,hotkeys=no";var lvS = 'height=' + h + ',' + 'width=' + w + ',' + 'top=' + wint + ',' + 'left=' + winl + ',' + pAddon;
win = window.open(pFile,zag,lvS);win.window.focus();}
function fOpenWindow(zai){var lvNavigator=navigator.userAgent.toLowerCase();var lvMac=(lvNavigator.indexOf("mac") != -1);if (lvMac)
{lvMenuBar=1;}
else
{lvMenuBar=0;}
window.open(zai,"popup","top=10,left=10,width=400,height=400,menubar="+lvMenuBar+",resizable=1,status=0,scrollbars=1");}
function fConfirm(){var name = confirm("Confirmation?");
return name;}function fShowTips(pTitle,pSubTitle,zaf) 
{var zcb = abk('layer_tips');var lvText = '';
if (pTitle.length>0)
lvText = '<tr><td class="generictipsheader" valign="top" width="100%">' + pTitle+'</td></tr>';
if (pSubTitle.length>0) 
lvText = lvText + '<tr><td class="generictipsbody" valign="top" width="100%">' + pSubTitle+'</td></tr>';
if (lvText.length>0)
lvText = '<table border="0" cellpadding="2" cellspacing="0" width="100%">'+lvText+'</table>';
zcb.innerHTML=lvText;
zcb.style.top = top.gPosY + zcb.offsetHeight + 32;
var lvPosX = top.gPosX;
if (gDocWidth<lvPosX+zcb.offsetWidth)
lvPosX = gDocWidth - zcb.offsetWidth- 20;
zcb.style.left = lvPosX;
fShowHideLayer('layer_tips', true);}
function fHideTips() 
{fShowHideLayer('layer_tips', false);}
function getMousePos(e) 
{if (gCurrentDocument.all) 
{aaj=gCurrentDocument.event.clientX+gCurrentDocument.body.scrollLeft;
aak=gCurrentDocument.event.clientY+gCurrentDocument.body.scrollTop;}
else 
{aaj=e.pageX;
aak=e.pageY;
}}function fDocumentAdded(pNum, pDoc){if (document.layers)
{eval('pDoc.docLayer_' + pNum).className = "thumbselected";}
else
{if(pDoc.getElementById('docLayer_' + pNum))
{ 
pDoc.getElementById('docLayer_' + pNum).className = "thumbselected";}}}
function fGetPageSize(pQueryString){if (document.all){pWinWidth = document.body.clientWidth-1;pWinHeight = document.body.clientHeight;}else{pWinWidth = window.innerWidth-22;pWinHeight = window.innerHeight;}
var lvURL = 'photoslist.pgi?'+pQueryString+'&ww='+pWinWidth+'&wh='+pWinHeight;
fLoadURLInFrame('principale', lvURL);}
function fGetPageSizeByName(pQueryString, zag){if (document.all){pWinWidth = document.body.clientWidth-1;pWinHeight = document.body.clientHeight;}else{pWinWidth = window.innerWidth-22;pWinHeight = window.innerHeight;}
var lvURL = zag + '?'+pQueryString+'&ww='+pWinWidth+'&wh='+pWinHeight;
fLoadURLInFrame('principale', lvURL);}
function fAddHistory(zai){var lvCurrentLocation =  new String(zai);if(lvCurrentLocation.indexOf('&back=1',0) == -1)
top.gHistory = lvCurrentLocation +'||'+ top.gHistory;}
function abk(zbe, zal){var lvObject = null;if(document.getElementById)
{if (zal==null)
{
lvObject = document.getElementById(zbe);if (lvObject==null)
lvObject = top.document.getElementById(zbe);}
else
lvObject = zal.getElementById(zbe);}
else if(document.all)
{if (zal==null)
{
lvObject = document.all[zbe];if (lvObject==null)
lvObject = top.document.all[zbe];;}
else
lvObject = zal.all[zbe];}
return lvObject;}
function fpostForm(pForm, pTarget){fLoadURLInFrame(pTarget, fFormToString(pForm));}
function fShowFrame(n,pLangue,pMod){top.gLanguageCode=pLangue;needReload()
}
function fFormToString(pForm) 
{var reqStr = '';
for(i=0;i < pForm.elements.length;i++) 
{ 
isformObject = false;
switch (pForm.elements[i].tagName) 
{ 
case "INPUT": 
switch (pForm.elements[i].type) 
{ 
case "text": 
case "hidden": 
reqStr += pForm.elements[i].name + "=" + pForm.elements[i].value;
isformObject = true;
break;
case "checkbox": 
if (pForm.elements[i].checked) 
{ 
reqStr += pForm.elements[i].name + "=" + pForm.elements[i].value;}else
{ 
reqStr += pForm.elements[i].name + "=";
} 
isformObject = true;
break;
case "radio": 
if (pForm.elements[i].checked) 
{ 
reqStr += pForm.elements[i].name + "=" + pForm.elements[i].value;
isformObject = true;
} 
} 
break;
case "TEXTAREA": 
reqStr += pForm.elements[i].name + "=" + pForm.elements[i].value;
isformObject = true;
break;
case "SELECT": 
var sel = pForm.elements[i];
reqStr += sel.name + "=" + sel.options[sel.selectedIndex].value;
isformObject = true;
break;
} 
if ((isformObject) && ((i+1)!= pForm.elements.length)) 
{ 
reqStr += "&";
} 
} 
if (reqStr.length>0)
{reqStr = reqStr.replace(/\"/g,'&quot;');reqStr = pForm.action+'?'+reqStr;}
return reqStr;
} 
function abl(zam){var lvIsHidden= false;var zcb = abk(zam);if (zcb != top.gUndefined)
{if (aac)
{
if (zcb.visibility == 'hide')
lvIsHidden = true;}
else
{if ((zcb.style.visibility == 'hidden') || (zcb.style.visibility == ''))
lvIsHidden = true;}}return lvIsHidden;}
function fShowHideLayer(zag, zan){zcb = abk(zag);if (zcb != top.gUndefined)
{if (aac)
{if (zan != true)
lvVisible = "hide";
else
lvVisible = "show";
zcb.visibility = lvVisible;}
else
{if (zan != true)
lvVisible = "hidden";
else
lvVisible = "visible";
zcb.style.visibility = lvVisible;}}else
{alert('Layer not found : '+zag);}
var zbi = aay(zag);lvDisableBackground = top.zca[zbi]["disable_background"];
if ((zag=='layer_windowbox') || (zag=='layer_messagebox'))
{if (top.abl('layer_zoom')==false)
lvDisableBackground = false;/* fShowHideLayer('layer_zoom', false);*/
}
if (lvDisableBackground)
{top.fShowHideLayer('layer_disablebox', zan);if (aad) top.fActivate(zan);}}function fActivate(pMode) 
{var lvIframe = top.gUndefined;
lvIframe = document.getElementById('iframe_principale');
if (lvIframe != top.gUndefined)
{var s = lvIframe.contentWindow.document.getElementsByTagName('select');var len = s.length;
for (i = 0;i<len;i++)
{if (pMode)
s[i].style.visibility = 'hidden';else
s[i].style.visibility = 'visible';}}lvIframe = document.getElementById('iframe_layer_header');
if (lvIframe != top.gUndefined)
{var s = lvIframe.contentWindow.document.getElementsByTagName('select');var len = s.length;
for (i = 0;i<len;i++)
{if (pMode)
s[i].style.visibility = 'hidden';else
s[i].style.visibility = 'visible';}}}

function abn(zao, zap, zaq, zag, zah, zar, zas, zat, zau, 
zav, zaw, zax, zay, zanLoading, zba, zbb, zbc) 
{var zbi = 0;if (zap==-1)
zbi = zao.length;else
zbi = zap;
zao[zbi] = new Array(23);zao[zbi]["name"] = zag;zao[zbi]["zIndex"] = zaq;zao[zbi]["left"] = zar;zao[zbi]["top"] = zas;zao[zbi]["width"] = zat;zao[zbi]["height"] = zau;zao[zbi]["margin-left"] = zav;zao[zbi]["margin-right"] = zaw;zao[zbi]["margin-top"] = zax;zao[zbi]["margin-bottom"] = zay;zao[zbi]["show_loading"] = zanLoading;zao[zbi]["animate_resize"] = zba;zao[zbi]["disable_background"] = zbb;zao[zbi]["hide_on_startup"] = zbc;zao[zbi]["origin_left"] = zar;zao[zbi]["origin_top"] = zas;zao[zbi]["origin_width"] = zat;zao[zbi]["origin_height"] = zau;zao[zbi]["origin_margin-left"] = zav;zao[zbi]["origin_margin-right"] = zaw;zao[zbi]["origin_margin-top"] = zax;zao[zbi]["origin_margin-bottom"] = zay;zao[zbi]["embed_slidder"] = gUndefined;
zcb=abk(zao[zbi]["name"])
zcb.zindex=1;
if (zah.length>0)
{fLoadURLInFrame(zag, zah);}
if (zbc)
fShowHideLayer(zag, false);}
function abo(zam, zau) 
{if(top.document.layers)
{zam.clip.height = zau;}
else if(window.opera)
{zam.style.pixelHeight = zau;}
else
{zam.height = zau + 'px';}}function abp(zam) 
{var zbj = zam["left"];var zbk = zam["top"];var zbl = zam["width"];var zbm = zam["height"];var zbn = zam["margin-left"];var zbo = zam["margin-right"];var zbp = zam["margin-top"];var zbq = zam["margin-bottom"];
var zcb,zbv,zbr,zbs, zbu,zbt;var zbw,zbx,zby;
if((zcb=abk(zam["name"]))==null)
return;
zcb.style.zIndex =  zam["zIndex"];
zby = '';
if((parseInt(navigator.appVersion)>4 || navigator.userAgent.indexOf("MSIE")>-1)&& !window.opera)
zby = "px";
if(window.innerWidth) 
{zbw = window.innerWidth;zbx = window.innerHeight;}
else if(top.document.body) 
{zbw=top.document.body.clientWidth;zbx=top.document.body.clientHeight;if(top.document.body.offsetWidth == zbw && top.document.documentElement && top.document.documentElement.clientWidth) 
 zbw=top.document.documentElement.clientWidth;if(top.document.body.offsetHeight == zbx && top.document.documentElement && top.document.documentElement.clientHeight) 
     zbx=top.document.documentElement.clientHeight;}
zbv=(top.document.layers)?zcb:zcb.style;
if(zbl=='auto') 
{if(zbj=='auto')
zbu = zbw-zbn-zbo;else
zbu = zbw-zbj-zbo;}
else
zbu = zbl;
if(zbm=='auto') 
{if(zbk=='auto')
zbt = zbx-zbp-zbq;else
zbt = zbx-zbk-zbq;}else
zbt = zbm;
if(zbj=='auto') 
{if(zbl=='auto')
zbr=zbn;else
zbr=zbw-zbl-zbo;}
else
zbr=zbj;
if(zbk=='auto') 
{if(zbm=='auto')
zbs=zbp;else
zbs=zbx-zbm-zbq;}
else
zbs=zbk;
if (zbj.indexOf('%')>0)
{zbv.left = zbj;zbv.marginLeft = zbn + zby;}
else
zbv.left = zbr + zby;
if (zbk.indexOf('%')>0)
{zbv.top = zbk;zbv.marginTop = zbp + zby;}
else
zbv.top = zbs + zby;
if(top.document.layers)
{zcb.clip.height = zbt;zcb.clip.width = zbu;}
else if(window.opera)
{zcb.style.pixelHeight = zbt;zcb.style.pixelWidth = zbu;}
else
{zbv.width  = zbu + zby;if (zbm.indexOf('%')>0)
zbv.height = zbm;else
zbv.height = zbt + zby;}
if (zam["embed_slidder"] != top.gUndefined)
{abq(zam, zbt);
}}function abq(zam, zbd){var zby = '';var zbv;var lvRetrieveVar;var zbz;
lvRetrieveVar = "var lvSlidder = " + zam["embed_slidder"] + ";";eval(lvRetrieveVar);
if((parseInt(navigator.appVersion)>4 || navigator.userAgent.indexOf("MSIE")>-1)&& !window.opera)
zby = "px";
zbz = zbd;for (var i=0;i<lvSlidder.childs.length;i++)
{var lvChild = lvSlidder.childs[i];var lvMain = lvChild.divMain;var lvHeader = lvChild.divHeader;var lvContent = lvChild.divContent;
if (lvChild.divHeight == 'auto')
{
lvMainLayerHeight = zbz;zbt = zbz - lvSlidder.headerHeight;}
else
{lvMainLayerHeight = lvChild.divHeight;zbt = lvChild.divHeight - lvSlidder.headerHeight;zbz -= lvChild.divHeight;}
if(document.layers)
{lvMain.clip.height = lvMainLayerHeight;lvContent.clip.height = zbt;}
else if(window.opera)
{lvMain.style.pixelHeight = lvMainLayerHeight;lvContent.style.pixelHeight = zbt;}
else
{lvMain.style.height  = lvMainLayerHeight + zby;lvContent.style.height  = zbt + zby;}}}
function abr(){for (var i=0;i<top.zca.length;i++)
abp(top.zca[i]);}
function fCloseEditing(){top.callbackCloseEditing();}
function hideWindow(pHide){zcb = top.abk('layer_window');
if (pHide)
zcb.style.display='none';else
zcb.style.display='block';}function callBackClosezoom(){top.hideWindow(false);
zcb = abk('layer_zoom');if (zcb)
var lvABC = zcb.firstChild;if (lvABC)
{   lvABC.src = 'about:blank';}
}