<!--
function checkForm(){
	var msg = "";
	
	if(document.newAffiliate.company.value == "") {
		msg = msg + "Company Name required.\n";
	}
	if(document.newAffiliate.contactName.value == "") {
		msg = msg + "Contact Name required.\n";
	}
	if(document.newAffiliate.website.value == "" || document.newAffiliate.website.value == "http://") {
		msg = msg + "Website Address required.\n";
	}
	if(!(checkemail(document.newAffiliate.email.value))) {
		msg = msg + "Valid Email Address required.\n";
	}
	if(document.newAffiliate.password.value == "") {
		msg = msg + "Password required.\n";
	}
	if(document.newAffiliate.password.value != document.newAffiliate.pwdConfirm.value) {
		msg = msg + "Your Password Confirmation does not match your Password.\n";
	}
	if(document.newAffiliate.country.selectedIndex == 0) {
		msg = msg + "Country required.\n";
	}
	if(document.newAffiliate.captcha_code.value == "") {
		msg = msg + "Validation Code required.\n";
	}

	if(msg == "") {
		document.newAffiliate.submit();
	} else {
		alert(msg);
	}
}

function checkemail(input)
{
	if (!input.match(/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/)){
	    return false;
	} else {
	    return true;
	}
}
//-->