	//<![CDATA[
	<!-- Hide the script from non-script-friendly browsers

function checkNumbers(obj, minlen){
var Invalid = false;
var TooShort = false;
var ValidLetters ="1234567890";
var Text = obj.value;
var Len = Text.length;
var i;
var LetterPos

if (minlen && Len!=0 && Len < minlen) {
 TooShort = true;
}

if (TooShort) {
alert("The number entered is not long enough");
obj.focus();
obj.select();
return false;
}

for(i=0;i<Len;i++)
{
LetterPos = ValidLetters.indexOf(Text.charAt(i),0);
if (!(LetterPos >= 0)){
Invalid = true;}
}
if (Invalid)
{
alert("The text entered includes an illegal character/s");
obj.focus();
obj.select();
}
return false;
}

function checkLetters(obj){
var Invalid = false;
var InvalidLetters ="`~!@#$%^&*()_+=-1234567890";
var Text = obj.value;
var Len = Text.length;
var i;
var LetterPos

for(i=0;i<Len;i++)
{
LetterPos = InvalidLetters.indexOf(Text.charAt(i),0);
if (LetterPos >= 0){
Invalid = true;}
}
if (Invalid)
{
alert("The text entered includes an illegal character/s");
obj.focus();
obj.select();
}
return false;
}

function validate_email(field)
{
	if (field.value.length!=0) {
with (field)
{
apos=value.indexOf("@");
dotpos=value.lastIndexOf(".");
if (apos<1||dotpos-apos<2) 
  {alert("The email address you entered is not valid!");field.focus();field.select();return false;}
else {return true;}
}
	}
}
	// stop hiding the script -->
	//]]>