function CRN3_MANIPULATE(){this.idAGENT=this.define_AGENT();if(this.idAGENT==1){document.captureEvents(Event.KEYDOWN);};switch(this.idAGENT){case 1:this.key_CODE=function(eventp){return eventp.which;};this.add_EVENT=function(element_point,event_n,cl){this.point_SET(element_point).addEventListener(event_n,cl,false);};break;default:this.key_CODE=function(){return window.event.keyCode;};this.add_EVENT=function(element_point,event_n,cl){this.point_SET(element_point).attachEvent('on'+event_n,cl);};};};CRN3_MANIPULATE.prototype={point_SET:function(id){return (typeof(id)=='string')?document.getElementById(id):id;},define_AGENT:function(){if(navigator.userAgent.toUpperCase().indexOf('GECKO')!=-1){return 1;};return 0;}};CRN4_MANIPULATE=new CRN3_MANIPULATE();CRN4_SFORM={state_submit:false,field_empty:'',point_SET:function(id){return (typeof(id)=='string')?document.getElementById(id):id;},field_STATE:function(field_value){return (field_value.search(/[\w\-À-ß]/i)==-1)?false:true;},data_SUBMIT:function(form_point){if(this.state_submit==true){form_point.submit();};},data_ACTION:function(form_point,fields,action){form_point=this.point_SET(form_point);this.state_submit=true;for(var i=0;i<fields.length;++i){if(!this.field_STATE(form_point[fields[i]].value)){this.state_submit=false;this.field_empty=fields[i];break;};};if(action==true){this.data_SUBMIT(form_point);};return this.state_submit;}};
