var validatorCallback=function(C){var F=document.getElementById("mssgs");F.innerHTML="";labels=document.getElementsByTagName("label");for(i=0;i<labels.length;i++){if(labels[i].attributes["for"]!=null){if(C.errorFields[labels[i].attributes["for"].value]!=null){if(C.msgFields[labels[i].attributes["for"].value]!=null){F.innerHTML+=C.msgFields[labels[i].attributes["for"].value]+"<br/>"}else{F.innerHTML+=TEXTS.REQUIRED_FIELDS_MSG_TEMPLATE.replace("##FIELDNAME##","<b>"+labels[i].firstChild.data+"</b>")+"<br/>"}var D=document.getElementById(labels[i].attributes["for"].value);if(D===null||(D.type.toUpperCase()!="CHECKBOX"&&D.type.toUpperCase()!="HIDDEN")){if(D!==null&&D.id==labels[i].attributes["for"].value){D.style.backgroundColor="#FCEAE7"}else{var B=document.getElementsByName(labels[i].attributes["for"].value);for(var A=0;A<B.length;A++){var E=getElementsByAttribute(document,"label","for",B[A].id);if(E[0]!==null){E[0].style.borderBottom="2px dotted #C00"}}}}else{labels[i].style.borderBottom="2px dotted #C00"}}}}F.style.display="block"};function getElementsByAttribute(H,I,K,D){var E=(I=="*"&&H.all)?H.all:H.getElementsByTagName(I);var C=new Array();var G=(typeof D!="undefined")?new RegExp("(^|\\s)"+D+"(\\s|$)","i"):null;var A;var F;var J=null;for(var B=0;B<E.length;B++){A=E[B];F=null;J=null;F=A.attributes[K];if(typeof F!=="undefined"){if(F!==null&&F.nodeValue){J=F.nodeValue}}if(typeof D=="undefined"||(G&&G.test(J))){C.push(A)}}return C};