

function validateNumber(fld) {
	var temp_value = fld.value;
	if (temp_value == "") { return false; }
	var Chars = "0123456789";
	for (var i = 0; i < temp_value.length; i++) { if (Chars.indexOf(temp_value.charAt(i)) == -1) { return false; } }
	return true;
}
// Email Validation. Written by PerlScriptsJavaScripts.com

function check_email(e) {
ok = "1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPASDFGHJKLZXCVBNM";

for(i=0; i < e.length ;i++){
if(ok.indexOf(e.charAt(i))<0){ 
return (false);
}	
} 

if (document.images) {
re = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;
re_two = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
if (!e.match(re) && e.match(re_two)) {
return (-1);		
} 

}

}

// -->

<!--

function check_form(f) { // f is the form (passed using the this keyword)
if(f.last_name.value.length < 1){
alert("Please enter your Last name.");
f.last_name.focus(); // put the prompt in the name field 
// if the browser is Netscape 6 or IE
if(document.all || document.getElementByID){
// change the color of text field
f.last_name.style.background = "yellow";
}
// make sure the form is not submitted
return false;
}
	
if(f.first_name.value.length < 1){
alert("Please enter your first name.");
f.first_name.focus(); // put the prompt in the name field 
// if the browser is Netscape 6 or IE
if(document.all || document.getElementByID){
// change the color of text field
f.first_name.style.background = "yellow";
}
// make sure the form is not submitted
return false;
}


// check the first email address ( the exclamation means "not" )
if(!check_email(f.email.value)){
alert("Invalid email format detected.");
f.email.focus(); 
// if the browser is Netscape 6 or IE
if(document.all || document.getElementByID){
// change the color of text field
f.email.style.background = "yellow";
}
// make sure the form is not submitted
return false;
}

}

// -->


