{if $action == ''}


  {if $register_aktivierung == '1'}
      <html>
	  <head>
	  <title>{$register_aktivierung_erfolg_titel}</title>
	  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	  <link rel="stylesheet" href="templates/{$global_template}/css/styles_login.css" type="text/css">
	    <style>
	     .squarebutton_blue{
	       width:100px;
	     }
	  </style>
	  </head>
	  <body>

	  <table height="100%" width="100%">
	  <tr>
	  <td width="20%">
	    &nbsp;
	  </td>
	  <td width="60%">
	  <div class="Header">
	     <div>
	        <div align="center">{$register_aktivierung_erfolg_titel}</div>
	     </div>
	  </div>
	  <div class="pat_list_box">
	  	<p>
	      <table align="center" border="0" bordercolordark="white" bordercolorlight="lightgray" cellspacing="0"  width="96%" >
	          <tr>
	              <td width="200px" align="center" valign="middle">
	                <img style="margin:10px;padding:10px;"src="templates/{$global_template}/images/deputat_icon.svg">
	              </td>
	              <td align="left">
	                {$register_aktivierung_erfolg_text}
	                <br /><br />
	                <p align='center'>
	                  <a class="squarebutton_blue box" href="index.php"><span>Login</span></a>
	                </p>
	              </td>
	          </tr>
	      </table>
	  </div>
	  </td>
	  <td width="20%">
	    &nbsp;
	  </td>
	  </tr>
	  </table>
	  </form>
	  </body>
    </html>
  {/if}

  {if $register_aktivierung == '2'}

    <html>
	<head>
	<title>{$register_aktivierung_keinerfolg_titel}</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<link rel="stylesheet" href="templates/{$global_template}/css/styles_login.css" type="text/css">
	  <style>
	   .squarebutton_blue{
	     width:100px;
	   }
	</style>
	</head>
	<body>

	<table height="100%" width="100%">
	<tr>
	<td width="20%">
	  &nbsp;
	</td>
	<td width="60%">
	<div class="Header">
	   <div>
	      <div align="center">{$register_aktivierung_keinerfolg_titel}</div>
	   </div>
	</div>
	<div class="pat_list_box">
		<p>
	    <table align="center" border="0" bordercolordark="white" bordercolorlight="lightgray" cellspacing="0"  width="96%" >
	        <tr>
	            <td width="200px" align="center" valign="middle">
	              <img style="margin:10px;padding:10px;"src="templates/{$global_template}/images/deputat_icon.svg">
	            </td>
	            <td align="left">
	              {$register_aktivierung_keinerfolg_text}
	              <br /><br />
	              <p align='center'>
	                <a class="squarebutton_blue box" href="index.php"><span>Login</span></a>
	              </p>
	            </td>
	        </tr>
	    </table>
	</div>
	</td>
	<td width="20%">
	  &nbsp;
	</td>
	</tr>
	</table>
	</form>
	</body>
    </html>
  {/if}

  {if $register_aktivierung == '3'}
  <html>
  <head>
  <title>{$register_titel}</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <link rel="stylesheet" href="templates/{$global_template}/css/styles_login.css" type="text/css">
  <style type="text/css">
     .squarebutton_blue{
       width:100px;
     }
     .correct
     {
     color:#B3DF00;
     }
     .wrong
     {
     color:#FF0000;
     }
  </style>

  <script src="validation/usercheck.js"></script>
  <script language='JavaScript' type='text/javascript'>
  <!--
     function start() {
       if(document.register){
         document.register.vorname.focus();
       }else{
         return false;
       }

       checkUser(document.register.mail.value)

      checkBez('{$register_beziehung}');
     }
       //-->
   </script>

   <script type="text/javascript">
     function checkBez(wahl){

       if(wahl == "P" || wahl == "L"){
         document.getElementById('fakultaet1').style.display = (document.getElementById('fakultaet1').style.display == 'none')?'none':'none';
         document.getElementById('fakultaet2').style.display = (document.getElementById('fakultaet2').style.display == 'none')?'none':'none';
         document.getElementById('jahrgang1').style.display = (document.getElementById('jahrgang1').style.display == 'none')?'none':'none';
         document.getElementById('jahrgang2').style.display = (document.getElementById('jahrgang2').style.display == 'none')?'none':'none';

         document.getElementById('fakultaet1').style.display = (document.getElementById('fakultaet1').style.display == 'none')?'block':'block';
         document.getElementById('fakultaet2').style.display = (document.getElementById('fakultaet2').style.display == 'none')?'block':'block';
       }

       if(wahl == "S"){
         document.getElementById('fakultaet1').style.display = (document.getElementById('fakultaet1').style.display == 'none')?'none':'none';
         document.getElementById('fakultaet2').style.display = (document.getElementById('fakultaet2').style.display == 'none')?'none':'none';
         document.getElementById('jahrgang1').style.display = (document.getElementById('jahrgang1').style.display == 'none')?'none':'none';
         document.getElementById('jahrgang2').style.display = (document.getElementById('jahrgang2').style.display == 'none')?'none':'none';

         document.getElementById('jahrgang1').style.display = (document.getElementById('jahrgang1').style.display == 'none')?'block':'block';
         document.getElementById('jahrgang2').style.display = (document.getElementById('jahrgang2').style.display == 'none')?'block':'block';
       }

       if(wahl == "" || wahl == "V"){
         document.getElementById('fakultaet1').style.display = (document.getElementById('fakultaet1').style.display == 'none')?'none':'none';
         document.getElementById('fakultaet2').style.display = (document.getElementById('fakultaet2').style.display == 'none')?'none':'none';
         document.getElementById('jahrgang1').style.display = (document.getElementById('jahrgang1').style.display == 'none')?'none':'none';
         document.getElementById('jahrgang2').style.display = (document.getElementById('jahrgang2').style.display == 'none')?'none':'none';
       }
     }

  </script>

  </head>
  <body onload="start();">

  <table height="100%" width="100%">
  <tr>
  <td width="10%">
    &nbsp;
  </td>
  <td width="80%">

  <div class="Header">
     <div>
        <div align="center">{$register_titel}</div>
     </div>
  </div>
  <div class="pat_list_box">
  	<p>

  	<form action=?action=register method="POST" name="register">

  	    {if $register_pflichtfelder == '1'}
 	     <table width="70%" class="errorTable" align="center">
 	       <tr>
 	         <td>
 	           <img src="templates/{$global_template}/images/pflichtfelder/achtung_gross.gif">
 	         </td>
 	         <td><b>Achtung!</b><br>
 	              {$register_error_text}
 	         </td>
 	       </tr>
 	     </table><br>
 	   {/if}


      <table align="center" border="0" bordercolordark="white" bordercolorlight="lightgray" cellspacing="0"  width="96%" >
        <tr>
          <td>
            {if $register_vorname_ico == '1'}<img src="templates/{$global_template}/images/pflichtfelder/achtung_klein.gif">{/if}
            {if $register_vorname_ico == '1'}<font color="#FF0000">{/if}
              <strong>{$register_field_vorname}</strong>
            {if $register_vorname_ico == '1'}</font>{/if}
          </td>
          <td>
            <input {if $register_vorname_ico == '1'}class="errorField"{/if} type="text" name="vorname" value="{$register_vorname}" size="40">
          </td>
        </tr>

        <tr>
          <td>
            {if $register_nachname_ico == '1'}<img src="templates/{$global_template}/images/pflichtfelder/achtung_klein.gif">{/if}
            {if $register_nachname_ico == '1'}<font color="#FF0000">{/if}
              <strong>{$register_field_nachname}</strong>
            {if $register_nachname_ico == '1'}</font>{/if}
          </td>
          <td>
            <input {if $register_nachname_ico == '1'}class="errorField"{/if} type="text" name="nachname" value="{$register_nachname}" size="40">
          </td>
        </tr>

        <tr>
          <td>
            {if $register_mail_ico == '1'}<img src="templates/{$global_template}/images/pflichtfelder/achtung_klein.gif">{/if}
            {if $register_mail_ico == '1'}<font color="#FF0000">{/if}
              <strong>{$register_field_mail}</strong>
            {if $register_mail_ico == '1'}</font>{/if}

          </td>
          <td>
            <input {if $register_mail_ico == '1'}class="errorField"{/if} type="text" name="mail" value="{$register_mail}" size="40"  onkeyup="checkUser(this.value)">
          </td>
        <tr>
          <td>
            &nbsp;
          </td>
          <td>
            <font size="2"><p id="validateCheck"></p></font>
          </td>

        <tr>
          <td>
            {if $register_beziehung_ico == '1'}<img src="templates/{$global_template}/images/pflichtfelder/achtung_klein.gif">{/if}
            {if $register_beziehung_ico == '1'}<font color="#FF0000">{/if}
              <strong>{$register_field_beziehung}</strong>
            {if $register_beziehung_ico == '1'}</font>{/if}

          </td>
          <td>
            <select {if $register_beziehung_ico == '1'}class="errorField select1"{else}class="select1"{/if} name="beziehung" onchange="checkBez(this.value)">
              <option value="" {if $register_beziehung_ico == ''}{/if}             >Bitte ausw&auml;hlen</option>
              <option value="P" {if $register_beziehung_ico == 'P'} selected {/if} >ProfessorIn</option>
              <option value="L" {if $register_beziehung_ico == 'L'} selected {/if} >Lehrbeauftragte/r</option>
              <option value="S" {if $register_beziehung_ico == 'S'} selected {/if} >StudentIn</option>
              <option value="V" {if $register_beziehung_ico == 'V'} selected {/if} >Verwaltungsmitarbeiter </option>

            </select>
          </td>
        </tr>

        <tr>
          <td>
            <div id="fakultaet1" style="display: none">
              {if $register_fakultaet_ico_ico == '1'}<img src="templates/{$global_template}/images/pflichtfelder/achtung_klein.gif">{/if}
              {if $register_fakultaet_ico_ico == '1'}<font color="#FF0000">{/if}
                <strong>{$register_field_fakultaet}</strong>
              {if $register_fakultaet_ico_ico == '1'}</font>{/if}

 	       </div>
            <div id="jahrgang1" style="display: none">


              {if $register_ag_ico == '1'}<font color="#FF0000">{/if}
                <strong>{$register_field_ag}</strong>
              {if $register_ag_ico == '1'}</font>{/if}

 	         <strong> / </strong>

 	         {if $register_jahrgang_ico == '1'}<font color="#FF0000">{/if}
 	           <strong>{$register_field_jahrgang}</strong>
 	         {if $register_jahrgang_ico == '1'}</font>{/if}
 	       </div>
          </td>
          <td>
            <div id="fakultaet2" style="display: none">
 	         <input {if $register_fakultaet_ico_ico == '1'}class="errorField"{/if} type="text" name="fakultaet" value="{$register_fakultaet}" size="40">
 	       </div>
           <div id="jahrgang2" style="display: none">
              {if $register_ag_ico == '1'}<img src="templates/{$global_template}/images/pflichtfelder/achtung_klein.gif">{/if}
 	         <input {if $register_ag_ico == '1'}class="errorField"{/if} type="text" name="ag" value="{$register_ag}" size="2"> /

 	         {if $register_jahrgang_ico == '1'}<img src="templates/{$global_template}/images/pflichtfelder/achtung_klein.gif">{/if}

              <select {if $register_jahrgang_ico == '1'}class="errorField"{/if} name="jahrgang">
 	           <option value="">Bitte ausw&auml;hlen</option>
 	           {section name=table_data loop=$table_data}
                  <option value="{$table_data[table_data].jahrgang}" {if $table_data[table_data].select == '1'} selected {/if}>{$table_data[table_data].jahrgang}</option>
 	           {/section}
 	         </select>
 	       </div>
          </td>
        </tr>

      </table>
      <br />

      <p align="center">
        <input type="submit" name="senden">
      </p>
        </form>
  </div>
  </td>
  <td width="10%">
    &nbsp;
  </td>
  </tr>
  </table>
  </body>
  </html>
  {/if}
{/if}

