home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 May
/
Chip_2000-05_cd1.bin
/
internet
/
Cybex
/
scripts
/
kosik.js
< prev
next >
Wrap
Text File
|
1999-10-12
|
928b
|
39 lines
function setfocus(line)
{
if (document.frmKosik == null) return
else {
eval("document.frmKosik.k" + document.frmKosik.tot.value).focus()
eval("document.frmKosik.k" + document.frmKosik.tot.value).select()
}
}
function chkKosik(thisform)
{
for (i=1;i<=thisform.tot.value;i++) {
ks = eval("thisform.k"+i+".value")
if (!isIntegerInRange(ks,0,maxks)) {
eval("thisform.k" + i).focus()
eval("thisform.k" + i).select()
if (!isInteger(ks)) {
alert ("PoΦet kus∙ " +i+ ". polo₧ky nenφ zadan² sprßvn∞.\nZadßvejte prosφm pouze celoΦφslnΘ hodnoty.\n\nK vymazßnφ polo₧ky zadejte 0 ks.")
return false
}
if (ks > 30000) {
alert ("PoΦet kus∙ " +i+ ". polo₧ky je p°φliÜ velk².\nNejvφce lze objednat " +maxks+ " kus∙.")
return false
}
}
}
return true
}
prepblik = new Image()
prepblik.src = "images/prepblik.gif"
function fzmena()
{
document.zmena.src = prepblik.src
}