Minor style changes
[castle.git] / MonoRail / TestSiteNVelocity / views / jsgeneration / CheckCNPJ.njs
blob6de6f015e82e0575cb30821c723497bbe58970fc
1 #if(!$isValid)\r
2         ## not valid CNPJ \r
3         \r
4         $page.Call("alert", '"start"');\r
5     $page.Call("showError", '"invalid data"');\r
6     $page.el('lblcnpj').style.color.set('"#FF0000"');\r
7         $page.Call("alert", '"end"');\r
8 \r
9 #else\r
10         ## valid CNPJ\r
12         #if($exists)\r
13                 ##page.ReplaceHtml("divOperation", "%{partial='shared/cnpjDiv.vm'}")\r
14                 $page.ReplaceHtml("divOperation", "TODDDDDDDDDDDDDDDDDDDDDDDDDD AAAAAAAAAAAAAAAAAAAAA DDDDDDDDDDDDDDDDDDD AAAAAA")\r
15                 $page.Show("divOperation")\r
16                 $page.el('txtSenhaErro').focus()\r
17     #end\r
19     $page.el('lblcnpj').style.color.set('"#6784A0"');\r
20     $page.Hide("errormsg"); \r
21 #end