</script></script>
</script></script>
</script></script>
// Absolute Form Processor XE V1.0 : Form Validation System
// Copyright(c)2000 - 2003 XIGLA SOFTWARE
// http://www.xigla.com

function cancelsubmit(msg,element){
	alert(msg);
	element.focus();
	return false
}



function isNumeric(what){
    if (what.search(/^[-+]?\d+(\.\d+)?$/) != -1)
        return true;
    else
        return false;
}

function isInteger(what){
	if (what.search(/^[-+]?[1-9]\d*.?[0]*$/) != -1)
        return true;
    else
        return false;
}


function isEmail(what) {
	// Works
    if (what.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
        return true;
    else
        return false;
}

function isAlphanumeric(what){
	// ANY alphanumeric string with spaces, commas, dashes.
    if (what.search(/^[a-zA-Z0-9\s.\-]+$/) != -1)
        return true;
    else
        return false;
}

function isAlphabetic(what){
    if (what.search(/^[a-zA-Z\s]+$/) != -1)
        return true;
    else
        return false;
}

function noSpaces(what){
    if (what.search(/\s/) != -1)
        return false;
    else
        return true;
}

function isCC(what){
    if (what.search(/^((4\d{3})|(5[1-5]\d{2})|(6011))-?\d{4}-?\d{4}-?\d{4}|3[4,7]\d{13}$/) != -1)
        return true;
    else
        return false;
}


function xlaAFPvalidate(xlaAFPform){
if (xlaAFPform.First_Name){if (xlaAFPform.First_Name.value==''){return cancelsubmit('Field \'First Name\' is required',xlaAFPform.First_Name)}if (xlaAFPform.First_Name.value.length>32){return cancelsubmit('Field \'First Name\' cannot contain more than 32 characters.',xlaAFPform.First_Name)}if (xlaAFPform.First_Name.value.length<2){return cancelsubmit('Field \'First Name\' cannot contain less than 2 characters.',xlaAFPform.First_Name)}}
if (xlaAFPform.Last_Name){if (xlaAFPform.Last_Name.value==''){return cancelsubmit('Field \'Last Name\' is required',xlaAFPform.Last_Name)}if (xlaAFPform.Last_Name.value.length>32){return cancelsubmit('Field \'Last Name\' cannot contain more than 32 characters.',xlaAFPform.Last_Name)}if (xlaAFPform.Last_Name.value.length<2){return cancelsubmit('Field \'Last Name\' cannot contain less than 2 characters.',xlaAFPform.Last_Name)}}
if (xlaAFPform.email_address){if (!isEmail(xlaAFPform.email_address.value)){return cancelsubmit('Field \'email address\' does not contain a valid e-mail address.',xlaAFPform.email_address)}if (xlaAFPform.email_address.value.length>96){return cancelsubmit('Field \'email address\' cannot contain more than 96 characters.',xlaAFPform.email_address)}if (xlaAFPform.email_address.value.length<6){return cancelsubmit('Field \'email address\' cannot contain less than 6 characters.',xlaAFPform.email_address)}}

}

</script></script>