function new_win(seite,fenstername,eigenschaft){
   window.open(seite,fenstername,eigenschaft);
}


var count=0;

function new_contact(count2)
{
   if (count2!=0 && count==0) {
     count = count2; 
   }

   // fielset
   var field = document.createElement("fieldset");
   field.setAttribute("style", "margin-bottom:20px");   
   var legend = document.createElement("legend");
   content = document.createTextNode("Kontaktperson/ Mitglied");
   legend.appendChild(content);
   field.appendChild(legend);
   
   // table
   var table = document.createElement("table");   
   table.setAttribute("width", "90%");
   table.setAttribute("cellpadding", "5");
   table.setAttribute("style", "margin-top:10px");
   table.setAttribute("style", "margin-bottom:5px");
   
   // name vorname
   var tr    = document.createElement("tr");
   tr.setAttribute("valign", "top"); 
   var td   = document.createElement("td"); 
   content = document.createTextNode("Vorname Name");
   td.setAttribute("class", "inputlabel");  
   td.setAttribute("width", "120px");
   td.appendChild(content);
   tr.appendChild(td);
   td   = document.createElement("td"); 
   var inpu =document.createElement("input"); 
   inpu.setAttribute("class", "inputfield"); 
   inpu.setAttribute("type", "text"); 
   inpu.setAttribute("name", "input[contact][" + count + "][name]"); 
   inpu.setAttribute("size", "40"); 
   td.appendChild(inpu);
   tr.appendChild(td);  
   table.appendChild(tr);

   // Wohnort, PLZ
   tr    = document.createElement("tr");
   tr.setAttribute("valign", "top");  
   td   = document.createElement("td"); 
   content = document.createTextNode("Wohnort, PLZ");
   td.setAttribute("class", "inputlabel");  
   td.setAttribute("width", "120px");
   td.appendChild(content);
   tr.appendChild(td);
   td   = document.createElement("td"); 
   inpu =document.createElement("input"); 
   inpu.setAttribute("class", "inputfield"); 
   inpu.setAttribute("type", "text"); 
   inpu.setAttribute("name", "input[contact][" + count + "][place]"); 
   inpu.setAttribute("size", "30"); 
   inpu.setAttribute("style", "margin-right:15"); 
   td.appendChild(inpu);  
   inpu =document.createElement("input"); 
   inpu.setAttribute("class", "inputfield"); 
   inpu.setAttribute("type", "text"); 
   inpu.setAttribute("maxlength", "5"); 
   inpu.setAttribute("name", "input[contact][" + count + "][plz]"); 
   inpu.setAttribute("size", "5"); 
   td.appendChild(inpu);   
   tr.appendChild(td);       
   table.appendChild(tr);
   
   // straße
   tr    = document.createElement("tr");
   tr.setAttribute("valign", "top");  
   td   = document.createElement("td"); 
   content = document.createTextNode("Straße");
   td.setAttribute("class", "inputlabel");  
   td.setAttribute("width", "120px");
   td.appendChild(content);
   tr.appendChild(td);
   td   = document.createElement("td"); 
   inpu =document.createElement("input"); 
   inpu.setAttribute("class", "inputfield"); 
   inpu.setAttribute("type", "text"); 
   inpu.setAttribute("name", "input[contact][" + count + "][street]"); 
   inpu.setAttribute("size", "40"); 
   td.appendChild(inpu);
   tr.appendChild(td);  
   table.appendChild(tr);   
   
   // phone
   tr    = document.createElement("tr");
   tr.setAttribute("valign", "top");  
   td   = document.createElement("td"); 
   content = document.createTextNode("Telefon-Nr.");
   td.setAttribute("class", "inputlabel");  
   td.setAttribute("width", "120px");
   td.appendChild(content);
   tr.appendChild(td);
   td   = document.createElement("td"); 
   inpu =document.createElement("input"); 
   inpu.setAttribute("class", "inputfield"); 
   inpu.setAttribute("type", "text"); 
   inpu.setAttribute("name", "input[contact][" + count + "][phone]"); 
   inpu.setAttribute("size", "40"); 
   td.appendChild(inpu);
   tr.appendChild(td);  
   table.appendChild(tr);  

   // cell
   tr    = document.createElement("tr");
   tr.setAttribute("valign", "top");  
   td   = document.createElement("td"); 
   content = document.createTextNode("Mobilfunk-Nr.");
   td.setAttribute("class", "inputlabel");  
   td.setAttribute("width", "120px");
   td.appendChild(content);
   tr.appendChild(td);
   td   = document.createElement("td"); 
   inpu =document.createElement("input"); 
   inpu.setAttribute("class", "inputfield"); 
   inpu.setAttribute("type", "text"); 
   inpu.setAttribute("name", "input[contact][" + count + "][cell]"); 
   inpu.setAttribute("size", "40"); 
   td.appendChild(inpu);
   tr.appendChild(td);  
   table.appendChild(tr); 

   // email
   tr    = document.createElement("tr");
   tr.setAttribute("valign", "top");  
   td   = document.createElement("td"); 
   content = document.createTextNode("Email-Adresse");
   td.setAttribute("class", "inputlabel");  
   td.setAttribute("width", "120px");
   td.appendChild(content);
   tr.appendChild(td);
   td   = document.createElement("td"); 
   inpu =document.createElement("input"); 
   inpu.setAttribute("class", "inputfield"); 
   inpu.setAttribute("type", "text"); 
   inpu.setAttribute("name", "input[contact][" + count + "][email]"); 
   inpu.setAttribute("size", "40"); 
   td.appendChild(inpu);
   tr.appendChild(td);  
   table.appendChild(tr); 

   // url
   tr    = document.createElement("tr");
   tr.setAttribute("valign", "top");  
   td   = document.createElement("td"); 
   content = document.createTextNode("Homepage");
   td.setAttribute("class", "inputlabel");  
   td.setAttribute("width", "120px");
   td.appendChild(content);
   tr.appendChild(td);
   td   = document.createElement("td"); 
   inpu =document.createElement("input"); 
   inpu.setAttribute("class", "inputfield"); 
   inpu.setAttribute("type", "text"); 
   inpu.setAttribute("name", "input[contact][" + count + "][url]"); 
   inpu.setAttribute("size", "40"); 
   td.appendChild(inpu);
   tr.appendChild(td);  
   table.appendChild(tr); 
   
   field.appendChild(table);
   
   
   var curr = document.getElementById("new");
   curr.appendChild(field);

   count++;   
}

