home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 June / Chip_2002-06_cd1.bin / sharewar / guru / js / loadold.js < prev    next >
Encoding:
JavaScript  |  2001-11-12  |  2.0 KB  |  66 lines

  1. // writen by Petr KleteΦka (kletecka@email.cz)
  2.  
  3. function loadOld() {
  4.  
  5. // definice prom∞nejch a vodka∩ sou
  6. PrecitajCookie
  7. var firma = PrecitajCookie("firma")
  8. var vobor = PrecitajCookie("vobor")
  9. var jmeno = PrecitajCookie("jmeno")
  10. var pozice = PrecitajCookie("pozice")
  11.  
  12. var ulice = PrecitajCookie("ulice")
  13. var mesto = PrecitajCookie("mesto")
  14. var psc = PrecitajCookie("psc")
  15.  
  16. var tel = PrecitajCookie("tel")
  17. var gsm = PrecitajCookie("gsm")
  18. var url = PrecitajCookie("url")
  19. var mail = PrecitajCookie("mail")
  20.  
  21.  
  22.  
  23. if(firma == "null"){document.input.firma.value =" "}
  24. if(vobor == "null"){document.input.vobor.value =" "}
  25. if(jmeno == "null"){document.input.jmeno.value =" "}
  26. if(pozice == "null"){document.input.pozice.value =" "}
  27.  
  28. if(ulice == "null"){document.input.ulice.value =" "}
  29. if(mesto == "null"){document.input.mesto.value =" "}
  30. if(psc == "null"){document.input.psc.value =" "}
  31.  
  32. if(tel == "null"){document.input.tel.value =" "}
  33. if(gsm == "null"){document.input.gsm.value =" "}
  34. if(url == "null"){document.input.url.value =" "}
  35. if(mail == "null"){document.input.mail.value =" "}
  36.  
  37. if(firma == "undefined"){document.input.firma.value =" "}
  38. if(vobor == "undefined"){document.input.vobor.value =" "}
  39. if(jmeno == "undefined"){document.input.jmeno.value =" "}
  40. if(pozice == "undefined"){document.input.pozice.value =" "}
  41.  
  42. if(ulice == "undefined"){document.input.ulice.value =" "}
  43. if(mesto == "undefined"){document.input.mesto.value =" "}
  44. if(psc == "undefined"){document.input.psc.value =" "}
  45.  
  46. if(tel == "undefined"){document.input.tel.value =" "}
  47. if(gsm == "undefined"){document.input.gsm.value =" "}
  48. if(url == "undefined"){document.input.url.value =" "}
  49. if(mail == "undefined"){document.input.mail.value =" "}
  50.  
  51. document.input.firma.value = firma
  52. document.input.vobor.value = vobor
  53. document.input.jmeno.value = jmeno
  54. document.input.pozice.value = pozice
  55.  
  56. document.input.ulice.value = ulice
  57. document.input.mesto.value = mesto
  58. document.input.psc.value = psc
  59.  
  60. document.input.tel.value = tel
  61. document.input.gsm.value = gsm
  62. document.input.url.value = url
  63. document.input.mail.value = mail
  64.  
  65. }
  66.