function generate(len)
   {
   conso = new Array("b","c","d","f","g","h","j","k","l","m","n","p",
   "r","s","t","v","w","x","y","z");
   vocal = new Array("a","e","i","o","u");
   var password = '';

   for(i=0; i < len; i++)
   {
   var c = Math.ceil(Math.random() * 1000) % 20;
   var v = Math.ceil(Math.random() * 1000) % 5;
   password += conso[c] + vocal[v];
   }
   return password;
}

function genPasswd() {
       pass = generate('4');
       document.getElementById('passwd_feld').value=pass;
}