function _CF_checkform1(_CF_this){ //reset on submit _CF_error_exists = false; _CF_error_messages = new Array(); _CF_error_fields = new Object(); _CF_FirstErrorField = null; if( !_CF_hasValue(_CF_this['nom_contacto'], "TEXT", false ) ){ _CF_onError(_CF_this, "nom_contacto", _CF_this['nom_contacto'].value, "El campo 'Persona de contacto' no puede estar vacío"); _CF_error_exists = true; } if( !_CF_hasValue(_CF_this['correo_e'], "TEXT", false ) ){ _CF_onError(_CF_this, "correo_e", _CF_this['correo_e'].value, "El campo 'Correo electrónico' no puede estar vacío"); _CF_error_exists = true; } if( !_CF_hasValue(_CF_this['asunto'], "TEXT", false ) ){ _CF_onError(_CF_this, "asunto", _CF_this['asunto'].value, "El campo 'Asunto' no puede estar vacío"); _CF_error_exists = true; } if( !_CF_hasValue(_CF_this['mensaje'], "TEXT", false ) ){ _CF_onError(_CF_this, "mensaje", _CF_this['mensaje'].value, "El campo 'Mensaje' no puede estar vacío"); _CF_error_exists = true; } //display error messages and return success if( _CF_error_exists ){ if( _CF_error_messages.length > 0 ){ // show alert() message _CF_onErrorAlert(_CF_error_messages); // set focus to first form error, if the field supports js focus(). if( _CF_this[_CF_FirstErrorField].type == "text" ){ _CF_this[_CF_FirstErrorField].focus(); } } return false; }else { return true; } }
Por favor , para agilizar la comunicación entre cliente y Davedans se recomienda rellenar todos los campos. Los campos obligatorios están marcados con el símbolo *.
C/Serrano 22, 08221 Terrassa
(Barcelona)España
Tel: +34 93 731 21 44
Fax: +34 93 731 21 44
contactar@davedans.com
www.davedans.com