- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
// Checks if the passed input's value is nothing.
function isEmptyText(theField)
{
// Copy the value so changes can be made..
var theValue = theField.value;
// Strip whitespace off the left side.
while (theValue.length > 0 && (theValue.charAt(0) == ' ' || theValue.charAt(0) == '\t'))
theValue = theValue.substring(1, theValue.length);
// Strip whitespace off the right side.
while (theValue.length > 0 && (theValue.charAt(theValue.length - 1) == ' ' || theValue.charAt(theValue.length - 1) == '\t'))
theValue = theValue.substring(0, theValue.length - 1);
if (theValue == '')
return true;
else
return false;
}
...
function in_array(variable, theArray)
{
for (var i in theArray)
if (theArray == variable)
return true;
return false;
}
gegMOPO4 16.06.2011 10:34 # 0
zomg 16.06.2011 22:53 # 0
gegMOPO4 17.06.2011 14:19 # 0
P.S. csrf verification error
Lure Of Chaos 16.06.2011 14:18 # 0
радует. очевидно, пехепешника заставили написать немного хуякса.
qweqwe 25.08.2021 10:12 # 0