function suggestPassword(passwordfield) {
    var consonants = "wrtzpsdfghjklxcvbnm";
    var vowels = "aeiuo";
    var numbers = "0123456789_-=";
    var passwordlength = 12; // do we want that to be dynamic? no, keep it simple :)
    var passwd = $(passwordfield);
    passwd.innerHTML = '';
    var isConson = true;
    var char = "";
    for ( i = 0; i < passwordlength; i++ ) {
            if(i<7){
            if(isConson)char = consonants.charAt( Math.floor( Math.random() * consonants.length ) );
            else  char = vowels.charAt( Math.floor( Math.random() * vowels.length ));
            isConson = !isConson;
            }
            else char = numbers.charAt( Math.floor( Math.random() * numbers.length ) );
        passwd.innerHTML += char;
        }
        $(passwordfield+"_copy").show();
 return passwd.innerHTML;
}

function copyPassword(from, to1, to2)
    {
        $(to1).value = $(from).innerHTML;
         $(to2).value =  $(from).innerHTML;
    }
    
function AerPopupWindow(url, width, height)
{
    if(!width) width = screen.availWidth;
    if(!height) height = screen.availheight;
    newwindow=window.open(url,'name','height='+height+',width='+width+', menubar =0, toolbar =0');
    if (window.focus) newwindow.focus();
    return false;
}
