Edit C:\Users\Administrator\AppData\Local\Microsoft\Windows\INetCache\IE\XU1ZLGII\format_tel[1].js
var lesPays = new Array("00012d000000033b", "00012d0000000449", "00012d0000000380", "00012d00000003b6", "00012d0000000401", "00012d0000000476", "00012d000000052a", "00012d0000000542", "00012d000000055a", "00012d0000000407", "00012d00000004c7", "00012d00000005a2", "00012d000002f88d","00012d000000033b","00012d0000000449","00012d0000000434","00012d000000034a","00012d0000000380","00012d00000003b6","00012d0000000401","00012d000000034d","00012d00000004a9","00012d0000000476","00012d000000052a","00012d0000000542","00012d000002f84a","00012d0000000341","00012d0000000344","00012d0000000347","00012d000000033e","00012d0000000350","00012d0000000353","00012d0000000356","00012d0000000359","00012d000000035c","00012d000000035f","00012d0000000362","00012d0000000365","00012d0000000368","00012d000000036b","00012d000000036e","00012d0000000371","00012d0000000374","00012d0000000377","00012d000000055a","00012d000000037a","00012d000000037d","00012d0000000383","00012d0000000386","00012d0000000389","00012d000000038c","00012d000000038f","00012d0000000392","00012d0000000395","00012d0000000398","00012d000000039b","00012d000000039e","00012d00000003a1","00012d00000003a4","00012d00000003a7","00012d00000003aa","00012d00000003ad","00012d00000003b0","00012d00000003b3","00012d00000003b9","00012d00000003bc","00012d00000003bf","00012d00000003c2","00012d00000003c5","00012d00000003c8","00012d00000003cb","00012d00000003ce","00012d00000003d1","00012d00000003d4","00012d00000003d7","00012d00000003da","00012d00000003dd","00012d00000003e0","00012d00000003e3","00012d00000003e6","00012d00000003e9","00012d00000003ec","00012d00000003ef","00012d00000003f2","00012d00000003f5","00012d00000003f8","00012d00000003fb","00012d00000003fe","00012d0000000404","00012d0000000407","00012d000000040a","00012d000000040d","00012d0000000410","00012d0000000413","00012d0000000416","00012d0000000419","00012d000000041c","00012d000000041f","00012d0000000422","00012d0000000425","00012d0000000428","00012d000000042b","00012d000000042e","00012d0000000431","00012d0000000437","00012d000000043a","00012d000000043d","00012d0000000440","00012d0000000443","00012d0000000446","00012d000000044c","00012d000000044f","00012d0000000452","00012d0000000455","00012d0000000458","00012d000000045b","00012d000000045e","00012d0000000461","00012d0000000464","00012d0000000467","00012d000000046a","00012d000000046d","00012d0000000470","00012d0000000473","00012d0000000479","00012d000000047c","00012d000000047f","00012d0000000482","00012d0000000485","00012d0000000488","00012d000000048b","00012d000000048e","00012d0000000491","00012d0000000494","00012d0000000497","00012d000000049a","00012d000000049d","00012d00000004a0","00012d00000004a3","00012d00000004a6","00012d00000004ac","00012d00000004af","00012d00000004b2","00012d00000004b5","00012d00000004b8","00012d00000004bb","00012d00000004be","00012d00000004c1","00012d00000004c4","00012d00000004c7","00012d00000004ca","00012d00000004cd","00012d00000004d0","00012d00000004d3","00012d00000004d6","00012d00000004d9","00012d00000004dc","00012d00000004df","00012d00000004e2","00012d00000004e5","00012d00000004e8","00012d00000004eb","00012d00000004ee","00012d00000004f1","00012d00000004f4","00012d00000004f7","00012d00000004fa","00012d00000004fd","00012d0000000500","00012d0000000503","00012d0000000506","00012d0000000509","00012d000000050c","00012d000000050f","00012d0000000512","00012d0000000515","00012d0000000518","00012d000000051b","00012d000000051e","00012d0000000521","00012d0000000524","00012d0000000527","00012d000000052d","00012d0000000530","00012d0000000533","00012d0000000536","00012d0000000539","00012d000000053c","00012d000000053f","00012d0000000545","00012d0000000548","00012d000000054b","00012d000000054e","00012d0000000551","00012d0000000554","00012d0000000557","00012d000000055d","00012d0000000560","00012d0000000566","00012d0000000569","00012d000000056c","00012d000000056f","00012d0000000572","00012d0000000575","00012d0000000578","00012d000000057b","00012d000000057e","00012d0000000581","00012d0000000584","00012d0000000587","00012d000000058a","00012d000000058d","00012d0000000590","00012d0000000593","00012d0000000596","00012d0000000599","00012d000000059c","00012d000000059f","00012d00000005a2","00012d00000005a5","00012d00000005a8","00012d00000005ab","00012d00000005ae","00012d00000005b1","00012d00000005b4","00012d00000005b7","00012d00000005ba","00012d00000005bd","00012d00000005c0","00012d00000005c3","00012d00000005c6","00012d00000005c9","00012d00000005cc","00012d00000005cf","00012d00000005d2","00012d00000005d5","00012d00000005d8","00012d00000005db","00012d00000005de","00012d00000005e1","00012d00000005e4","00012d00000005e7","00012d00000005ea","00012d00000005ed","00012d00000005f0","00012d00000005f3","00012d00000005f6","00012d00000005f9","00012d00000005fc","00012d00000005ff","00012d0000000602","00012d0000000605","00012d0000000606","00012d000002f855","00012d000002f85d","00012d000002f865","00012d000002f86d","00012d000002f875","00012d000002f87d","00012d000002f885","00012d000002f88d","00012d000002f896","00012d000002f89d"); var lesFormatsTel = new Array("+33 (?) ? ?? ?? ?? ??", "+33 (?) ? ?? ?? ?? ??", "+32 (?) ? ?? ?? ?? ??", "+1 ???-???-????", "+34 (?) ? ?? ?? ?? ??", "+39 (?) ?? ?? ?? ??", "+31 (?) ? ?? ?? ?? ??", "+35 (?) ?? ?? ?? ?? ??", "+44 (?) ? ?? ?? ?? ??", "+1 ??? -???-????", "+212 ??? ?? ?? ??", "+41 ??? ?? ?? ??", "+44 (?)???-???-????","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""); var leTelOrigOuverture = ''; var lePaysOuverture = ''; function doEpurePhone(phone) { epure = ""; for (i=0 ; i<phone.length ; i++) { if (phone.substring(i,i+1) >= "0" && phone.substring(i,i+1) <= "9") { epure += phone.substring(i,i+1); } } return epure; } function doEpurePhone2(phone) { epure = ""; for (i=0 ; i<phone.length ; i++) { if (phone.substring(i,i+1) >= "0" && phone.substring(i,i+1) <= "9") { epure += phone.substring(i,i+1); } } if (epure.length > 10) { epure = '0' + epure.substring(epure.length - 9,epure.length); } return epure; } function formatMasque(masque, entree) { // si pas de masque ou entree vide on rend ce qui est rentre if (masque == "" || entree == "") { return entree; } // Si conforme au masque en rend l'entree if (masque.length == entree.length) { k=i=0; while (k==0 && i < masque.length) { if ((masque.substring(i,i+1) != entree.substring(i,i+1)) && (masque.substring(i,i+1) != "?")) { k=1; } else { i++; } } if (k==0) { return entree; } } // on compte le nbr de ? dans le masque for (cpt=i=0 ; i < masque.length ; i++) { if (masque.substring(i,i+1) == "?") { cpt++; } } // on extrait les chiffres de la saisie epure = ""; for (i=0 ; i < entree.length ; i++) { if (entree.substring(i,i+1) >= "0" && entree.substring(i,i+1) <= "9") { epure += entree.substring(i,i+1); } } // Si le nbr de ? different du nbr de chiffres dans l'entree en rend null if (epure.length != cpt) { res = "Erreur:" + cpt.toString(); return res; } //on recupere le resultat result = ""; j = 0; for (i=0 ; i < masque.length ; i++) { if (masque.substring(i,i+1) == "?") { result += epure.substring(j,j+1); j++; } else { result += masque.substring(i,i+1); } } return result; } function doFormatTel(leChamp , leMsg, leChampPays) { if (!leChampPays) { return; } if (leChampPays.options) { nomPays = leChampPays.options[leChampPays.selectedIndex].value; } else { nomPays = leChampPays.value; } if (!nomPays || nomPays == '') { return; } var posPays = 0; //alert('nomPays ' + nomPays); while ((posPays < lesPays.length) && (lesPays[posPays] != nomPays)) { posPays++; } if(posPays < lesPays.length) { masque = lesFormatsTel[posPays]; //alert('masque ' + masque); //alert('leChamp.value ' + leChamp.value); res = formatMasque(masque , leChamp.value); //alert('res ' + res); if (res.indexOf("Erreur:") != -1) { window.status = leMsg + " Vous devez entrer " + res.substring(7, res.length) + " chiffres."; alert(leMsg + " Vous devez entrer " + res.substring(7, res.length) + " chiffres."); return false; } else { leChamp.value = res; window.status = ""; } } } function doFormatTel_(leChamp , leMsg, leChampPaysVal) { debugger; if (!leChampPaysVal) { return; } nomPays = leChampPaysVal; if (!nomPays || nomPays == '') { return; } var posPays = 0; while ((posPays < lesPays.length) && (lesPays[posPays] != nomPays)) { posPays++; } if(posPays < lesPays.length) { masque = lesFormatsTel[posPays]; res = formatMasque(masque , leChamp.value); if (res.indexOf("Erreur:") != -1) { window.status = leMsg + " Vous devez entrer " + res.substring(7, res.length) + " chiffres."; alert(leMsg + " Vous devez entrer " + res.substring(7, res.length) + " chiffres."); leChamp.style = "background-color: #FDCBCC;" leChamp.value = ''; return false; } else { leChamp.style.backgroundColor = "" leChamp.value = res; window.status = ""; } } } function getTelEpure(masque , entree) { // on extrait les chiffres de la saisie var epure = ""; for (i=0 ; i < entree.length ; i++) { var digit = entree.substring(i, i+1); if (digit >= "0" && digit <= "9") { epure += digit; } } // si pas de masque on rend le tel epure if (masque == "") { return epure; } // Si non conforme au masque en rend le tel epure if (masque.length == entree.length) { k = i = 0; while (k == 0 && i < masque.length) { if ((masque.substring(i,i+1) != entree.substring(i,i+1)) && (masque.substring(i,i+1) != "?")) { k=1; } else { i++; } } if (k != 0) { return epure; } } else { return epure; } // tel conforme au masque : var res = ""; for (i = 0 ; i < masque.length ; i++) { if (masque.substring(i,i+1) == "?") { res += entree.substring(i,i+1); } } return res; } function doEpureTel(leChamp , leChampOrig, leChampPays) { if (!leChampPays) { return; } if (leChampPays.options) { nomPays = leChampPays.options[leChampPays.selectedIndex].value; } else { nomPays = leChampPays.value; } if (!nomPays || nomPays == '') { return; } var posPays = 0; if (nomPays != "" ) { while ((posPays < lesPays.length) && (lesPays[posPays] != nomPays)) { posPays++; } masque = lesFormatsTel[posPays]; leChampOrig.value = getTelEpure(masque , leChamp.value); } }
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de