Hi,

I am trying to integrate all the following scripts in one function but I am getting a conflict with the email verification and the check box check. Can someone take a look and suggest how I can integrate correctly the email verification function with the submitHandler function?

DH

Code:
function checkEmail(myForm) {
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.email.value)){
return (true)
}
alert("\nYou have entered an Invalid Email Address, please verify")
return (false)
}

function checkCheckBox(f){
if (f.agree.checked == false )
{
alert('\nPlease confirm that you have read and agree to our Terms & Conditions');
return false;
}else
return true;
}

function submitonce(theform){
if (document.all||document.getElementById){
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
tempobj.disabled=true
}
}
}

function submitForm(s)  {
s.value = "  Processing ...  ";
return true;
}

function submitHandler( f )
{
	if ( checkCheckBox( f ) )
	{
		checkEmail( f );
		submitonce( f );
		submitForm( f.submit );
		return true;
	}
	return false;
}