Estás en: Inicio >> Foros >> Informática >> Webmasters
Webmasters /

Campos obligatorios

Participa en el tema Campos obligatorios en el foro Webmasters.
Hola que tal? Tengo un formulario en una pagina web y necesito que los campos ...

Buscar en este tema:
 
  •  
    #1 Campos obligatorios
    Hola que tal? Tengo un formulario en una pagina web y necesito que los campos sean obligatorios...Lo que hice me funciona, el tema es que cuando me tira el anucnio "Campo obligatorio"...me los coloca todos juntos...o sea si me falto completar nombre y email...me tira eses error en una misma linea...y no me especifica cual...Abajo copio mi wform.js


    function wHELPERS(){
    }
    wHELPERS.prototype.addEvent=function(_1,_2,fn){
    if(!_1){
    return;
    }
    if(_1.attachEvent){
    _1["e"+_2+fn]=fn;
    _1[_2+fn]=function(){
    _1["e"+_2+fn](window.event);
    };
    _1.attachEvent("on"+_2,_1[_2+fn]);
    }else{
    if(_1.addEventListener){
    _1.addEventListener(_2,fn,false);
    }else{
    var _4=_1["on"+_2];
    if(_4){
    _1["on"+_2]=function(e){
    _4(e);
    fn(e);
    };
    }else{
    _1["on"+_2]=fn;
    }
    }
    }
    };
    wHELPERS.prototype.removeEvent=function(_6,_7,fn){
    if(_6.detachEvent){
    if(_6[_7+fn]){
    _6.detachEvent("on"+_7,_6[_7+fn]);
    _6[_7+fn]=null;
    }
    }else{
    if(_6.removeEventListener){
    _6.removeEventListener(_7,fn,false);
    }else{
    _6["on"+_7]=null;
    }
    }
    };
    wHELPERS.prototype.getSourceElement=function(e){
    if(!e){
    e=window.event;
    }
    if(e.target){
    var _a=e.target;
    }else{
    var _a=e.srcElement;
    }
    if(!_a){
    return null;
    }
    if(_a.nodeType==3){
    _a=_a.parentNode;
    }
    if(_a.tagName.toUpperCase()=="LABEL"&&e.type=="cli ck"){
    if(_a.getAttribute("for")){
    _a=document.getElementById(_a.getAttribute("for")) ;
    }
    }
    return _a;
    };
    wHELPERS.prototype.preventEvent=function(e){
    if(!e){
    e=window.event;
    }
    if(e.preventDefault){
    e.preventDefault();
    }else{
    e.returnValue=false;
    }
    return false;
    };
    wHELPERS.prototype.stopPropagation=function(e){
    if(!e){
    var e=window.event;
    }
    e.cancelBubble=true;
    if(e.stopPropagation){
    e.stopPropagation();
    }
    };
    wHELPERS.prototype.randomId=function(){
    var _d=(new Date()).getTime();
    _d=_d.toString().substr(6);
    for(var i=0;i<6;i++){
    _d+=String.fromCharCode(48+Math.floor((Math.random ()*10)));
    }
    return "id-"+_d;
    };
    wHELPERS.prototype.activateStylesheet=function(_f) {
    if(document.getElementsByTagName){
    var ss=document.getElementsByTagName("link");
    }else{
    if(document.styleSheets){
    var ss=document.styleSheets;
    }
    }
    for(var i=0;ss[i];i++){
    if(ss[i].href.indexOf(_f)!=-1){
    ss[i].disabled=true;
    ss[i].disabled=false;
    }
    }
    };
    wHELPERS.prototype.hasClass=function(_12,_13){
    if(_12&&_12.className){
    if((" "+_12.className+" ").indexOf(" "+_13+" ")!=-1){
    return true;
    }
    }
    return false;
    };
    wHELPERS.prototype.hasClassPrefix=function(_14,_15 ){
    if(_14&&_14.className){
    if((" "+_14.className).indexOf(" "+_15)!=-1){
    return true;
    }
    }
    return false;
    };
    wHELPERS.prototype.hasIdPrefix=function(_16,_17){
    if(_16&&_16.id){
    if(_16.id.indexOf(_17)!=-1){
    return true;
    }
    }
    return false;
    };
    wHELPERS.prototype.getTop=function(obj){
    var cur=0;
    if(obj.offsetParent){
    while(obj.offsetParent){
    if((new wHELPERS()).getComputedStyle(obj,"position")=="rel ative"){
    return cur;
    }
    cur+=obj.offsetTop;
    obj=obj.offsetParent;
    }
    }
    return cur;
    };
    wHELPERS.prototype.getLeft=function(obj){
    var cur=0;
    if(obj.offsetParent){
    while(obj.offsetParent){
    if((new wHELPERS()).getComputedStyle(obj,"position")=="rel ative"){
    return cur;
    }
    if((new wHELPERS()).getComputedStyle(obj,"position")=="abs olute"){
    return cur;
    }
    cur+=obj.offsetLeft;
    obj=obj.offsetParent;
    }
    }
    return cur;
    };
    wHELPERS.prototype.getComputedStyle=function(_1c,_ 1d){
    if(window.getComputedStyle){
    return window.getComputedStyle(_1c,"").getPropertyValue(_ 1d);
    }else{
    if(_1c.currentStyle){
    return _1c.currentStyle[_1d];
    }
    }
    return false;
    };
    var wHelpers=wHELPERS;
    if(!Array.prototype.push){
    Array.prototype.push=function(){
    for(var i=0;i<arguments.length;++i){
    this[this.length]=arguments[i];
    }
    return this.length;
    };
    }
    if(wHELPERS){
    var wFORMS={debugLevel:0,helpers:new wHELPERS(),behaviors:{},onLoadComplete:new Array(),processedForm:null,onLoadHandler:function( ){
    for(var _1f in wFORMS.behaviors){
    wFORMS.debug("wForms/loaded behavior: "+_1f);
    }
    for(var i=0;i<document.forms.length;i++){
    wFORMS.debug("wForms/initialize: "+(document.forms[i].name||document.forms[i].id));
    wFORMS.addBehaviors(document.forms[i]);
    }
    },addBehaviors:function(_21){
    if(!_21){
    return;
    }
    if(!_21.nodeType){
    _21=document.getElementById(_21);
    }
    if(!_21||_21.nodeType!=1){
    return;
    }
    deep=(arguments.length>1)?arguments[1]:true;
    wFORMS._addBehaviors(_21,deep);
    },_addBehaviors:function(_22,_23){
    if(_22.getAttribute("rel")=="no-behavior"){
    return false;
    }
    if(_22.nodeType==1){
    if(_22.tagName=="FORM"){
    wFORMS.processedForm=_22;
    }
    for(var _24 in wFORMS.behaviors){
    wFORMS.behaviors[_24].evaluate(_22);
    }
    if(_23){
    for(var i=0,cn=_22.childNodes,l=cn.length;i<l;i++){
    if(cn[i].nodeType==1){
    wFORMS._addBehaviors(cn[i],_23);
    }
    }
    }
    if(_22.tagName=="FORM"){
    for(var i=0;i<wFORMS.onLoadComplete.length;i++){
    wFORMS.onLoadComplete[i].func(wFORMS.onLoadComplete[i].form);
    }
    if(wFORMS.onLoadComplete.length>0){
    wFORMS.onLoadComplete=new Array();
    }
    }
    }
    },hasBehavior:function(_26){
    if(wFORMS.behaviors[_26]){
    return true;
    }
    return false;
    },debug:function(txt){
    msgLevel=arguments[1]||10;
    if(wFORMS.debugLevel>0&&msgLevel>=wFORMS.debugLeve l){
    if(!wFORMS.debugOutput){
    wFORMS.initDebug();
    }
    if(wFORMS.debugOutput){
    wFORMS.debugOutput.innerHTML+="<br />"+txt;
    }
    }
    },initDebug:function(){
    var _28=document.getElementById("debugOutput");
    if(!_28){
    _28=document.createElement("div");
    _28.id="debugOutput";
    _28.style.position="absolute";
    _28.style.right="10px";
    _28.style.top="10px";
    _28.style.zIndex="300";
    _28.style.fontSize="x-small";
    _28.style.fontFamily="courier";
    _28.style.backgroundColor="#DDD";
    _28.style.padding="5px";
    if(document.body){
    wFORMS.debugOutput=document.body.appendChild(_28);
    }
    }
    if(wFORMS.debugOutput){
    wFORMS.debugOutput.ondblclick=function(){
    this.innerHTML="";
    };
    }
    }};
    wFORMS.NAME="wForms";
    wFORMS.VERSION="2.0";
    wFORMS.__repr__=function(){
    return "["+this.NAME+" "+this.VERSION+"]";
    };
    wFORMS.toString=function(){
    return this.__repr__();
    };
    wFORMS.utilities=wFORMS.helpers;
    var wf=wFORMS;
    wf.utilities.getSrcElement=wFORMS.helpers.getSourc eElement;
    wf.utilities.XBrowserPreventEventDefault=wFORMS.he lpers.preventEvent;
    wFORMS.helpers.activateStylesheet("wforms-jsonly.css");
    wFORMS.helpers.addEvent(window,"load",wFORMS.onLoa dHandler);
    }
    if(wFORMS){
    wFORMS.idSuffix_fieldHint="-H";
    wFORMS.className_inactiveFieldHint="field-hint-inactive";
    wFORMS.className_activeFieldHint="field-hint";
    wFORMS.behaviors["hint"]={name:"hint",evaluate:function(_29){
    if(_29.id){
    if(_29.id.indexOf(wFORMS.idSuffix_fieldHint)>0){
    var id=_29.id.replace(wFORMS.idSuffix_fieldHint,"");
    var _2b=document.getElementById(id)||wFORMS.processedF orm[id];
    }
    if(_2b){
    if(_2b.length>0&&_2b[0].type=="radio"){
    var _2c=_2b;
    l=_2b.length;
    }else{
    var _2c=new Array(_2b);
    l=1;
    }
    for(var i=0;i<l;i++){
    _2b=_2c[i];
    wFORMS.debug("hint/evaluate: "+(_29.id||_29.name));
    switch(_2b.tagName.toUpperCase()){
    case "SELECT":
    case "TEXTAREA":
    case "INPUT":
    wFORMS.helpers.addEvent(_2b,"focus",wFORMS.behavio rs["hint"].run);
    wFORMS.helpers.addEvent(_2b,"blur",wFORMS.behavior s["hint"].remove);
    break;
    default:
    wFORMS.helpers.addEvent(_2b,"mouseover",wFORMS.beh aviors["hint"].run);
    wFORMS.helpers.addEvent(_2b,"mouseout",wFORMS.beha viors["hint"].remove);
    break;
    }
    }
    }
    }
    },run:function(e){
    var _2f=wFORMS.helpers.getSourceElement(e);
    var _30=document.getElementById(_2f.id+wFORMS.idSuffix _fieldHint);
    if(!_30){
    _30=document.getElementById(_2f.name+wFORMS.idSuff ix_fieldHint);
    }
    if(_30){
    _30.className=_30.className.replace(wFORMS.classNa me_inactiveFieldHint,wFORMS.className_activeFieldH int);
    _30.style.top=(wFORMS.helpers.getTop(_2f)+_2f.offs etHeight).toString()+"px";
    if(_2f.tagName.toUpperCase()=="SELECT"){
    _30.style.left=(wFORMS.helpers.getLeft(_2f)+(_2f.o ffsetWidth-8)).toString()+"px";
    }else{
    _30.style.left=(wFORMS.helpers.getLeft(_2f)).toStr ing()+"px";
    }
    }
    },remove:function(e){
    var _32=wFORMS.helpers.getSourceElement(e);
    var _33=document.getElementById(_32.id+wFORMS.idSuffix _fieldHint);
    if(!_33){
    _33=document.getElementById(_32.name+wFORMS.idSuff ix_fieldHint);
    }
    if(_33){
    _33.className=_33.className.replace(wFORMS.classNa me_activeFieldHint,wFORMS.className_inactiveFieldH int);
    }
    }};
    }
    if(wFORMS){
    wFORMS.className_paging="wfPage";
    wFORMS.className_pagingCurrent="wfCurrentPage";
    wFORMS.className_pagingButtons="wfPageButton";
    wFORMS.className_hideSubmit="wfHideSubmit";
    wFORMS.idPrefix_pageIndex="wfPgIndex-";
    wFORMS.runValidationOnPageNext=true;
    if(!wFORMS.arrMsg){
    wFORMS.arrMsg=new Array();
    }
    wFORMS.arrMsg[4]="Next Page";
    wFORMS.arrMsg[5]="Previous Page";
    wFORMS.behaviors["paging"]={idSuffix_buttonsPlaceholder:"-buttons",className_pageNextButton:wFORMS.className _pagingButtons+" wfPageNextButton",className_pagePreviousButton:wFO RMS.className_pagingButtons+" wfPagePreviousButton",behaviorInUse:false,allowNes tedPages:false,onPageChange:null,evaluate:function (_34){
    if(wFORMS.helpers.hasClass(_34,wFORMS.className_pa ging)){
    if(!wFORMS.behaviors["paging"].allowNestedPages&&wFORMS.behaviors["paging"].getPageElement(_34)){
    _34.className=_34.className.replace(wFORMS.classNa me_paging,"");
    return;
    }
    wFORMS.behaviors["paging"].behaviorInUse=true;
    var _35=wFORMS.behaviors["paging"].getPageIndex(_34);
    if(_35>1){
    var _36=this.getButtonPlaceholder(_34);
    var _37=_36.insertBefore(this.createPreviousPageButton (),_36.firstChild);
    wFORMS.helpers.addEvent(_37,"click",wFORMS.behavio rs["paging"].pagingPrevious);
    }else{
    _34.className+=" "+wFORMS.className_pagingCurrent;
    var _38=wFORMS.behaviors["paging"].getFormElement(_34);
    wFORMS.helpers.addEvent(_38,"submit",function(e){
    var _3a=wFORMS.helpers.getSourceElement(e);
    if(_3a.type&&_3a.type.toLowerCase()=="text"){
    return wFORMS.preventEvent(e);
    }
    });
    wFORMS.preventSubmissionOnEnter=true;
    }
    if(document.getElementById(wFORMS.idPrefix_pageInd ex+(_35+1).toString())){
    var _36=this.getButtonPlaceholder(_34);
    var _37=_36.appendChild(this.createNextPageButton());
    wFORMS.helpers.addEvent(_37,"click",wFORMS.behavio rs["paging"].pagingNext);
    if(_35==1){
    wFORMS.behaviors["paging"].hideSubmitButton(_38);
    }
    }
    }
    },getButtonPlaceholder:function(_3b){
    var p=document.getElementById(_3b.id+this.idSuffix_but tonsPlaceholder);
    if(!p){
    var _3d=document.createElement("div");
    _3d=_3b.appendChild(_3d);
    _3d.className="actions";
    _3d.id=_3b.id+this.idSuffix_buttonsPlaceholder;
    return _3d;
    }
    return p;
    },createNextPageButton:function(){
    var _3e=document.createElement("input");
    _3e.setAttribute("value",wFORMS.arrMsg[4]);
    _3e.setAttribute("type","button");
    _3e.className=this.className_pageNextButton;
    return _3e;
    },createPreviousPageButton:function(){
    var _3f=document.createElement("input");
    _3f.setAttribute("value",wFORMS.arrMsg[5]);
    _3f.setAttribute("type","button");
    _3f.className=this.className_pagePreviousButton;
    return _3f;
    },pagingNext:function(e){
    var _41=wFORMS.helpers.getSourceElement(e);
    if(!_41){
    _41=e;
    }
    var _42=wFORMS.behaviors["paging"].getPageElement(_41);
    var _43=wFORMS.behaviors["paging"].getPageIndex(_42)+1;
    var _44=document.getElementById(wFORMS.idPrefix_pageIn dex+_43.toString());
    if(_44){
    if(!wFORMS.hasBehavior("validation")||(wFORMS.hasB ehavior("validation")&&!wFORMS.runValidationOnPage Next)||(wFORMS.hasBehavior("validation")&&wFORMS.r unValidationOnPageNext&&wFORMS.functionName_formVa lidation(e,true))){
    _42.className=_42.className.replace(new RegExp(wFORMS.className_pagingCurrent,"g"),"");
    _44.className+=" "+wFORMS.className_pagingCurrent;
    if(wFORMS.behaviors["paging"].isLastPage(_43)){
    var _45=wFORMS.behaviors["paging"].getFormElement(_44);
    wFORMS.behaviors["paging"].showSubmitButton(_45);
    }
    if(wFORMS.behaviors["paging"].onPageChange){
    wFORMS.behaviors["paging"].onPageChange(_44);
    }
    window.scroll(0,0);
    }
    }
    },pagingPrevious:function(e){
    var _47=wFORMS.helpers.getSourceElement(e);
    if(!_47){
    _47=e;
    }
    var _48=wFORMS.behaviors["paging"].getPageElement(_47);
    var _49=wFORMS.behaviors["paging"].getPageIndex(_48)-1;
    var _4a=document.getElementById(wFORMS.idPrefix_pageIn dex+_49.toString());
    if(_4a){
    _48.className=_48.className.replace(new RegExp(wFORMS.className_pagingCurrent,"g"),"");
    _4a.className+=" "+wFORMS.className_pagingCurrent;
    var _4b=wFORMS.behaviors["paging"].getFormElement(_4a);
    wFORMS.behaviors["paging"].hideSubmitButton(_4b);
    if(wFORMS.behaviors["paging"].onPageChange){
    wFORMS.behaviors["paging"].onPageChange(_4a);
    }
    window.scroll(0,0);
    }
    },showSubmitButton:function(_4c){
    var _4d=_4c.getElementsByTagName("input");
    for(var i=0;i<_4d.length;i++){
    if(_4d[i].type&&_4d[i].type.toLowerCase()=="submit"){
    _4d[i].className=_4d[i].className.replace(wFORMS.className_hideSubmit,"") ;
    }
    }
    },hideSubmitButton:function(_4f){
    var _50=_4f.getElementsByTagName("input");
    for(var i=0;i<_50.length;i++){
    if(_50[i].type&&_50[i].type.toLowerCase()=="submit"&&!wFORMS.helpers.has Class(_50[i],wFORMS.className_hideSubmit)){
    _50[i].className+=" "+wFORMS.className_hideSubmit;
    }
    }
    },isLastPage:function(_52){
    if(isNaN(_52)){
    _52=parseInt(_52.replace(/[\D]*/,""));
    }
    _52++;
    var _53=document.getElementById(wFORMS.idPrefix_pageIn dex+_52.toString());
    if(!_53){
    return true;
    }
    return false;
    },gotoPage:function(_54){
    if(isNaN(_54)){
    var _55=document.getElementById(_54);
    }else{
    var _55=document.getElementById(wFORMS.idPrefix_pageIn dex+_54.toString());
    }
    if(!_55){
    return false;
    }
    var _56=wFORMS.behaviors["paging"].getFormElement(_55);
    var _57=_56.getElementsByTagName("*");
    for(var i=0;i<_57.length;i++){
    var n=_57[i];
    if(wFORMS.helpers.hasClass(_57[i],wFORMS.className_pagingCurrent)){
    n.className=n.className.replace(new RegExp(wFORMS.className_pagingCurrent,"g"),"");
    break;
    }
    }
    if(wFORMS.behaviors["paging"].isLastPage(_54)){
    wFORMS.behaviors["paging"].showSubmitButton(_56);
    }else{
    wFORMS.behaviors["paging"].hideSubmitButton(_56);
    }
    _55.className+=" "+wFORMS.className_pagingCurrent;
    if(wFORMS.behaviors["paging"].onPageChange){
    wFORMS.behaviors["paging"].onPageChange(_55);
    }
    },getFormElement:function(_5a){
    var _5b=_5a.parentNode;
    while(_5b&&_5b.tagName!="FORM"){
    _5b=_5b.parentNode;
    }
    return _5b;
    },getPageElement:function(_5c){
    var n=_5c.parentNode;
    while(n&&n.tagName!="FORM"&&(!n.className||!wFORMS .helpers.hasClass(n,wFORMS.className_paging))){
    n=n.parentNode;
    }
    if(n&&wFORMS.helpers.hasClass(n,wFORMS.className_p aging)){
    return n;
    }else{
    return null;
    }
    },getPageIndex:function(_5e){
    if(_5e&&_5e.id){
    return parseInt(_5e.id.replace(/[\D]*/,""));
    }else{
    return null;
    }
    }};
    }
    if(wFORMS){
    wFORMS.className_repeat="repeat";
    wFORMS.className_delete="removeable";
    wFORMS.className_duplicateLink="duplicateLink";
    wFORMS.className_removeLink="removeLink";
    wFORMS.className_preserveRadioName="preserveRadioN ame";
    wFORMS.idSuffix_repeatCounter="-RC";
    wFORMS.idSuffix_duplicateLink="-wfDL";
    wFORMS.preserveRadioName=false;
    wFORMS.limitSwitchScope=true;
    if(!wFORMS.arrMsg){
    wFORMS.arrMsg=new Array();
    }
    wFORMS.arrMsg[0]="Add another response";
    wFORMS.arrMsg[1]="Will duplicate this question or section.";
    wFORMS.arrMsg[2]="Remove";
    wFORMS.arrMsg[3]="Will remove this question or section.";
    wFORMS.behaviors["repeat"]={onRepeat:null,onRemove:null,allowRepeat:null,eva luate:function(_5f){
    if(wFORMS.helpers.hasClass(_5f,wFORMS.className_re peat)){
    if(!_5f.id){
    _5f.id=wFORMS.helpers.randomId();
    }
    var _60=document.getElementById(_5f.id+wFORMS.idSuffix _duplicateLink);
    if(!_60){
    _60=wFORMS.behaviors["repeat"].createRepeatLink(_5f.id);
    if(_5f.tagName.toUpperCase()=="TR"){
    var n=_5f.lastChild;
    while(n&&n.nodeType!=1){
    n=n.previousSibling;
    }
    if(n&&n.nodeType==1){
    n.appendChild(_60);
    }
    }else{
    _5f.appendChild(_60);
    }
    }
    var _62=document.getElementById(_5f.id+wFORMS.idSuffix _repeatCounter);
    if(!_62){
    if(document.all&&!window.opera){
    var _63=_5f.id+wFORMS.idSuffix_repeatCounter;
    if(navigator.appVersion.indexOf("MSIE")!=-1&&navigator.appVersion.indexOf("Windows")==-1){
    _62=document.createElement("INPUT NAME=\""+_63+"\"");
    }else{
    _62=document.createElement("<INPUT NAME=\""+_63+"\"></INPUT>");
    }
    _62.type="hidden";
    _62.id=_63;
    _62.value="1";
    }else{
    _62=document.createElement("INPUT");
    _62.setAttribute("type","hidden");
    _62.setAttribute("value","1");
    _62.setAttribute("name",_5f.id+wFORMS.idSuffix_rep eatCounter);
    _62.setAttribute("id",_5f.id+wFORMS.idSuffix_repea tCounter);
    }
    var _64=_5f.parentNode;
    while(_64&&_64.tagName.toUpperCase()!="FORM"){
    _64=_64.parentNode;
    }
    _64.appendChild(_62);
    }
    wFORMS.helpers.addEvent(_60,"click",wFORMS.behavio rs["repeat"].duplicateFieldGroup);
    }
    if(wFORMS.helpers.hasClass(_5f,wFORMS.className_de lete)){
    var _65=wFORMS.behaviors["repeat"].createRemoveLink();
    if(_5f.tagName.toUpperCase()=="TR"){
    var n=_5f.lastChild;
    while(n&&n.nodeType!=1){
    n=n.previousSibling;
    }
    if(n&&n.nodeType==1){
    n.appendChild(_65);
    }
    }else{
    _5f.appendChild(_65);
    }
    }
    },createRepeatLink:function(id){
    var _67=document.createElement("a");
    var _68=document.createElement("span");
    var _69=document.createTextNode(wFORMS.arrMsg[0]);
    _67.id=id+wFORMS.idSuffix_duplicateLink;
    _67.setAttribute("href","#");
    _67.className=wFORMS.className_duplicateLink;
    _67.setAttribute("title",wFORMS.arrMsg[1]);
    _68.appendChild(_69);
    _67.appendChild(_68);
    return _67;
    },createRemoveLink:function(){
    var _6a=document.createElement("a");
    var _6b=document.createElement("span");
    var _6c=document.createTextNode(wFORMS.arrMsg[2]);
    _6a.setAttribute("href","#");
    _6a.className=wFORMS.className_removeLink;
    _6a.setAttribute("title",wFORMS.arrMsg[3]);
    _6b.appendChild(_6c);
    _6a.appendChild(_6b);
    wFORMS.helpers.addEvent(_6a,"click",wFORMS.behavio rs["repeat"].removeFieldGroup);
    return _6a;
    },duplicateFieldGroup:function(e){
    var _6e=wFORMS.helpers.getSourceElement(e);
    if(!_6e){
    _6e=e;
    }
    var _6f=wFORMS.helpers.hasClass(_6e,wFORMS.className_p reserveRadioName)?true:wFORMS.preserveRadioName;
    while(_6e&&!wFORMS.helpers.hasClass(_6e,wFORMS.cla ssName_duplicateLink)){
    _6e=_6e.parentNode;
    }
    var _70=_6e.id.replace(wFORMS.idSuffix_duplicateLink," ");
    var _6e=document.getElementById(_70);
    if(_6e){
    var _71=wFORMS.behaviors["repeat"];
    if(_71.allowRepeat){
    if(!_71.allowRepeat(_6e)){
    return false;
    }
    }
    counterField=document.getElementById(_6e.id+wFORMS .idSuffix_repeatCounter);
    if(!counterField){
    return;
    }
    var _72=parseInt(counterField.value)+1;
    var _73="-"+_72.toString();
    var _74=_71.replicateTree(_6e,null,_73,_6f);
    var _75=_6e.nextSibling;
    while(_75&&(_75.nodeType==3||wFORMS.helpers.hasCla ss(_75,wFORMS.className_delete))){
    _75=_75.nextSibling;
    }
    _6e.parentNode.insertBefore(_74,_75);
    _74.className=_6e.className.replace(wFORMS.classNa me_repeat,wFORMS.className_delete);
    document.getElementById(_6e.id+wFORMS.idSuffix_rep eatCounter).value=_72;
    wFORMS.addBehaviors(_74);
    if(_71.onRepeat){
    _71.onRepeat(_6e,_74);
    }
    }
    return wFORMS.helpers.preventEvent(e);
    },removeFieldGroup:function(e){
    var _77=wFORMS.helpers.getSourceElement(e);
    if(!_77){
    _77=e;
    }
    var _77=_77.parentNode;
    while(_77&&!wFORMS.helpers.hasClass(_77,wFORMS.cla ssName_delete)){
    _77=_77.parentNode;
    }
    _77.parentNode.removeChild(_77);
    if(wFORMS.behaviors["repeat"].onRemove){
    wFORMS.behaviors["repeat"].onRemove(_77);
    }
    return wFORMS.helpers.preventEvent(e);
    },removeRepeatCountSuffix:function(str){
    return str.replace(/-\d+$/,"");
    },replicateTree:function(_79,_7a,_7b,_7c){
    if(_79.nodeType==3){
    if(_79.parentNode.tagName.toUpperCase()!="TEXTAREA "){
    var _7d=document.createTextNode(_79.data);
    }
    }else{
    if(_79.nodeType==1){
    if(wFORMS.helpers.hasClass(_79,wFORMS.className_du plicateLink)||wFORMS.helpers.hasClass(_79,wFORMS.c lassName_removeLink)){
    return null;
    }
    if(wFORMS.helpers.hasClass(_79,wFORMS.className_de lete)){
    return null;
    }
    if(wFORMS.helpers.hasClass(_79,wFORMS.className_re peat)&&_7a!=null){
    _7b=_7b.replace("-","__");
    }
    if(!document.all||window.opera){
    var _7d=document.createElement(_79.tagName);
    }else{
    var _7e=_79.tagName;
    if(_79.name){
    if(_79.tagName.toUpperCase()=="INPUT"&&_79.type.to LowerCase()=="radio"&&_7c){
    _7e+=" NAME='"+_79.name+"' ";
    }else{
    _7e+=" NAME='"+wFORMS.behaviors["repeat"].removeRepeatCountSuffix(_79.name)+_7b+"' ";
    }
    }
    if(_79.type){
    _7e+=" TYPE='"+_79.type+"' ";
    }
    if(_79.selected){
    _7e+=" SELECTED='SELECTED' ";
    }
    if(_79.checked){
    _7e+=" CHECKED='CHECKED' ";
    }
    if(navigator.appVersion.indexOf("MSIE")!=-1&&navigator.appVersion.indexOf("Windows")==-1){
    var _7d=document.createElement(_7e);
    }else{
    var _7d=document.createElement("<"+_7e+"></"+_79.tagName+">");
    }
    try{
    _7d.type=_79.type;
    }
    catch(e){
    }
    }
    for(var i=0;i<_79.attributes.length;i++){
    var _80=_79.attributes[i];
    if(_80.specified||_80.nodeName.toLowerCase()=="val ue"){
    if(_80.nodeName.toLowerCase()=="id"||_80.nodeName. toLowerCase()=="name"||_80.nodeName.toLowerCase()= ="for"){
    if(wFORMS.hasBehavior("hint")&&_80.nodeValue.index Of(wFORMS.idSuffix_fieldHint)!=-1){
    var _81=_80.nodeValue;
    _81=wFORMS.behaviors["repeat"].removeRepeatCountSuffix(_81.substr(0,_81.indexOf( wFORMS.idSuffix_fieldHint)))+_7b+wFORMS.idSuffix_f ieldHint;
    }else{
    if(_79.tagName.toUpperCase()=="INPUT"&&_79.getAttr ibute("type",false).toLowerCase()=="radio"&&_80.no deName.toLowerCase()=="name"&&_7c){
    var _81=_80.nodeValue;
    }else{
    var _81=_80.nodeValue+_7b;
    }
    }
    }else{
    if(_80.nodeName.toLowerCase()=="value"&&_79.tagNam e.toUpperCase()=="INPUT"&&(_79.type.toLowerCase()= ="text"||_79.type.toLowerCase()=="password"||_79.t ype.toLowerCase()=="hidden"||_79.type.toLowerCase( )=="file")){
    var _81="";
    }else{
    if(_80.nodeName.toLowerCase()=="rel"&&_80.nodeValu e.indexOf("wfHandled")!=-1){
    var _81=_80.nodeValue.replace("wfHandled","");
    }else{
    var _81=_80.nodeValue;
    }
    }
    }
    switch(_80.nodeName.toLowerCase()){
    case "class":
    _7d.className=_81;
    break;
    case "style":
    if(_79.style&&_79.style.cssText){
    _7d.style.cssText=_79.style.cssText;
    }
    break;
    case "onclick":
    _7d.onclick=_79.onclick;
    break;
    case "onchange":
    _7d.onchange=_79.onchange;
    break;
    case "onsubmit":
    _7d.onsubmit=_79.onsubmit;
    break;
    case "onmouseover":
    _7d.onmouseover=_79.onmouseover;
    break;
    case "onmouseout":
    _7d.onmouseout=_79.onmouseout;
    break;
    case "onmousedown":
    _7d.onmousedown=_79.onmousedown;
    break;
    case "onmouseup":
    _7d.onmouseup=_79.onmouseup;
    break;
    case "ondblclick":
    _7d.ondblclick=_79.ondblclick;
    break;
    case "onkeydown":
    _7d.onkeydown=_79.onkeydown;
    break;
    case "onkeyup":
    _7d.onkeyup=_79.onkeyup;
    break;
    case "onblur":
    _7d.onblur=_79.onblur;
    break;
    case "onfocus":
    _7d.onfocus=_79.onfocus;
    break;
    default:
    _7d.setAttribute(_80.name,_81,0);
    }
    }
    }
    }
    }
    if(_7a&&_7d){
    _7a.appendChild(_7d);
    }
    for(var i=0;i<_79.childNodes.length;i++){
    wFORMS.behaviors["repeat"].replicateTree(_79.childNodes[i],_7d,_7b,_7c);
    }
    return _7d;
    }};
    }
    if(wFORMS){
    wFORMS.classNamePrefix_switch="switch";
    wFORMS.className_switchIsOn="swtchIsOn";
    wFORMS.className_switchIsOff="swtchIsOff";
    wFORMS.classNamePrefix_offState="offstate";
    wFORMS.classNamePrefix_onState="onstate";
    wFORMS.switchScopeRootTag="";
    wFORMS.switchTriggers=[];
    wFORMS.switchTargets=[];
    wFORMS.behaviors["switch"]={evaluate:function(_82){
    if(wFORMS.helpers.hasClassPrefix(_82,wFORMS.classN amePrefix_switch)){
    if(!_82.id){
    _82.id=wFORMS.helpers.randomId();
    }
    if(!wFORMS.processedForm||!wFORMS.processedForm.id ){
    var _83="undefined";
    }else{
    var _83=wFORMS.processedForm.id;
    }
    var _84=wFORMS.behaviors["switch"].getSwitchNames(_82);
    for(var i=0;i<_84.length;i++){
    if(!wFORMS.switchTriggers[_83]){
    wFORMS.switchTriggers[_83]=new Array();
    }
    if(!wFORMS.switchTriggers[_83][_84[i]]){
    wFORMS.switchTriggers[_83][_84[i]]=new Array();
    }
    if(!wFORMS.switchTriggers[_83][_84[i]][_82.id]){
    wFORMS.switchTriggers[_83][_84[i]].push(_82.id);
    }
    }
    switch(_82.tagName.toUpperCase()){
    case "OPTION":
    var _86=_82.parentNode;
    while(_86&&_86.tagName.toUpperCase()!="SELECT"){
    var _86=_86.parentNode;
    }
    if(!_86){
    alert("Error: invalid markup in SELECT field ?");
    return false;
    }
    if(!_86.id){
    _86.id=wFORMS.helpers.randomId();
    }
    if(!_86.getAttribute("rel")||_86.getAttribute("rel ").indexOf("wfHandled")==-1){
    _86.setAttribute("rel",(_86.getAttribute("rel")||" ")+" wfHandled");
    wFORMS.helpers.addEvent(_86,"change",wFORMS.behavi ors["switch"].run);
    }
    break;
    case "INPUT":
    if(_82.type&&_82.type.toLowerCase()=="radio"){
    var _87=_82.form;
    for(var j=0;j<_87[_82.name].length;j++){
    var _89=_87[_82.name][j];
    if(_89.type.toLowerCase()=="radio"){
    if(!_89.getAttribute("rel")||_89.getAttribute("rel ").indexOf("wfHandled")==-1){
    wFORMS.helpers.addEvent(_89,"click",wFORMS.behavio rs["switch"].run);
    _89.setAttribute("rel",(_89.getAttribute("rel")||" ")+" wfHandled");
    }
    }
    }
    }else{
    wFORMS.helpers.addEvent(_82,"click",wFORMS.behavio rs["switch"].run);
    }
    break;
    default:
    wFORMS.helpers.addEvent(_82,"click",wFORMS.behavio rs["switch"].run);
    break;
    }
    }
    if(wFORMS.helpers.hasClassPrefix(_82,wFORMS.classN amePrefix_offState)||wFORMS.helpers.hasClassPrefix (_82,wFORMS.classNamePrefix_onState)){
    if(!_82.id){
    _82.id=wFORMS.helpers.randomId();
    }
    if(!wFORMS.processedForm||!wFORMS.processedForm.id ){
    var _83="undefined";
    }else{
    var _83=wFORMS.processedForm.id;
    }
    var _84=wFORMS.behaviors["switch"].getSwitchNames(_82);
    for(var i=0;i<_84.length;i++){
    if(!wFORMS.switchTargets[_83]){
    wFORMS.switchTargets[_83]=new Array();
    }
    if(!wFORMS.switchTargets[_83][_84[i]]){
    wFORMS.switchTargets[_83][_84[i]]=new Array();
    }
    if(!wFORMS.switchTargets[_83][_84[i]][_82.id]){
    wFORMS.switchTargets[_83][_84[i]].push(_82.id);
    }
    }
    }
    if(_82.tagName&&_82.tagName.toUpperCase()=="FORM") {
    wFORMS.onLoadComplete.push({form:_82,func:wFORMS.b ehaviors["switch"].init});
    wFORMS.behaviors["switch"].clear(_82.id);
    }
    },init:function(_8a){
    if(!_8a||!_8a.id){
    var _8b="undefined";
    }else{
    var _8b=_8a.id;
    }
    for(var _8c in wFORMS.switchTriggers[_8b]){
    for(var i=0;i<wFORMS.switchTriggers[_8b][_8c].length;i++){
    var _8e=document.getElementById(wFORMS.switchTriggers[_8b][_8c][i]);
    if(wFORMS.behaviors["switch"].isTriggerOn(_8e,_8c)){
    if(_8e.tagName.toUpperCase()=="OPTION"){
    var _8e=_8e.parentNode;
    while(_8e&&_8e.tagName.toUpperCase()!="SELECT"){
    var _8e=_8e.parentNode;
    }
    }
    wFORMS.behaviors["switch"].run(_8e);
    }
    }
    }
    },run:function(e){
    var _90=wFORMS.helpers.getSourceElement(e);
    if(!_90){
    _90=e;
    }
    if(_90.form){
    var _91=_90.form;
    }else{
    var _91=_90.parentNode;
    while(_91&&_91.tagName!="FORM"){
    _91=_91.parentNode;
    }
    }
    if(!_91||!_91.id){
    var _92="undefined";
    }else{
    var _92=_91.id;
    }
    var _93=new Array();
    var _94=new Array();
    switch(_90.tagName.toUpperCase()){
    case "SELECT":
    for(var i=0;i<_90.options.length;i++){
    if(i==_90.selectedIndex){
    _93=_93.concat(wFORMS.behaviors["switch"].getSwitchNames(_90.options[i]));
    }else{
    _94=_94.concat(wFORMS.behaviors["switch"].getSwitchNames(_90.options[i]));
    }
    }
    break;
    case "INPUT":
    if(_90.type.toLowerCase()=="radio"){
    for(var i=0;i<_90.form[_90.name].length;i++){
    var _96=_90.form[_90.name][i];
    if(_96.checked){
    _93=_93.concat(wFORMS.behaviors["switch"].getSwitchNames(_96));
    }else{
    _94=_94.concat(wFORMS.behaviors["switch"].getSwitchNames(_96));
    }
    }
    }else{
    if(_90.checked||wFORMS.helpers.hasClass(_90,wFORMS .className_switchIsOn)){
    _93=_93.concat(wFORMS.behaviors["switch"].getSwitchNames(_90));
    }else{
    _94=_94.concat(wFORMS.behaviors["switch"].getSwitchNames(_90));
    }
    }
    break;
    default:
    break;
    }
    for(var i=0;i<_94.length;i++){
    var _97=wFORMS.behaviors["switch"].getElementsBySwitchName(_94[i],_92);
    for(var j=0;j<_97.length;j++){
    var _99=wFORMS.switchTriggers[_92][_94[i]];
    var _9a=true;
    for(var k=0;k<_99.length;k++){
    var _9c=document.getElementById(_99[k]);
    if(wFORMS.behaviors["switch"].isTriggerOn(_9c,_94[i])){
    if(wFORMS.behaviors["switch"].isWithinSwitchScope(_9c,_97[j])){
    _9a=false;
    }
    }
    }
    if(_9a){
    wFORMS.behaviors["switch"].switchState(_97[j],wFORMS.classNamePrefix_onState,wFORMS.classNamePr efix_offState);
    }
    }
    }
    for(var i=0;i<_93.length;i++){
    var _97=wFORMS.behaviors["switch"].getElementsBySwitchName(_93[i],_92);
    for(var j=0;j<_97.length;j++){
    if(wFORMS.behaviors["switch"].isWithinSwitchScope(_90,_97[j])){
    wFORMS.behaviors["switch"].switchState(_97[j],wFORMS.classNamePrefix_offState,wFORMS.classNameP refix_onState);
    }
    }
    }
    },clear:function(_9d){
    if(_9d){
    wFORMS.switchTriggers[_9d]=[];
    wFORMS.switchTargets[_9d]=[];
    }else{
    wFORMS.switchTriggers=[];
    wFORMS.switchTargets=[];
    }
    },getSwitchNames:function(_9e){
    var _9f=new Array();
    var _a0=_9e.className.split(" ");
    for(var i=0;i<_a0.length;i++){
    if(_a0[i].indexOf(wFORMS.classNamePrefix_switch)==0){
    _9f.push(_a0[i].substr(wFORMS.classNamePrefix_switch.length+1));
    }
    if(_a0[i].indexOf(wFORMS.classNamePrefix_onState)==0){
    _9f.push(_a0[i].substr(wFORMS.classNamePrefix_onState.length+1));
    }else{
    if(_a0[i].indexOf(wFORMS.classNamePrefix_offState)==0){
    _9f.push(_a0[i].substr(wFORMS.classNamePrefix_offState.length+1)) ;
    }
    }
    }
    return _9f;
    },switchState:function(_a2,_a3,_a4){
    if(!_a2||_a2.nodeType!=1){
    return;
    }
    if(_a2.className){
    _a2.className=_a2.className.replace(_a3,_a4);
    }
    if(wFORMS.helpers.hasClass(_a2,wFORMS.className_sw itchIsOff)){
    _a2.className=_a2.className.replace(wFORMS.classNa me_switchIsOff,wFORMS.className_switchIsOn);
    }else{
    if(wFORMS.helpers.hasClass(_a2,wFORMS.className_sw itchIsOn)){
    _a2.className=_a2.className.replace(wFORMS.classNa me_switchIsOn,wFORMS.className_switchIsOff);
    }
    }
    },getElementsBySwitchName:function(_a5,_a6){
    var _a7=new Array();
    if(wFORMS.switchTargets[_a6][_a5]){
    for(var i=0;i<wFORMS.switchTargets[_a6][_a5].length;i++){
    var _a9=document.getElementById(wFORMS.switchTargets[_a6][_a5][i]);
    if(_a9){
    _a7.push(_a9);
    }
    }
    }
    return _a7;
    },isTriggerOn:function(_aa,_ab){
    if(!_aa){
    return false;
    }
    if(_aa.tagName.toUpperCase()=="OPTION"){
    var _ac=_aa.parentNode;
    while(_ac&&_ac.tagName.toUpperCase()!="SELECT"){
    var _ac=_ac.parentNode;
    }
    if(!_ac){
    return false;
    }
    if(_ac.selectedIndex==-1){
    return false;
    }
    if(wFORMS.helpers.hasClass(_ac.options[_ac.selectedIndex],wFORMS.classNamePrefix_switch+"-"+_ab)){
    return true;
    }
    }else{
    if(_aa.checked||wFORMS.helpers.hasClass(_aa,wFORMS .className_switchIsOn)){
    return true;
    }
    }
    return false;
    },isWithinSwitchScope:function(_ad,_ae){
    if(wFORMS.hasBehavior("repeat")&&wFORMS.limitSwitc hScope==true){
    var _af=_ad;
    while(_af&&_af.tagName&&_af.tagName.toUpperCase()! ="FORM"&&!wFORMS.helpers.hasClass(_af,wFORMS.class Name_repeat)&&!wFORMS.helpers.hasClass(_af,wFORMS. className_delete)){
    _af=_af.parentNode;
    }
    if(wFORMS.helpers.hasClass(_af,wFORMS.className_re peat)||wFORMS.helpers.hasClass(_af,wFORMS.classNam e_delete)){
    var _b0=_ae;
    while(_b0&&_b0.tagName&&_b0.tagName.toUpperCase()! ="FORM"&&!wFORMS.helpers.hasClass(_b0,wFORMS.class Name_repeat)&&!wFORMS.helpers.hasClass(_b0,wFORMS. className_delete)){
    _b0=_b0.parentNode;
    }
    if(_af==_b0){
    return true;
    }else{
    return false;
    }
    }else{
    return true;
    }
    }else{
    return true;
    }
    }};
    }
    if(wFORMS){
    wFORMS.preventSubmissionOnEnter=true;
    wFORMS.showAlertOnError=false;
    wFORMS.className_required="required";
    wFORMS.className_validationError_msg="errMsg";
    wFORMS.className_validationError_fld="errFld";
    wFORMS.classNamePrefix_validation="validate";
    wFORMS.idSuffix_fieldError="-E";
    wFORMS.behaviors["validation"]={errMsg_required:"This field is required. ",errMsg_alpha:"The text must use alphabetic characters only (a-z, A-Z). Numbers are not allowed.",errMsg_email:"This does not appear to be a valid email address.",errMsg_integer:"Please enter an integer.",errMsg_float:"Please enter a number (ex. 1.9).",errMsg_password:"Unsafe password. Your password should be between 4 and 12 characters long and use a combinaison of upper-case and lower-case letters.",errMsg_alphanum:"Please use alpha-numeric characters only [a-z 0-9].",errMsg_date:"This does not appear to be a valid date.",errMsg_notification:"%% error(s) detected. Your form has not been submitted yet.\nPlease check the information you provided.",errMsg_custom:"Please enter a valid value.",className_allRequired:"allrequired",jumpTo ErrorOnPage:null,currentPageIndex:-1,submitSwitchedOffFields:false,switchedOffFields:[],evaluate:function(_b1){
    if(_b1.tagName=="FORM"){
    if(wFORMS.functionName_formValidation.toString()== wFORMS.functionName_formValidation){
    wFORMS.functionName_formValidation=eval(wFORMS.fun ctionName_formValidation);
    }
    wFORMS.helpers.addEvent(_b1,"submit",wFORMS.functi onName_formValidation);
    }
    if(wFORMS.preventSubmissionOnEnter){
    if(_b1.tagName=="INPUT"){
    if(!_b1.type||_b1.type.toLowerCase()=="text"||_b1. type.toLowerCase()=="password"||_b1.type.toLowerCa se()=="file"){
    wFORMS.helpers.addEvent(_b1,"keydown",function(e){
    var evt=(e)?e:window.event;
    if(evt.keyCode==13){
    return wFORMS.helpers.preventEvent(evt);
    }
    });
    }
    }
    }
    },init:function(){
    },run:function(e){
    var _b5=wFORMS.helpers.getSourceElement(e);
    if(!_b5){
    _b5=e;
    }
    var _b6=arguments.length>1?arguments[1]:false;
    wFORMS.behaviors["validation"].switchedOffFields=[];
    wFORMS.behaviors["validation"].jumpToErrorOnPage=null;
    while(_b5&&_b5.tagName!="FORM"){
    _b5=_b5.parentNode;
    }
    var _b7=wFORMS.behaviors["validation"].validateElement(_b5,_b6,true);
    wFORMS.behaviors["validation"].errorCount=_b7;
    if(_b7>0){
    if(wFORMS.behaviors["validation"].jumpToErrorOnPage){
    wFORMS.behaviors["paging"].gotoPage(wFORMS.behaviors["validation"].jumpToErrorOnPage);
    }
    if(wFORMS.showAlertOnError){
    wFORMS.behaviors["validation"].showAlert(_b7);
    }
    return wFORMS.helpers.preventEvent(e);
    }
    if(!wFORMS.behaviors["validation"].submitSwitchedOffFields&&!_b6){
    for(var i=0;i<wFORMS.behaviors["validation"].switchedOffFields.length;i++){
    var _b5=wFORMS.behaviors["validation"].switchedOffFields[i];
    while(_b5.childNodes[0]){
    _b5.removeChild(_b5.childNodes[0]);
    }
    }
    }
    return true;
    },remove:function(){
    },validateElement:function(_b9){
    if(!_b9){
    return;
    }
    var _ba=arguments.length>2?arguments[2]:true;
    var _bb=arguments[1]?arguments[1]:false;
    var _bc=wFORMS.behaviors["validation"];
    if(wFORMS.hasBehavior("switch")&&wFORMS.helpers.ha sClassPrefix(_b9,wFORMS.classNamePrefix_offState)) {
    if(!_bc.submitSwitchedOffFields){
    _bc.switchedOffFields.push(_b9);
    }
    return 0;
    }
    if(wFORMS.hasBehavior("paging")&&wFORMS.helpers.ha sClass(_b9,wFORMS.className_paging)){
    if(!wFORMS.helpers.hasClass(_b9,wFORMS.className_p agingCurrent)&&_bb){
    return 0;
    }
    _bc.currentPageIndex=wFORMS.behaviors["paging"].getPageIndex(_b9);
    }
    var _bd=0;
    if(!_bc.checkRequired(_b9)){
    _bc.showError(_b9,_bc.errMsg_required);
    _bd++;
    }else{
    if(wFORMS.helpers.hasClassPrefix(_b9,wFORMS.classN amePrefix_validation)){
    var _be=_b9.className.split(" ");
    for(j=0;j<_be.length;j++){
    switch(_be[j]){
    case "validate-alpha":
    if(!_bc.isAlpha(_b9.value)){
    _bc.showError(_b9,_bc.errMsg_alpha);
    _bd++;
    }
    break;
    case "validate-nombre":
    if(!_bc.isAlpha(_b9.value)){
    _bc.showError(_b9,_bc.errMsg_nombre);
    _bd++;
    }
    break;
    case "validate-alphanum":
    if(!_bc.isAlphaNum(_b9.value)){
    _bc.showError(_b9,_bc.errMsg_alphanum);
    _bd++;
    }
    break;
    case "validate-date":
    if(!_bc.isDate(_b9.value)){
    _bc.showError(_b9,_bc.errMsg_date);
    _bd++;
    }
    break;
    case "validate-time":
    break;
    case "validate-email":
    if(!_bc.isEmail(_b9.value)){
    _bc.showError(_b9,_bc.errMsg_email);
    _bd++;
    }
    break;
    case "validate-integer":
    if(!_bc.isInteger(_b9.value)){
    _bc.showError(_b9,_bc.errMsg_integer);
    _bd++;
    }
    break;
    case "validate-float":
    if(!_bc.isFloat(_b9.value)){
    _bc.showError(_b9,_bc.errMsg_float);
    _bd++;
    }
    break;
    case "validate-strongpassword":
    if(!_bc.isPassword(_b9.value)){
    _bc.showError(_b9,_bc.errMsg_password);
    _bd++;
    }
    break;
    case "validate-custom":
    var _bf=new RegExp("/([^/]*)/([gi]*)");
    var _c0=_b9.className.match(_bf);
    if(_c0[0]){
    var _c1=new RegExp(_c0[1],_c0[2]);
    if(!_b9.value.match(_c1)){
    _bc.showError(_b9,_bc.errMsg_custom);
    _bd++;
    }
    }
    break;
    }
    }
    }
    }
    if(_bd==0){
    _bc.removeErrorMessage(_b9);
    }else{
    if(_bc.currentPageIndex>0&&!_bc.jumpToErrorOnPage) {
    _bc.jumpToErrorOnPage=_bc.currentPageIndex;
    }
    }
    if(_ba){
    for(var i=0;i<_b9.childNodes.length;i++){
    if(_b9.childNodes[i].nodeType==1){
    _bd+=_bc.validateElement(_b9.childNodes[i],_bb,_ba);
    }
    }
    }
    return _bd;
    },checkRequired:function(_c3){
    var _c4=wFORMS.behaviors["validation"];
    if(wFORMS.helpers.hasClass(_c3,wFORMS.className_re quired)){
    switch(_c3.tagName.toUpperCase()){
    case "INPUT":
    var _c5=_c3.getAttribute("type");
    if(!_c5){
    _c5="text";
    }
    switch(_c5.toLowerCase()){
    case "checkbox":
    return _c3.checked;
    break;
    case "radio":
    return _c3.checked;
    break;
    default:
    return !_c4.isEmpty(_c3.value);
    }
    break;
    case "SELECT":
    if(_c3.selectedIndex==-1){
    return false;
    }else{
    return !_c4.isEmpty(_c3.options[_c3.selectedIndex].value);
    }
    break;
    case "TEXTAREA":
    return !_c4.isEmpty(_c3.value);
    break;
    default:
    return _c4.checkOneRequired(_c3);
    break;
    }
    }else{
    if(wFORMS.helpers.hasClass(_c3,_c4.className_allRe quired)){
    return _c4.checkAllRequired(_c3);
    }
    }
    return true;
    },checkOneRequired:function(_c6){
    if(_c6.nodeType!=1){
    return false;
    }
    var _c7=_c6.tagName.toUpperCase();
    var _c8=wFORMS.behaviors["validation"];
    if(_c7=="INPUT"||_c7=="SELECT"||_c7=="TEXTAREA"){
    var _c9=_c8.getFieldValue(_c6);
    if(!_c8.isEmpty(_c9)){
    return true;
    }
    }
    for(var i=0;i<_c6.childNodes.length;i++){
    if(_c8.checkOneRequired(_c6.childNodes[i])){
    return true;
    }
    }
    return false;
    },checkAllRequired:function(_cb){
    if(_cb.nodeType!=1){
    return true;
    }
    var _cc=_cb.tagName.toUpperCase();
    var _cd=wFORMS.behaviors["validation"];
    if(_cc=="INPUT"||_cc=="SELECT"||_cc=="TEXTAREA"){
    var _ce=_cd.getFieldValue(_cb);
    if(_cd.isEmpty(_ce)){
    return false;
    }
    }
    for(var i=0;i<_cb.childNodes.length;i++){
    if(!_cd.checkAllRequired(_cb.childNodes[i])){
    return false;
    }
    }
    return true;
    },getFieldValue:function(_d0){
    var _d1=null;
    if(_d0&&_d0.tagName){
    if(_d0.tagName.toUpperCase()=="INPUT"){
    var _d2=_d0.getAttribute("type");
    if(!_d2){
    _d2="text";
    }
    switch(_d2.toLowerCase()){
    case "checkbox":
    _d1=_d0.checked?_d0.value:null;
    break;
    case "radio":
    var _d3=_d0.form[_d0.name];
    for(var i=0;i<_d3.length;i++){
    if(_d3[i].checked){
    if(!_d1){
    _d1=new Array();
    }
    _d1[_d1.length]=_d3[i].value;
    }
    }
    break;
    default:
    _d1=_d0.value;
    }
    }else{
    if(_d0.tagName.toUpperCase()=="SELECT"){
    if(_d0.selectedIndex!=-1){
    _d1=_d0.options[_d0.selectedIndex].value;
    }else{
    _d1=null;
    }
    }else{
    if(_d0.tagName.toUpperCase()=="TEXTAREA"){
    _d1=_d0.value;
    }
    }
    }
    }
    return _d1;
    },isEmpty:function(s){
    var _d6=/^\s+$/;
    return ((s==null)||(s.length==0)||_d6.test(s));
    },isAlpha:function(s){
    var _d8=/^[a-zA-Z\s]+$/;
    return wFORMS.behaviors["validation"].isEmpty(s)||_d8.test(s);
    },isAlphaNum:function(s){
    var _d8=/^[a-zA-Z\s]+$/;
    return wFORMS.behaviors["validation"].isEmpty(s)||_d8.test(s);
    },isnombre:function(s){
    var _da=/^[\w\s]+$/;
    return wFORMS.behaviors["validation"].isEmpty(s)||_da.test(s);
    },isDate:function(s){
    var _dc=new Date(s);
    return wFORMS.behaviors["validation"].isEmpty(s)||!isNaN(_dc);
    },isEmail:function(s){
    var _de=/\w{1,}[@][\w\-]{1,}([.]([\w\-]{1,})){1,3}$/;
    return wFORMS.behaviors["validation"].isEmpty(s)||_de.test(s);
    },isInteger:function(s){
    var _e0=/^[+]?\d+$/;
    return wFORMS.behaviors["validation"].isEmpty(s)||_e0.test(s);
    },isFloat:function(s){
    return wFORMS.behaviors["validation"].isEmpty(s)||!isNaN(parseFloat(s));
    },isPassword:function(s){
    return wFORMS.behaviors["validation"].isEmpty(s);
    },showError:function(_e3,_e4){
    wFORMS.behaviors["validation"].removeErrorMessage(_e3);
    if(!_e3.id){
    _e3.id=wFORMS.helpers.randomId();
    }
    _e3.className+=" "+wFORMS.className_validationError_fld;
    var _e5=document.createTextNode(" "+_e4);
    var fe=document.getElementById(_e3.id+wFORMS.idSuffix_ fieldError);
    if(!fe){
    fe=document.createElement("div");
    fe.setAttribute("id",_e3.id+wFORMS.idSuffix_fieldE rror);
    var fl=document.getElementById(_e3.id+wFORMS.idSuffix_ fieldLabel);
    if(fl){
    fl.parentNode.insertBefore(fe,fl.nextSibling);
    }else{
    _e3.parentNode.insertBefore(fe,_e3.nextSibling);
    }
    }
    fe.appendChild(_e5);
    fe.className+=" "+wFORMS.className_validationError_msg;
    },showAlert:function(_e8){
    alert(wFORMS.behaviors["validation"].errMsg_notification.replace("%%",_e8));
    },removeErrorMessage:function(_e9){
    if(wFORMS.helpers.hasClass(_e9,wFORMS.className_va lidationError_fld)){
    var _ea=new RegExp(wFORMS.className_validationError_fld,"gi");
    _e9.className=_e9.className.replace(_ea,"");
    var _eb=document.getElementById(_e9.id+wFORMS.idSuffix _fieldError);
    if(_eb){
    _eb.innerHTML="";
    }
    }
    }};
    wFORMS.functionName_formValidation=wFORMS.behavior s["validation"].run;
    wFORMS.formValidation=wFORMS.behaviors["validation"].run;
    wFORMS.arrErrorMsg=new Array();
    wFORMS.arrErrorMsg[0]=wFORMS.behaviors['validation'].errMsg_required = "Campo obligatorio";
    wFORMS.arrErrorMsg[1]=wFORMS.behaviors['validation'].errMsg_alpha = "El campo tiene que ser alfabético";
    wFORMS.arrErrorMsg[2]=wFORMS.behaviors['validation'].errMsg_email = "El campo tiene que ser un email";
    wFORMS.arrErrorMsg[3]=wFORMS.behaviors['validation'].errMsg_integer = "El campo tiene que ser un numero entero";
    wFORMS.arrErrorMsg[4]=wFORMS.behaviors['validation'].errMsg_float = "El campo tiene que ser un numero decimal";
    wFORMS.arrErrorMsg[5]=wFORMS.behaviors["validation"].errMsg_password;
    wFORMS.arrErrorMsg[6]=wFORMS.behaviors['validation'].errMsg_alphanum ="El campo tienen que ser alfanumérico";
    wFORMS.arrErrorMsg[7]=wFORMS.behaviors['validation'].errMsg_date = "El campo tiene que ser una fecha";
    wFORMS.arrErrorMsg[8]=wFORMS.behaviors['validation'].errMsg_nombre = "El campo nombre es obligatorio";
    wFORMS.arrErrorMsg[9]=wFORMS.behaviors['validation'].errMsg_notification = "%% error(s) detectado(s). El formulario no se enviará.\nPor favor, chequea la información suministrada.";
    }




    GRacias!!!!!
    +
     
    0
    Me gusta
     
    http://www.psicofxp.com/forums/webmasters.319/941533-campos-obligatorios.html
    | Más
  • #2 Re: Campos obligatorios

    hola
    claramente eso no lo hiciste tú, entonces es difícil ayudarte.
    Me gusta este mensaje
  • #3 Re: Campos obligatorios

    sotelio, como te dije en el mensaje anterior...lo arranco un amigo pero trabaja de una forma muy compleja para mi, no entiendo nada. Ahora te subo otra parte del archivo ese, asi es mas claro y ver si me podes ayudar

    gracias de nuevo, por tu ayuda!!!
    Me gusta este mensaje
  • #4 Re: Campos obligatorios

    Hola!
    A lo que me refería es que eso que pegaste es una librería, y no un código que haga algo específico...
    Por eso es que es tan enredado..
    Saludos
    Me gusta este mensaje
  • #5 Re: Campos obligatorios

    Hola sotelio, como estas? Te hago otra consulta mientras tanto. Yo tengo una buscador en mi web, que cuando ingresas la plabra funciona, busca y te lleva a la pagina con los resultados, pero despues en la pagina donde estan...al hacer click en el resultado no va a ningun lado...Link de los resultados:

    http://visualpoint.com.ar/rtl/search.php?onLoad=[type%20Function]&q=giganto

    y al hacer clic por ejemplo en:

    Rotularte | Presupuestos

    ... cm. Productos: Gigantografías para Exterior Gigantografías para Interior Gráfica Autoadhesiva Carteles Corpóreos Portabanners ...
    presupuestos.html


    me tira este error:
    Not Found

    The requested URL /rtl/<!--FileName--> was not found on this server.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


    Tengo dos php que funcionan con ese buscador con esa pagina de search.html son:


    search.ini.php


    <?php
    /* file name of search results template */
    $template = 'search.htm';

    /* lenght of content abstract */
    $abstract_length = 400;

    /* results messages */
    $noResults = 'No se encontraron coincidencias acordes a su busqueda.';
    $yesResults = 'Se encontraron $result coincidencias acordes a su busqueda.'; // note that $result variable means number of files found
    $noString = 'Por favor, ingrese al menos una palabra para realizar la búsqueda.';

    /* array of especial characters and replacement */
    // spanich characters
    $chars["á"] = 'a';
    $chars["é"] = 'e';
    $chars["í"] = 'i';
    $chars["ó"] = 'o';
    $chars["ú"] = 'u';
    $chars["ñ"] = 'n';

    ?>


    ================================================== =======
    search.php


    <?php

    function strong($text, $content, $long)
    {
    $begin = strpos($text, $_GET["q"]);
    $end = $begin + strlen($_GET["q"]);

    $begin > $long ? $begin_cut = $begin-$long : $begin_cut=0;
    $end + $long < strlen($text) ? $end_cut = $end + $long : $end_cut = strlen($text);

    $strong = htmlentities(substr($content, $begin_cut, $begin-$begin_cut));
    $strong .= '<strong>' . htmlentities(substr($content, $begin, $end-$begin)) . '</strong>';
    $strong .= htmlentities(substr($content, $end, $end_cut-$end));

    $end_cut < strlen($text) ? $strong .= '...' : $strong;
    $begin_cut > 0 ? $strong='...' . $strong : $strong;

    return $strong;
    }

    /* Read the configuration file */
    if (file_exists("search.ini.php")) {
    include("search.ini.php");
    } else {
    die ('Configure su template para mostrar los resultados.');
    }

    /* Read the template file */
    if (!empty($template) and file_exists($template)) {
    $template = file_get_contents($template);
    } else {
    die ('El template para mostrar los resultados, no se encuentra en funcionamiento.');
    }

    /* Parse the template */
    $begin_template = substr($template, 0, strpos($template, '<!--SearchResultsBegin-->'));
    $file_template = substr($template, strpos($template, '<!--SearchResultsBegin-->') + 25, strpos($template, '<!--SearchResultsEnd-->')-(strpos($template, '<!--SearchResultsBegin-->') + 25));
    $end_template = substr($template, strpos($template, '<!--SearchResultsEnd-->') + 23);

    /* Check the GET variable */
    if (isset($_GET["q"])) {

    /* Clear any html tags from string */
    $_GET["q"] = strip_tags($_GET["q"]);

    /* Clear quotes */
    $_GET["q"] = str_replace('"', '', stripslashes($_GET["q"]));

    /* Replace especial characters */
    if (is_array($chars)) {
    $_GET["q"] = str_replace(array_keys($chars), array_values($chars), strtolower($_GET["q"]));
    }

    /* Set the variables */
    $results = '';
    $result = 0;
    $abstract_length = ($abstract_length - strlen($_GET["q"])) / 2;

    /* Read the directory */
    $files = opendir('.');
    while (false != ($file=readdir($files))) {

    /* Check if file is a html file */
    if (eregi('(htm|html)$', $file)) {

    /* Read the file content */
    $content = file_get_contents($file);

    /* Obtain the documment title */
    $title = substr($content, strpos ($content, '<title>') + 7);
    $title = substr($title, 0, strpos ($title, '</title>'));

    /* Parse the content for search content */
    $content = substr($content, strpos ($content, '<!--SearchAreaBegin-->') + 22);
    $content = substr($content, 0, strpos ($content, '<!--SearchAreaEnd-->'));
    $content = strip_tags($content);
    $content = html_entity_decode($content);
    if (is_array($chars)) {
    $text=str_replace(array_keys($chars), array_values($chars), strtolower($content));
    }

    /* Search the string in the content */
    if (ereg($_GET["q"], $text)) {
    $replace['<!--FileTitle-->'] = $title;
    $replace['<!--FileName-->'] = $file;
    $replace['<!--FileAbstract-->'] = str_replace('\r\n', ' ', strong($text, $content, $abstract_length));

    $results .= str_replace(array_keys($replace), array_values($replace), $file_template);
    $result++;
    }
    }
    }

    /* Create a result message */
    if ($result==0) {
    $message = $noResults;
    } else {
    eval("\$message = \"$yesResults\";");
    }
    } else {
    $message = $noString;
    }

    /* Join the documment parts and send it to browser */
    $results = $begin_template . $results . $end_template;
    $results = str_replace('<!--Results-->', $message, $results);

    echo $results;

    ?>




    ================================================== ========


    Si me podrias orientar seria buensimo!! Saludos!!
    Me gusta este mensaje
  • #6 Re: Campos obligatorios

    Me olvide...y el codigo del search.html es:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html lang="es" xmlns="http://www.w3.org/1999/xhtml">

    <head>

    <!--[if lt IE 7]>
    <style>
    h1 a {
    background-image:url(images/clearlogo.gif);
    background-position:left top;
    background-repeat:no-repeat;
    border:none;
    display:block;
    width:201px;
    height:64px;
    line-height:200px;
    overflow:hidden;
    padding:0px;
    margin: 0px;
    }
    h1 a:hover {
    background:transparent url(images/clearlogo.gif) top left no-repeat;
    }
    .address {
    font-size:12px;
    line-height:18px;
    letter-spacing:-1px;
    }
    </style>
    <script language="JavaScript">
    function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
    {
    var arVersion = navigator.appVersion.split("MSIE")
    var version = parseFloat(arVersion[1])

    if ((version >= 5.5) && (document.body.filters))
    {
    for(var i=0; i<document.images.length; i++)
    {
    var img = document.images[i]
    var imgName = img.src.toUpperCase()
    if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
    {
    var imgID = (img.id) ? "id='" + img.id + "' " : ""
    var imgClass = (img.className) ? "class='" + img.className + "' " : ""
    var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
    var imgStyle = "display:inline-block;" + img.style.cssText
    if (img.align == "left") imgStyle = "float:left;" + imgStyle
    if (img.align == "right") imgStyle = "float:right;" + imgStyle
    if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
    var strNewHTML = "<span " + imgID + imgClass + imgTitle
    + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
    + "filterrogidXImageTransform.Microsoft.AlphaIma geLoader"
    + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
    img.outerHTML = strNewHTML
    i = i-1
    }
    }
    }
    }
    window.attachEvent("onload", correctPNG);
    </script>
    <![endif]-->


    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Rotularte | Buscador</title>

    <script type="text/javascript" src="js/swfobject.js"></script>
    <link href="styles/styles.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    .style16 {color: #666666}
    .style17 { color: #FFFFFF;
    font-size: 18px;
    font-weight: bold;
    }
    .style20 { font-size: 15px;
    color: #FFFFFF;
    }
    -->
    </style>
    <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }

    function MM_swapImgRestore() { //v3.0
    var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    }

    function MM_findObj(n, d) { //v4.01
    var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
    if(!x && d.getElementById) x=d.getElementById(n); return x;
    }

    function MM_swapImage() { //v3.0
    var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    }
    //-->
    </script>
    </head>

    <body onload="MM_preloadImages('images/carrito_down.jpg')">
    <table width="800" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
    <tr>
    <td width="3" height="193" background="images/verde_fondo_izquierda.png" bgcolor="#CCCCCC">&nbsp;</td>
    <td width="951" valign="top" bgcolor="#FFFFFF"><div class="contenedor_gral">
    <div class="header" align="center" style="width: 800px; position:absolute; top:0px; z-index:2; visibility:visible; text-align:center;">
    <div id="flashcontent1"></div>
    <script type="text/javascript">
    // <![CDATA[
    var so = new SWFObject("header_secciones.swf", "botonera1", "800", "180", "8");
    so.addVariable("flashVarText", "descargar flash");
    so.addParam("scale", "noscale");
    so.addParam("menu", "false");
    so.write("flashcontent1");
    // ]]>
    </script>
    </div>
    <div class="contenedor">
    <div class="contenedor_izq">
    <div id="container">
    <table width="610" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="29" height="22">&nbsp;</td>
    <td width="25" height="22">&nbsp;</td>
    <td width="526" height="22">&nbsp;</td>
    <td height="22">&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td height="22" background="images/secciones/flecha_02_Layer 1.png">&nbsp;</td>
    <td width="526" background="images/secciones/seccion_botonera_top.png"><span class="titulo1 style17"><span class="style20">BUSCADOR DE ROTULARTE</span></span></td>
    <td width="30">&nbsp;</td>
    </tr>

    <tr>
    <td>&nbsp;</td>
    <td colspan="2" valign="top"><div id="search2">
    <div id="search3"><br />
    <br />
    </div>
    <div id="content">
    <div class="style16" style="font-size:16px;">Resultados de la búsqueda</div>
    <p>
    <!--Results-->
    </p>
    <!--SearchResultsBegin-->
    <div>
    <h3><a href="&lt;!--FileName--&gt;">
    <!--FileTitle-->
    </a></h3>
    <p>
    <!--FileAbstract-->
    <br />
    <a href="&lt;!--FileName--&gt;">
    <!--FileName-->
    </a></p>
    </div>
    <br />
    <!--SearchResultsEnd-->
    </div>
    <div id="footer">
    <p> Desarrollado por <a href="http://www.visualpoint.com.ar" target="_blank">Visualpoint</a></p>
    </div>
    <br />
    </div></td>
    <td>&nbsp;</td>
    </tr>
    </table>
    <div id="header">
    <address>
    </address>
    </div>
    </div>
    </div>
    <div class="contenedor_der">
    <table width="170" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td height="65" valign="top"><a href="carrito.php"><img src="images/carrito_up.jpg" width="190" height="65" border="0" id="Image90" title="Consulte su Carrito de Presupuestos desde aquí" onmouseover="MM_swapImage('Image90','','images/carrito_down.jpg',1)" onmouseout="MM_swapImgRestore()" /></a></td>
    </tr>
    <tr>
    <td height="58" align="center" valign="top" background="images/fodno_banners.png"><script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','188','heigh t','123','src','ban_contacto','quality','high','pl uginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','wmod e','transparent','movie','ban_contacto' ); //end AC code
    </script>
    <noscript>
    <object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="188" height="123">
    <param name="movie" value="ban_contacto.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <embed src="ban_contacto.swf" width="188" height="123" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent"></embed>
    </object>
    </noscript></td>
    </tr>
    <tr>
    <td height="15" align="center" valign="top" background="images/fodno_banners.png"><img src="images/pie_carrito.png" width="190" height="32" /></td>
    </tr>
    <tr>
    <td height="233" align="right" valign="top" background="images/fodno_banners.png"><script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','189','heigh t','400','src','ban_portabanners','quality','high' ,'pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','wmod e','transparent','movie','ban_portabanners' ); //end AC code
    </script>
    <noscript>
    <object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="189" height="400">
    <param name="movie" value="ban_portabanners.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <embed src="ban_portabanners.swf" width="189" height="400" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent"></embed>
    </object>
    </noscript></td>
    </tr>
    <tr>
    <td height="15" align="center" valign="top" background="images/fodno_banners.png">&nbsp;</td>
    </tr>
    <tr>
    <td height="15" align="center" valign="top" background="images/fodno_banners.png"><table width="179" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="179"><img src="images/news_banner_top.png" width="179" height="159" /></td>
    </tr>
    <tr>
    <td height="159" valign="top" background="images/news_banner_pie.png"><form name="form1" id="form1" method="post" action="procesar.php">
    <div class="news_home">
    <table width="144" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="13" valign="top"><img src="images/campos_news_puntas.png" width="13" height="23" /></td>
    <td width="65"><input name="nombre" type="text" class="campo_news" id="campo_news" onclick="this.value='';" value="Nombre" size="10"/></td>
    <td width="66" valign="top"><img src="images/campos_news_puntas_derecha.png" width="13" height="23" /></td>
    </tr>
    <tr>
    <td valign="top"><img src="images/campos_news_puntas.png" width="13" height="23" /></td>
    <td><input name="email" type="text" class="campo_news" id="text8" value="Email"/></td>
    <td valign="top"><img src="images/campos_news_puntas_derecha.png" width="13" height="23" /></td>
    </tr>
    <tr>
    <td colspan="3"><input name="input" type="submit" class="boton_enviar" value="Enviar"/></td>
    </tr>
    </table>
    </div>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    </form></td>
    </tr>
    </table></td>
    </tr>
    </table>
    <div align="center"></div>
    <div align="center"></div>
    </div>
    <!--SearchAreaEnd-->
    <div class="pie"><img src="images/linea.jpg" /><br />
    <br />
    <a href="gigantografias_exterior.html">Productos y Servicios</a> |<a href="casosdeexito.html"> Casos de &eacute;xito</a> | <a href="newsletter_2009.html">Newsletter</a> | <a href="presupuestos.html">Presupuestos</a> | <a href="ftp.html">Env&iacute;o de originales</a><br />
    <a href="download.html">Downloads</a> :: <a href="glosario.html">Glosario</a> :: <a href="links.html">Links</a> :: <a href="empresa.html">Empresa</a> :: <a href="rrhh.html">RRHH</a> :: <a href="clientes.html">Clientes</a> :: <a href="contacto.html">Contacto</a><br />
    <a href="politicadeprivacidad.html">Pol&iacute;tica de privacidad</a> - <a href="mapadelsitio.html">Mapa del sitio</a> </div>
    </div>
    </div></td>
    <td width="3" background="images/verde_fondo_derecha.png">&nbsp;</td>
    </tr>
    </table>
    <!--SearchAreaBegin-->
    </body>
    </html>


    ================================================== ==========

    Par mi sotelio sos la fuente del saber!!! saludos!!
    Me gusta este mensaje
  • #7 Re: Campos obligatorios

    listo ahi pude arreglarlo!
    Me gusta este mensaje
Estás en: Inicio >> Foros >> Informática >> Webmasters


Estadísticas del tema
  • 6 RESPUESTAS
  • 147 VISTAS
  • 2 USUARIOS RESPONDIERON
 
Ir arriba
Contacto | Acerca de | Ayuda | Términos Legales | privacidad | Pautas de convivencia | Mapa de los foros | TrabajÁ con nosotros
©2008 Psicofxp.com S.A. - Todos los derechos reservados
Certifica IAB