

function _CF_onError(form_object, input_object, object_value, error_message)
    {
	alert(error_message);
       	return false;	
    }



function _CF_checkregex(object_value, regex)
	{
	//Returns true if the value matches the Regular Expression passed in.
	
	return regex.test(object_value);

	}


function  _CF_checkCFForm_1(_CF_this)

    {

    if  (!_CF_checkregex(_CF_this.w_email.value, /^[A-Za-z0-9\._-]+@([0-9a-zA-Z][0-9A-Za-z_-]+\.)+[a-z]{2,4}$/))

        {

        if  (!_CF_onError(_CF_this, _CF_this.w_email, _CF_this.w_email.value, "inserire un indirizzo e-mail valido"))

            {

            return false; 

            }

        }


    return true;

    }


//-->

<!--

function  _CF_checkCFForm_2(_CF_this)

    {

    if  (!_CF_checkregex(_CF_this.w_email.value, /^[A-Za-z0-9\._-]+@([0-9a-zA-Z][0-9A-Za-z_-]+\.)+[a-z]{2,4}$/))

        {

        if  (!_CF_onError(_CF_this, _CF_this.w_email, _CF_this.w_email.value, "inserire un indirizzo e-mail valido"))

            {

            return false; 

            }

        }


    return true;

    }

function  _CF_checkCFForm_3(_CF_this)

    {

    if  (!_CF_checkregex(_CF_this.w_email.value, /^[A-Za-z0-9\._-]+@([0-9a-zA-Z][0-9A-Za-z_-]+\.)+[a-z]{2,4}$/))

        {

        if  (!_CF_onError(_CF_this, _CF_this.w_email, _CF_this.w_email.value, "inserire un indirizzo e-mail valido"))

            {

            return false; 

            }

        }


    return true;

    }		