function validate_required(field,alerttxt){
with (field){
if (value==null||value==""){
alert(alerttxt);
return false;
}
return true;
}
}
function validate_email(field,alerttxt){
with (field){
apos=value.indexOf("@");
dotpos=value.lastIndexOf(".");
if (apos<1||dotpos-apos<2){
alert(alerttxt);
return false;
}
return true;
}
}
function validate_form(thisform){
var f = thisform;
var validateObjs = [
{ input: f.Position, msg: "Position must be filled out!" },
{ input: f.Linkman, msg: "Name must be filled out!" },
{ input: f.BirthDate, msg: "Date of Birth must be filled out!" },
{ input: f.hight, msg: "Height must be filled out!" },
{ input: f.Nation, msg: "Account Address must be filled out!" },
{ input: f.Address, msg: "Address must be filled out!" },
{ input: f.ZipCode, msg: "Zip Code must be filled out!" },
{ input: f.Mobile, msg: "Mobile must be filled out!" },
{ input: f.Email, msg: "Not a valid e-mail address!", fn: validate_email },
{ input: f.verify_code_field, msg: "Code must be filled out!" }
];
for (var i=0; i