if(!AWS.AWSUPLOAD){AWS.AWSUPLOAD=function(){var e=null;var c="UploadAWSIFrame";var h={};h["application/acad"]=["dwg"];h["application/aom"]=["aom"];h["application/astound"]=["asd","asn"];h["application/cdf"]=["cdf"];h["application/clariscad"]=["ccad"];h["application/drafting"]=["drw"];h["application/dsptype"]=["tsp"];h["application/dxf"]=["dxf"];h["application/envoy"]=["evy"];h["application/fractals"]=["fif"];h["application/futuresplash"]=["spl"];h["application/gzip"]=["gz"];h["application/hdf"]=["hdf"];h["application/hta"]=["hta"];h["application/iges"]=["igs","iges"];h["application/internet-property-stream"]=["acx"];h["application/i-deas"]=["unv"];h["application/listenup"]=["ptlk"];h["application/mac-binhex40"]=["hqx"];h["application/mbedlet"]=["mbd"];h["application/mif"]=["mif"];h["application/msaccess"]=["mdb"];h["application/msexcel"]=["xls","xla"];h["application/mshelp"]=["hlp","chm"];h["application/mspowerpoint"]=["pot","pps","ppt","ppz"];h["application/msword"]=["doc","dot"];h["application/octet-stream"]=["*","bin","class","dms","exe","lha","lzh","com","dll"];h["application/oda"]=["oda"];h["application/olescript"]=["axs"];h["application/pdf"]=["pdf"];h["application/pics-rules"]=["prf"];h["application/pkcs10"]=["p10"];h["application/pkix-crl"]=["crl"];h["application/postscript"]=["ai","eps","ps"];h["application/pro_eng"]=["prt"];h["application/rtc"]=["rtc"];h["application/rtf"]=["rtf"];h["application/set"]=["set"];h["application/set-payment-initiation"]=["setpay"];h["application/set-registration-initiation"]=["setreg"];h["application/sla"]=["stl"];h["application/solids"]=["dwg"];h["application/step"]=["step"];h["application/studiom"]=["smp"];h["application/toolbook"]=["tbk"];h["application/vda"]=["vda"];h["application/vnd.ms-excel"]=["xla","xlc","xlm","xls","xlt","xlw"];h["application/vnd.ms-pkicertstore"]=["sst"];h["application/vnd.ms-pkiseccat"]=["cat"];h["application/vnd.ms-pkistl"]=["stl"];h["application/vnd.ms-powerpoint"]=["pot","pps","ppt"];h["application/vnd.ms-project"]=["mpp"];h["application/vnd.ms-works"]=["wcm","wdb","wks","wps"];h["application/vnd.wap.wmlc"]=["wmlc"];h["application/vocaltec-media-desc"]=["vmd"];h["application/vocaltec-media-file"]=["vmf"];h["application/winhlp"]=["hlp"];h["application/x-bcpio"]=["bcpio"];h["application/x-cdf"]=["cdf"];h["application/x-compress"]=["z"];h["application/x-compressed"]=["tgz"];h["application/x-cpio"]=["cpio"];h["application/x-csh"]=["csh"];h["application/x-director"]=["dcr","dir","dxr"];h["application/x-dvi"]=["dvi"];h["application/x-envoy"]=["evy"];h["application/x-gtar"]=["gtar"];h["application/x-gzip"]=["gz"];h["application/x-hdf"]=["hdf"];h["application/x-httpd-php"]=["php","phtml"];h["application/x-internet-signup"]=["ins","isp"];h["application/x-iphone"]=["iii"];h["application/x-javascript"]=["js"];h["application/x-java-jnlp-file"]=["jnlp"];h["application/x-latex"]=["latex"];h["application/x-mif"]=["mif"];h["application/x-msaccess"]=["mdb"];h["application/x-mscardfile"]=["crd"];h["application/x-msclip"]=["clp"];h["application/x-msdownload"]=["dll"];h["application/x-msmediaview"]=["m13","m14","mvb"];h["application/x-msmetafile"]=["wmf"];h["application/x-msmoney"]=["mny"];h["application/x-mspublisher"]=["pub"];h["application/x-msschedule"]=["scd"];h["application/x-msterminal"]=["trm"];h["application/x-mswrite"]=["wri"];h["application/x-netcdf"]=["cdf","nc"];h["application/x-nschat"]=["nsc"];h["application/x-perfmon"]=["pma","pmc","pml","pmr","pmw"];h["application/x-pkcs12"]=["p12","pfx"];h["application/x-pkcs7-certificates"]=["p7b","spc"];h["application/x-pkcs7-certreqresp"]=["p7r"];h["application/x-pkcs7-mime"]=["p7c","p7m"];h["application/x-pkcs7-signature"]=["p7s"];h["application/x-sh"]=["sh"];h["application/x-shar"]=["shar"];h["application/x-shockwave-flash"]=["swf","cab"];h["application/x-sprite"]=["spr","sprite"];h["application/x-stuffit"]=["sit"];h["application/x-supercard"]=["sca"];h["application/x-sv4cpio"]=["sv4cpio"];h["application/x-sv4crc"]=["sv4crc"];h["application/x-tar"]=["tar"];h["application/x-tcl"]=["tcl"];h["application/x-tex"]=["tex"];h["application/x-texinfo"]=["texi","texinfo"];h["application/x-troff"]=["roff","t","tr"];h["application/x-troff-man"]=["man"];h["application/x-troff-me"]=["me"];h["application/x-troff-ms"]=["ms"];h["application/x-ustar"]=["ustar"];h["application/x-wais-source"]=["src"];h["application/x-x509-ca-cert"]=["cer","crt","der"];h["application/ynd.ms-pkipko"]=["pko"];h["application/zip"]=["zip"];h["audio/basic"]=["au","snd"];h["audio/echospeech"]=["es"];h["audio/mid"]=["mid","rmi"];h["audio/mpeg"]=["mp3"];h["audio/tsplayer"]=["tsi"];h["audio/voxware"]=["vox"];h["audio/x-aiff"]=["aif","aifc","aiff"];h["audio/x-dspeeh"]=["dus","cht"];h["audio/x-midi"]=["mid","midi"];h["audio/x-mpeg"]=["mp2"];h["audio/x-mpegurl"]=["m3u"];h["audio/x-pn-realaudio"]=["ra","ram"];h["audio/x-pn-realaudio-plugin"]=["rpm"];h["audio/x-qt-stream"]=["stream"];h["audio/x-wav"]=["wav"];h["drawing/x-dwf"]=["dwf"];h["image/bmp"]=["bmp"];h["image/cis-cod"]=["cod"];h["image/cmu-raster"]=["ras"];h["image/fif"]=["fif"];h["image/gif"]=["gif"];h["image/ief"]=["ief"];h["image/jpeg"]=["jpe","jpeg","jpg"];h["image/pipeg"]=["jfif"];h["image/svg+xml"]=["svg"];h["image/tiff"]=["tif","tiff"];h["image/vasa"]=["mcf"];h["image/vnd.wap.wbmp"]=["wbmp"];h["image/x-cmu-raster"]=["ras","cmu"];h["image/x-cmx"]=["cmx"];h["image/x-freehand"]=["fh4","fh5","fhc"];h["image/x-icon"]=["ico"];h["image/x-png"]=["png"];h["image/x-portable-anymap"]=["pnm"];h["image/x-portable-bitmap"]=["pbm"];h["image/x-portable-graymap"]=["pgm"];h["image/x-portable-pixmap"]=["ppm"];h["image/x-rgb"]=["rgb"];h["image/x-xbitmap"]=["xbm","xpm"];h["image/x-xpixmap"]=["xpm"];h["image/x-xwindowdump"]=["xwd"];h["message/rfc822"]=["mht","mhtml","nws"];h["model/vrml"]=["wrl"];h["multipart/x-zip"]=["zip"];h["multipart/x-gzip"]=["gz","gzip"];h["text/comma-separated-values"]=["csv"];h["text/css"]=["css"];h["text/h323"]=["323"];h["text/html"]=["htm","html","stm","shtml"];h["text/iuls"]=["uls"];h["text/plain"]=["bas","c","h","txt","g","cc","hh","m","f90"];h["text/richtext"]=["rtx"];h["text/rtf"]=["rtf"];h["text/scriptlet"]=["sct"];h["text/tab-separated-values"]=["tsv"];h["text/vnd.wap.wml"]=["wml"];h["text/vnd.wap.wmlscript"]=["wmlsc"];h["text/webviewhtml"]=["htt"];h["text/xml"]=["xml"];h["text/x-component"]=["htc"];h["text/x-setext"]=["etx"];h["text/x-sgml"]=["sgm","sgml"];h["text/x-speech"]=["talk","spc"];h["text/x-vcard"]=["vcf"];h["video/flc"]=["flc"];h["video/mpeg"]=["mp2","mpa","mpe","mpeg","mpg","mpv2"];h["video/quicktime"]=["mov","qt"];h["video/vnd.vivo"]=["viv","vivo"];h["video/x-la-asf"]=["lsf","lsx"];h["video/x-ms-asf"]=["asf","asr","asx"];h["video/x-msvideo"]=["avi"];h["video/x-sgi-movie"]=["movie"];h["x-world/x-3dmf"]=["3dmf","3dm","qd3d","qd3"];h["x-world/x-vrml"]=["flr","vrml","wrl","wrz","xaf","xof"];function i(k,l,m){var j=window.document.createElement("input");j.setAttribute("name",l);j.setAttribute("type","hidden");j.setAttribute("value",m);k.appendChild(j)}function a(j){return j.substring("js_callOnEvent_".length)}function f(){if(e==null){var k=document.getElementsByTagName("input");var l=false;for(var j=0;j<k.length;j++){if(k[j].type&&k[j].type.toLowerCase()=="file"){l=true;break}}if(l){document.write('<iframe id="'+c+'" name="'+c+'" style="visibility:hidden;display:none"></iframe>');e=document.getElementById(c)}}}function d(p,k){var j,m,l,o;if((k==null)||(k=="")){return true}if(p==""){return false}m=p.lastIndexOf(".");if(m==-1){return false}l=p.substring(m+1);j=k.split(",");for(m=0;m<j.length;m++){if(j[m]==""){continue}o=h[j[m].adel_Trim()];if(o){for(var n=0;n<o.length;n++){if(o[n]==l){return true}}}else{j[m]=j[m].adel_Trim();if((j[m].length>2)&&(j[m].charAt(0)=="*")&&(j[m].charAt(1)==".")){if(l==j[m].substring(2)){return true}}}}return false}function b(y,k,x,r,s,w,v,t,u){var q=document.forms[y],o;if((q.enctype&&(q.enctype=="multipart/form-data"))||(q.encoding&&(q.encoding=="multipart/form-data"))){var n,m,j="",l="";m=q.getAttribute("uploadmaxsize");if((m==null)||(m=="")){m="-1"}q.target=c;n=q.action;q.action=AWS.AWSGLOBALS.AWSCONTEXT_PATH+"/AdeliaUploadServlet";j+=m+"#";j+=k+"#";j+=n+"#";j+=x+"#";j+=r+"#";j+=s+"#";j+=y+"#";j+=w+"#";o=q.getElementsByTagName("input");for(var p=0;p<o.length;p++){if(o[p].type&&o[p].type.toLowerCase()=="file"){if(l==""){l+=o[p].name}else{l+=" "+o[p].name}}}j+=l+"#";j+=v;if(typeof t!="undefined"){j+=("#"+t)}if(typeof u!="undefined"&&u!=""){j+=("#"+u)}if(encodeURIComponent){document.cookie="AdeliaUploadServlet="+encodeURIComponent(j)+";path="+AWS.AWSGLOBALS.AWSCONTEXT_PATH+"/AdeliaUploadServlet"}else{document.cookie="AdeliaUploadServlet="+escape(j)+";path="+AWS.AWSGLOBALS.AWSCONTEXT_PATH+"/AdeliaUploadServlet"}return true}return false}AWS.AWSGLOBALS.BodyLoaded.addExec(f,this);function g(k,l){var j;j=l.getAttribute("adeliaevtup");if((j=="false")||(j==false)){return true}if(k){if((k.getAttribute("mandatory")!=null)&&(k.value=="")){AWS.AWSCTRLSCRIPT.SscMessageErreur(AWS.AWSGLOBALS.ISC_ZONE_VIDE);k.focus();return false}if((k.value!="")&&!d(k.value,k.getAttribute("accept"))){AWS.AWSCTRLSCRIPT.SscMessageErreur(AWS.AWSGLOBALS.ISC_WRONG_FILE_EXTENSION);k.focus();return false}}return true}return{uploadFiles:b,setDefaultEnctypeForm:setDefaultEnctypeForm,checkInputFile:g}}()}var uploadFiles=AWS.AWSUPLOAD.uploadFiles;
