var temp = '';

function generatepass(){
    temp = '';
	keylist = "ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789abcdefghijklmnopqrstuvwxyz";
    for(i = 0; i < 8; i++)
    	temp += keylist.charAt(Math.floor(Math.random() * keylist.length))
    return temp
}

function populateform(name_form, name_elem){
	document.forms[name_form].elements[name_elem].value = temp;
}

