1 2function detail(id,titul,sirka,vyska) 3{ 4var sirka_okna=sirka; 5var vyska_okna=vyska; 6var atr="width="+sirka_okna+",height="+vyska_okna+",menubar=no,directories=no,toolbar=no,scrollbars=no,resizable=yes"; 7 8 9okno_fotky=window.open("","okno",atr); 10okno_fotky.document.open(); 11 12okno_fotky.document.writeln("<html>\n<head>\n<title>"+titul+"</title>"); 13okno_fotky.document.writeln("</head>\n<body>\n"); 14 15okno_fotky.document.write("<img src=\"./data/foto_katalog/"+id+".jpg\" width=\""+sirka+"\" height=\""+vyska+"\" align=\"center\" border=\"0\" alt=\""+titul+"\">\n"); 16 17okno_fotky.document.writeln("</html>\n</body>\n") 18 19okno_fotky.document.close(); 20okno_fotky.focus(); 21} 22 23 24 25 26 27 28 29 30 31function ilustrace(id_ps) 32{ 33 document.getElementById('logo').src="/humlmusic_new_final/data/foto_ps/"+id_ps+".jpg"; 34 35} 36 37function VratitLogo() 38{ 39 document.getElementById('logo').src="/humlmusic_new_final/images/logo.gif"; 40 41} 42 43 44 45 46function ZobrazSkryj(idecko,odkaz) 47{ 48 Prvek=document.getElementById(idecko).style; 49 Prvek.display=(Prvek.display == 'block')?'none':'block'; 50} 51 52 53 54function RozbalZabal(id) 55{ 56 root=""; 57 58 //obsah_sekce="kat_"+id; 59 prvek=document.getElementById(id).style; 60 prvek.display=(prvek.display == 'none')?'block':'none'; 61 62 63 znacka=id+"_zn"; 64 if (prvek.display=='block') 65 { 66 document.getElementById(znacka).src=root+'/images/minus.gif'; 67 } 68 else 69 { 70 document.getElementById(znacka).src=root+'/images/plus.gif'; 71 } 72} 73 74 75function KontrolaFormulare(prvek) 76{ 77 chyba=false; 78 79 //nastaveni puvodnich barev v popisech 80 document.getElementById('popis_jmeno').style.color='#cc6600'; 81 document.getElementById('popis_jmeno').style.fontWeight='normal'; 82 document.getElementById('popis_email').style.color='#cc6600'; 83 document.getElementById('popis_email').style.fontWeight='normal'; 84 document.getElementById('popis_vzkaz').style.color='#cc6600'; 85 document.getElementById('popis_vzkaz').style.fontWeight='normal'; 86 87 //skryti upozorneni 88 document.getElementById('upozorneni').style.display='none'; 89 document.getElementById('upozorneni_email').style.display='none'; 90 91 92 //kontrola jmena 93 if (prvek.jmeno.value=="") 94 { 95 //zvýrazneni popisu pole, nastaveni kurzoru do pole s chybou 96 document.getElementById('popis_jmeno').style.color='red'; 97 document.getElementById('popis_jmeno').style.fontWeight='bold'; 98 prvek.jmeno.focus(); 99 100 //vypis upozorneni 101 //document.getElementById('upozorneni').firstChild.nodeValue="DoplÅte prosÃm chybÄjÃcà údaje..."; 102 document.getElementById('upozorneni').style.display='block'; 103 chyba=true; 104 } 105 106 107 //kontrola emailu 108 if (prvek.email.value=="") 109 { 110 111 document.getElementById('popis_email').style.color='red'; 112 document.getElementById('popis_email').style.fontWeight='bold'; 113 prvek.email.focus(); 114 115 //document.getElementById('upozorneni').firstChild.nodeValue="DoplÅte prosÃm chybÄjÃcà údaje..."; 116 document.getElementById('upozorneni').style.display='block'; 117 chyba=true; 118 } 119 else if ((prvek.email.value.indexOf("@")==-1) || (prvek.email.value.indexOf("@")==0)) //kontrola formatu emailu 120 { 121 document.getElementById('popis_email').style.color='red'; 122 document.getElementById('popis_email').style.fontWeight='bold'; 123 prvek.email.focus(); 124 125 //document.getElementById('upozorneni').firstChild.nodeValue="Zadejte prosÃm emailovou adresu ve správném tvaru..."; 126 document.getElementById('upozorneni_email').style.display='block'; 127 chyba=true; 128 } 129 130 131 132 //kontrola vzkazu 133 if (prvek.vzkaz.value=="") 134 { 135 136 document.getElementById('popis_vzkaz').style.color='red'; 137 document.getElementById('popis_vzkaz').style.fontWeight='bold'; 138 prvek.vzkaz.focus(); 139 140 //document.getElementById('upozorneni').firstChild.nodeValue="DoplÅte prosÃm chybÄjÃcà údaje..."; 141 document.getElementById('upozorneni').style.display='block'; 142 chyba=true; 143 } 144 145 146 //byla ve formulari chyba ? 147 if (chyba){return false;} 148 149 else {return true;} 150} 151 152function VyberSekci(form) 153{ 154 vybrano=form.menu.selectedIndex; 155 stranka="./"+form.menu[vybrano].value; 156 window.location=stranka; 157} 158 159function OtevriMapu(nazev_mapy) 160{ 161 okno_mapy=window.open("","okno","width=900,height=580,menubar=no,directories=no,toolbar=no,scrollbars=no,resizable=yes"); 162 okno_mapy.document.writeln("<html>\n<head>\n<title>Prodejna hudebnÃch nástrojů HUML MUSIC</title>"); 163 okno_mapy.document.write("<img src=\"./images/"+nazev_mapy+".gif\" width=\"900\" align=\"center\" border=\"0\">"); 164} 165 166function vymaz_obsah(prvek) 167{ 168 document.all[prvek].value=''; 169} 170 171 172function ZvyrazniRadek(co) 173{ 174co.style.background='#dedfa5'; 175//co.style.background='white'; 176//co.style.background=(co.style.background == '#ffff66')?'white':'#ffff66'; 177} 178 179function OdzvyrazniRadek(co) 180{ 181co.style.background='rgb(239,241,252)'; 182//co.style.background=(co.style.background == '#ffff66')?'white':'#ffff66'; 183} 184 185function KontrolaVzkaz(prvek1,prvek2) 186{ 187 188 189//document.write('zavolal'); 190//document.write('warn'); 191 192//vybarvovani nevyplneneho------------------------------------------------- 193if (document.getElementById(prvek1).value==''||document.getElementById(prvek2).value==''){ 194 195 196if (document.getElementById(prvek1).value == ''){ 197document.getElementById(prvek1).style.background = '#ffbcb9'; 198 199} 200else{ 201document.getElementById(prvek1).style.background = 'white'; 202} 203if (document.getElementById(prvek2).value == ''){ 204document.getElementById(prvek2).style.background = '#ffbcb9'; 205 206} 207else{ 208document.getElementById(prvek2).style.background = 'white'; 209} 210 211//break; 212//return false;
213ok=false; 214document.getElementById('warn').innerHTML = 'Položky \"Váš e-mail (jméno)\" a \"Zpráva" musà být vyplnÄné!'; 215//document.write('warn'); 216} 217 218else{ 219//return true; 220ok=true; 221} 222 223return ok; 224}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.