function mouseOverOutSearchFormTabBouton(num,div){div_bouton=document.getElementById(div);switch(num){case 0:div_bouton.style.color="#000000";div_bouton.style.textDecoration="none";break;case 1:div_bouton.style.color="#2981C9";div_bouton.style.textDecoration="underline";break;}}function initImportExportZones(){var isImporter=document.getElementById("importer").checked;var isExporter=document.getElementById("exporter").checked;var isBoth=document.getElementById("importerAndExporter").checked;if(isBoth){document.getElementById("importList_line").style.display="";document.getElementById("exportList_line").style.display="";document.getElementById("exporter").disabled=true;document.getElementById("importer").disabled=true;document.getElementById("exporter").checked=true;isExporter=true;document.getElementById("importer").checked=true;isImporter=true;}else{if(isImporter||isExporter){document.getElementById("importerAndExporter").disabled=true;document.getElementById("importerAndExporter").checked=false;if(isImporter&&isExporter){document.getElementById("exporter").checked=true;document.getElementById("importer").checked=true;document.getElementById("importList_line").style.display="";document.getElementById("exportList_line").style.display="";}else{if(isExporter){document.getElementById("exporter").checked=true;document.getElementById("exportList_line").style.display="";document.getElementById("importList_line").style.display="none";}if(isImporter){document.getElementById("importer").checked=true;document.getElementById("importList_line").style.display="";document.getElementById("exportList_line").style.display="none";}}}else{document.getElementById("importerAndExporter").disabled=false;document.getElementById("importList_line").style.display="none";document.getElementById("exportList_line").style.display="none";}}}function refreshImportExportZones(_this){var isImporter=document.getElementById("importer").checked;var isExporter=document.getElementById("exporter").checked;var isBoth=document.getElementById("importerAndExporter").checked;if(_this.id=="importerAndExporter"){if(isBoth){document.getElementById("importList_line").style.display="";document.getElementById("exportList_line").style.display="";document.getElementById("exporter").disabled=true;document.getElementById("importer").disabled=true;document.getElementById("exporter").checked=true;isExporter=true;document.getElementById("importer").checked=true;isImporter=true;}else{document.getElementById("exporter").disabled=false;document.getElementById("importer").disabled=false;document.getElementById("exporter").checked=false;document.getElementById("importer").checked=false;document.getElementById("importList_line").style.display="none";document.getElementById("exportList_line").style.display="none";}}else{if(isImporter||isExporter){document.getElementById("importerAndExporter").disabled=true;document.getElementById("importerAndExporter").checked=false;if(isImporter&&isExporter){document.getElementById("exporter").checked=true;document.getElementById("importer").checked=true;document.getElementById("importList_line").style.display="";document.getElementById("exportList_line").style.display="";}else{if(isExporter){document.getElementById("exporter").checked=true;document.getElementById("exportList_line").style.display="";document.getElementById("importList_line").style.display="none";}if(isImporter){document.getElementById("importer").checked=true;document.getElementById("importList_line").style.display="";document.getElementById("exportList_line").style.display="none";}}}else{document.getElementById("importerAndExporter").disabled=false;document.getElementById("importList_line").style.display="none";document.getElementById("exportList_line").style.display="none";}}return;}function refreshDate(objet){var operator="";if(objet==null){operator=document.getElementById("yearOperatorChoice").value;}else{operator=objet.value;}if(operator=="null"||operator=="netui_null"){document.getElementById("fieldStartYear").style.display="none";document.getElementById("fieldStartYear").value="";document.getElementById("fieldEndYear").style.display="none";document.getElementById("fieldEndYear").value="";}else{document.getElementById("fieldStartYear").style.display="";if(operator=="BETWEEN"){document.getElementById("fieldEndYear").style.display="";}else{document.getElementById("fieldEndYear").style.display="none";document.getElementById("fieldEndYear").value="";}}}function refreshQuality(objet){var operator="";if(objet==null){operator=document.getElementById("qualityAssessmentChoice").value;}else{operator=objet.value;}if(operator=="null"||operator=="netui_null"||operator=="ak"){document.getElementById("fieldQualityAssementType").disabled=true;document.getElementById("fieldQualityAssementType").value="";if(navigator.appName=="Netscape"){document.getElementById("labelQualityAssementType").style.color="#CCCCCC";}else{document.getElementById("labelQualityAssementType").style.color="#CCCCCC";}}else{document.getElementById("fieldQualityAssementType").disabled="";if(navigator.appName=="Netscape"){document.getElementById("labelQualityAssementType").style.color="#323F4D";}else{document.getElementById("labelQualityAssementType").style.color="#323F4D";}}}function refreshPercentSelection(objet){if(document.getElementById("turnoverPlaceSelection")!=null){var operator="";if(objet==null&&document.getElementById("turnoverPlaceSelection")!=null){operator=document.getElementById("turnoverPlaceSelection").value;}else{operator=objet.value;}if(operator=="null"||operator=="netui_null"){document.getElementById("fieldPercent").disabled=true;document.getElementById("fieldPercent").value="";}else{document.getElementById("fieldPercent").disabled="";}}}function restrictinput(maxlength,e,placeholder){if(window.event&&event.srcElement.value.length>=maxlength){return false;}else{if(e.target&&e.target==eval(placeholder)&&e.target.value.length>=maxlength){var pressedkey=/[a-zA-Z0-9\.\,\/]/;if(pressedkey.test(String.fromCharCode(e.which))){e.stopPropagation();}}}}function countlimit(maxlength,e,placeholder,id){var theform=eval(placeholder);var lengthleft=maxlength-theform.value.length;var placeholderobj=document.all?document.all[placeholder]:document.getElementById(placeholder);if(window.event||e.target&&e.target==eval(placeholder)){if(lengthleft<=0){theform.value=theform.value.substring(0,maxlength);lengthleft=0;}document.getElementById(id).innerHTML=lengthleft;}}function displaylimit(thename,theid,thelimit){var ns6=document.getElementById&&!document.all;var theform=theid!=""?document.getElementById(theid):thename;var idlimit="limit"+theid.toString().substr(3,(theid.length-1));var limit_text='<b><span id="'+idlimit+'">'+thelimit+"</span></b>";if(document.all||ns6){document.write(limit_text);}if(document.all){eval(theform).onkeypress=function(){return restrictinput(thelimit,event,theform);};eval(theform).onkeyup=function(){countlimit(thelimit,event,theform,idlimit);};}else{if(ns6){document.body.addEventListener("keypress",function(event){restrictinput(thelimit,event,theform);},true);document.body.addEventListener("keyup",function(event){countlimit(thelimit,event,theform,idlimit);},true);}}}function selectAll(baseName){var idx=0;while(document.getElementById(baseName+idx)!=undefined){if(document.getElementById(baseName+idx).disabled==false){document.getElementById(baseName+idx).checked=true;}idx++;}return false;}function unSelectAll(baseName){var idx=0;while(document.getElementById(baseName+idx)!=undefined){document.getElementById(baseName+idx).checked=false;idx++;}return false;}function mouseOverActivityTabBouton(num,div){div_bouton=document.getElementById(div);switch(num){case 0:div_bouton.style.color="#094E93";div_bouton.style.textDecoration="none";break;case 1:div_bouton.style.color="#2981C9";div_bouton.style.textDecoration="underline";break;}}
