<%@language = "javascript" %>
<% /*
     $Revision$
     $Id$
*/
ANONYMOUS_Allowed = 1;

%>
<!--#include file="../Shared/common.inc"-->
<!--#include file="../Shared/iface.inc"-->

<%
if (S("self_register") != 1)
    shared.simpel_page(L("lcl_no_auth"));

%>

<html>
  <head>
<%  FCLTHeader.Generate(); %>
    <script type="text/javascript">
			function self_submit()
			{
		 		if (!validateForm("u2"))
		    	return false;

        $.post($("form[name=u2]")[0].action, $("[name=u2]").serialize(), FcltCallbackClose, "json");
	    }
	  </script>

  </head>

  <body class="modal" id="mod_selfreg">
    <div id="selfreg">
      <form name="u2" method="post" action="self_register_save.asp?">
       <div class="info" id="sheader"><%=L("lcl_self_register_header")%></div>
<%
        BLOCK_START("selfInput", L("lcl_self_needed_info"));
        RWFIELDTR("prs_naam",   "fld required", L("lcl_prs_person_name"),     "", {required: true, maxlength: 60});
        RWFIELDTR("prs_vrnaam", "fld",          L("lcl_prs_person_voornaam"), "", {maxlength: 30});
        RWFIELDTR("prs_email",  "fld required", L("lcl_prs_person_email"),    "");
        RWFIELDTR("prs_telnr", "fld required",  L("lcl_prs_person_phone"),     "", { required: true, maxlength: 15 });
        RWFIELDTR("password1", "fld required",  L("lcl_ch_password_new"),     "", { required: true, html: " type=password" });
        RWFIELDTR("password2", "fld required",  L("lcl_ch_password_con"),     "", { required: true, html: " type=password" });
        BLOCK_END();
        var buttons =  [ {title: L("lcl_submit"), icon: "email.png", action: "self_submit()" },
                         {title: L("lcl_cancel"), icon: "undo.png", action: "FcltMgr.closeDetail( window )" }];
        CreateButtons(buttons);
IFACE.FORM_END();
%>
      </form>
    </div>
    <div class="info" id="sfooter"><%=L("lcl_self_register_footer")%></div>
  </body>
</html>