var count_grad = 0;

function new_grading(count2)
{
   if (count2!=0 && count_grad==0) {
     count_grad = count2; 
   }   
   
   var tr    = document.createElement("tr");
   var td   = document.createElement("td"); 
   
   td.setAttribute("class", "inputlabel");
   tr.appendChild(td);
   
   td   = document.createElement("td"); 
   var inpu =document.createElement("input"); 
   inpu.setAttribute("class", "inputfield"); 
   inpu.setAttribute("type", "text"); 
   inpu.setAttribute("name", "input[grad][more][" + count_grad + "][stil]"); 
   inpu.setAttribute("size", "15"); 
   td.appendChild(inpu);
   tr.appendChild(td); 
   
   td   = document.createElement("td"); 
   inpu =document.createElement("input"); 
   inpu.setAttribute("class", "inputfield"); 
   inpu.setAttribute("type", "text"); 
   inpu.setAttribute("name", "input[grad][more][" + count_grad + "][kyu]"); 
   inpu.setAttribute("size", "3"); 
   td.appendChild(inpu);
   tr.appendChild(td);    
    
   td   = document.createElement("td"); 
   inpu =document.createElement("input"); 
   inpu.setAttribute("class", "inputfield"); 
   inpu.setAttribute("type", "text"); 
   inpu.setAttribute("name", "input[grad][more][" + count_grad + "][dan]"); 
   inpu.setAttribute("size", "3"); 
   td.appendChild(inpu);
   tr.appendChild(td);          

   var curr = document.getElementById("table_grad");
   curr.appendChild(tr);   
   
   count_grad++;  
}
           
            
            
    
               
               
                  
               
                   
                       
               
                   
              
                   
               
                  
              
                   
             
                   

               

            
                       
           