var cx="abcdefghijkmnopqrstuvwxyz#@_.-;+!%=ABCDEFGHJKLMNPQRSTUVWXYZ123456789"
var tmp=''

function gen_pass(len){
tmp=''
for (i=0;i<len;i++)
tmp+=cx.charAt(Math.floor(Math.random()*cx.length))
return tmp
}

function populateform(len){ document.pw_gen.output.value=gen_pass(len) }