{if $action == 'register'}
  {if $register_registrierung == '1'}
    <html>
	<head>
	<title>{$register_registrierung_erfolg_titel}</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<link rel="stylesheet" href="templates/{$global_template}/css/styles_login.css" type="text/css">
	  <style>
	   .squarebutton_blue{
	     width:100px;
	   }
	</style>
	</head>
	<body>

	<table height="100%" width="100%">
	<tr>
	<td width="20%">
	  &nbsp;
	</td>
	<td width="60%">
	<div class="Header">
	   <div>
	      <div align="center">{$register_registrierung_erfolg_titel}</div>
	   </div>
	</div>
	<div class="pat_list_box">
		<p>
	    <table align="center" border="0" bordercolordark="white" bordercolorlight="lightgray" cellspacing="0"  width="96%" >
	        <tr>
	            <td width="200px" align="center" valign="middle">
	              <img style="margin:10px;padding:10px;"src="templates/{$global_template}/images/deputat_icon.svg">
	            </td>
	            <td align="left">
	              {$register_registrierung_erfolg_text}
	              <br />
	            </td>
	        </tr>
	    </table>
	</div>
	</td>
	<td width="20%">
	  &nbsp;
	</td>
	</tr>
	</table>
	</form>
	</body>
    </html>

  {/if}

  {if $register_registrierung == '2'}

    <html>
	<head>
	<title>{$register_registrierung_keinerfolg_titel}</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<link rel="stylesheet" href="templates/{$global_template}/css/styles_login.css" type="text/css">
	  <style>
	   .squarebutton_blue{
	     width:100px;
	   }
	</style>
	</head>
	<body>

	<table height="100%" width="100%">
	<tr>
	<td width="20%">
	  &nbsp;
	</td>
	<td width="60%">
	<div class="Header">
	   <div>
	      <div align="center">{$register_registrierung_keinerfolg_titel}</div>
	   </div>
	</div>
	<div class="pat_list_box">
		<p>
	    <table align="center" border="0" bordercolordark="white" bordercolorlight="lightgray" cellspacing="0"  width="96%" >
	        <tr>
	            <td width="200px" align="center" valign="middle">
	              <img style="margin:10px;padding:10px;"src="templates/{$global_template}/images/deputat_icon.svg">
	            </td>
	            <td align="left">
	             {$register_registrierung_keinerfolg_text}
	              <br />
	            </td>
	        </tr>
	    </table>
	</div>
	</td>
	<td width="20%">
	  &nbsp;
	</td>
	</tr>
	</table>
	</form>
	</body>
    </html>

  {/if}

{/if}