0
I don’t quite understand what you wanted to do with this code. You should open a Div with a basic form.
My code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="http://cloud.github.com/downloads/digitalBush/jquery.maskedinput/jquery.maskedinput-1.3.min.js"></script>
<script src="../../Scripts/jQuery.js"></script>
<script type="text/javascript">
    var SoliciteProposta = $.noConflict();
    function MostrarEsconderDiv(div) {
        var prefixo = "ContentPlaceHolderDefault_ContentPlaceHolderDefault_ctl02_SoliciteUmaProposta_5_";
        var hdnDiv = prefixo + "hdn" + div;
        if (document.getElementById(prefixo + div).style.display == "none") {
            document.getElementById(prefixo + div).style.display = "block";
            document.getElementById(hdnDiv).value = "aberta";
        }
        else {
            document.getElementById(prefixo + div).style.display = "none";
            document.getElementById(hdnDiv).value = "";
        }
    }
</script>
<tr>
                        <td colspan="3" height="10">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" valign="top">
                            <div class="Section">
                                <div class="SectionHeader">
                                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                        <tr>
                                            <td>
                                                <img align="absMiddle" hspace="4" src="/images/internas/seta3.gif" />
                                                <a id="A3" class="linkFormularios" href="javascript:MostrarEsconderDiv('divSecao6')">Para Sistema Integrado de Gestão, clique aqui</a>
                                                <%--  <asp:LinkButton ID="lbtnAbrirSecao6" runat="server" ForeColor="#cc3333" Font-Size="small" Font-Bold="true" OnClientClick="return MostrarEsconderDiv('divSecao6')">
                                            Para Sistema Integrado de Gestão, clique aqui
                                            </asp:LinkButton>
                                                --%>
                                                <br />
                                                (abrirá um formulário nesta mesma página para você preencher)
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                                <div id="spacer" style="margin-top: 5px">
                                </div>
                                <div id="divSecao6" style="display: none; margin-left: 30px" runat="server">
                                    <table id="idSecao6Table" width="100%">
                                        <!-- SECAO 6 -->
                                        <tr>
                                            <td height="15">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" bgcolor="#ececec" height="21">
                                                <b>6 - Apenas para Sistema Integrado de Gestão</b>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td bgcolor="#cccccc" height="1">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="5">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" bgcolor="#f5f5f5">
                                                Responda a esta seção apenas se você estiver interessado em uma certificação integrada (opcional).
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="5">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <font color="#666666"><b>A Política e o Manual do Sistema de Gestão são integrados?</b></font>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButtonList ID="rblPoliticaManualSistemaIntegrados" runat="server" RepeatDirection="Horizontal">
                                                    <asp:ListItem Value="Sim" Text="Sim"></asp:ListItem>
                                                    <asp:ListItem Value="Não" Text="Não"></asp:ListItem>
                                                </asp:RadioButtonList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="5">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td bgcolor="#cccccc" height="1">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="5">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <font color="#666666"><b>Os procedimentos de gestão (ex: Controle Documentos, Auditorias) são integrados?</b></font>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButtonList ID="rblProcGestaoIntegrados" runat="server" RepeatDirection="Horizontal">
                                                    <asp:ListItem Value="Sim" Text="Sim, pelo menos 80% dos procedimentos de gestão são integrados"></asp:ListItem>
                                                    <asp:ListItem Value="Não" Text="Não"></asp:ListItem>
                                                </asp:RadioButtonList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="5">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td bgcolor="#cccccc" height="1">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="5">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <font color="#666666"><b>Os procedimentos operacionais (ex: Controle de produção) são integrados?</b></font>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:RadioButtonList ID="rblProcOperacionaisIntegrados" runat="server" RepeatDirection="Horizontal">
                                                    <asp:ListItem Value="Sim" Text="Sim, pelo menos 80% dos procedimentos operacionais são integrados"></asp:ListItem>
                                                    <asp:ListItem Value="Não" Text="Não"></asp:ListItem>
                                                </asp:RadioButtonList>
                                            </td>
                                        </tr>
                                        <!-- FIM - ESCONDE SEÇÃO 6  -->
                                    </table>
                                </div>
                            </div>
                        </td>
                    </tr>
						
What’s your question exactly? The div isn’t showing up?
– Fernando Medeiros
This @Fernandomedeiros, I did not understand very well what the guy wanted to do, I need to make the div visible. I want to understand and fix this code.
– AndreeH
Face basically what the function does is to concatenate a string passed as parameter with a preset value and select the element with that resulting string, if the element is visible it hides, otherwise it makes appear
– Fernando Medeiros
The function is called each time a click occurs on the <a id="A3" class="linkFormularios" href="javascript:Showhidediv('divSecao6')">For Integrated Management System, click here</a>
– Fernando Medeiros
Oh beauty, I understood right then, only that type is not appearing when clicking on the link. How can I modify this Function so that it is visible when clicking ?
– AndreeH
you should look for the html element that is grouping such a form that Voce said should appear, look for the id attribute, finding it to change the code of the Show function
– Fernando Medeiros
see at which points of your application this function is called, but the fact that it concatenates the parameter string with the value Contentplaceholderdefault_contentplaceholderdefault_ctl02_requeumaproposta_5_
– Fernando Medeiros
is very strange, as there will VERY rarely be an id attribute with such a long name, if your form id is simply "div6", make this string passed by the parameter to be used in the Document.getElementById function()
– Fernando Medeiros
They changed the class of the div, through a method: using display: block and display:None, and changed the value of it, through variable concatenation.
– Ivan Ferrer