function isEmpty(textField) {
	if ((textField.length==0) ||(textField==null)) {
		return true;
	} else { 
		return false; 
	}
}

function validateEmail(strValue) {
	var emailReg = "^[\\w-_\.]*[\\w-_\.]\@[\\w]\.+[\\w]+[\\w]$";
	var regex = new RegExp(emailReg);
	return regex.test(strValue);
}

function verifyFields()	{
	var captlength = new Number(document.formUnsubscribe.captchainput.value.length);
	if ((isEmpty(document.formUnsubscribe.email.value)) || (!validateEmail(document.formUnsubscribe.email.value))) {
		alert('Error on email field: Please enter the EMAIL here!');
		document.formUnsubscribe.email.focus();
		document.formUnsubscribe.email.select();
		return false;
	}
	if (captlength < 3) {
		alert('Please enter the characters in black in the confirmation box!');
		document.formUnsubscribe.captchainput.focus();
		document.formUnsubscribe.captchainput.select();
		return false;
	}
	return true;
}
