home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 May
/
Chip_2000-05_cd1.bin
/
internet
/
Cybex
/
scripts
/
pokladna.js
< prev
next >
Wrap
Text File
|
1999-09-17
|
2KB
|
66 lines
function chkOrder(thisform)
{
if (isWhitespace(thisform.jmeno.value))
{
alert ("\nZadejte prosφm svΘ jmΘno a p°φjmenφ.")
thisform.jmeno.focus()
return false
}
if (isWhitespace(thisform.ulice.value))
{
alert ("\nZadejte prosφm ulici.")
thisform.ulice.focus()
return false
}
if (isWhitespace(thisform.mesto.value))
{
alert ("\nZadejte prosφm m∞sto.")
thisform.mesto.focus()
return false
}
if (isWhitespace(thisform.psc.value))
{
alert ("\nZadejte prosφm PS╚.")
thisform.psc.focus()
return false
}
if (!isPSC(thisform.psc.value))
{
alert ("\nPozor! PS╚ je zadßno Üpatn∞.")
thisform.psc.focus()
return false
}
if (!isWhitespace(thisform.firma.value) && isWhitespace(thisform.ico.value))
{
alert ("\nK firm∞ zadejte prosφm I╚O.")
thisform.ico.focus()
return false
}
if (isWhitespace(thisform.email.value) && isWhitespace(thisform.telefon.value))
{
alert ("\nZadejte prosφm e-mailovou adresu.") ;
thisform.email.focus() ;
return false ;
}
if (!isEmail(thisform.email.value))
{
alert ("\nE-mail adresa nenφ zadßna sprßvn∞.") ;
thisform.email.focus() ;
return false ;
}
if (!isWhitespace(thisform.psc2.value))
{ if (!isPSC(thisform.psc2.value))
{
alert ("\nPozor! PS╚ je zadßno Üpatn∞.")
thisform.psc2.focus()
return false
}
}
if (!(thisform.Platba[0].checked) && !(thisform.Platba[1].checked) && !(thisform.Platba[2].checked) && !(thisform.Platba[3].checked))
{
alert ("\nVyberte prosφm zp∙sob platby.")
return false
}
return true
}