function validateFill(G,C,H){var F=(document.forms[G][C]==null?document.forms[G][C+"[]"]:document.forms[G][C]);if(F!=null){var A=F.length;if(A!=undefined){for(var D=A-1;D>=0;D--){if(F.options){if(F.options[D].value==H.toString()){F.selectedIndex=D;break}}else{var E=false;if(typeof H=="string"){E=(F[D].value==H.toString())}else{for(var B=H.length-1;B>=0;B--){if(F[D].value==H[B].toString()){E=true;break}}}F[D].checked=E}}}else{document.forms[G][C].value=H}}}function validateError(D){var A=document.getElementById("form_errors");var C=document.createTextNode(D);var B=document.createElement("li");B.appendChild(C);A.appendChild(B);A.style.display="block"};
